com.lowagie.text.pdf.draw
public class LineSeparator extends VerticalPositionMark
Since: 2.1.2
Field Summary | |
---|---|
protected int | alignment The alignment of the line. |
protected Color | lineColor The color of the line. |
protected float | lineWidth The thickness of the line. |
protected float | percentage The width of the line as a percentage of the available page width. |
Constructor Summary | |
---|---|
LineSeparator(float lineWidth, float percentage, Color lineColor, int align, float offset)
Creates a new instance of the LineSeparator class. | |
LineSeparator()
Creates a new instance of the LineSeparator class with
default values: lineWidth 1 user unit, width 100%, centered with offset 0. |
Method Summary | |
---|---|
void | draw(PdfContentByte canvas, float llx, float lly, float urx, float ury, float y) |
void | drawLine(PdfContentByte canvas, float leftX, float rightX, float y)
Draws a horizontal line. |
int | getAlignment()
Getter for the alignment of the line. |
Color | getLineColor()
Getter for the color of the line that will be drawn. |
float | getLineWidth()
Getter for the line width. |
float | getPercentage()
Setter for the width as a percentage of the available width. |
void | setAlignment(int align)
Setter for the alignment of the line. |
void | setLineColor(Color color)
Setter for the color of the line that will be drawn. |
void | setLineWidth(float lineWidth)
Setter for the line width. |
void | setPercentage(float percentage)
Setter for the width as a percentage of the available width. |
Parameters: lineWidth the thickness of the line percentage the width of the line as a percentage of the available page width lineColor the color of the line align the alignment offset the offset of the line relative to the current baseline (negative = under the baseline)
See Also: DrawInterface
Parameters: canvas the canvas to draw on leftX the left x coordinate rightX the right x coordindate y the y coordinate
Returns: an alignment value
Returns: a color
Returns: the thickness of the line that will be drawn.
Returns: a width percentage
Parameters: align an alignment value
Parameters: color a color
Parameters: lineWidth the thickness of the line that will be drawn.
Parameters: percentage a width percentage