public class SolidLine extends Object implements ILineDrawer
ILineDrawer
which draws a solid horizontal line along
the bottom edge of the specified rectangle.Constructor and Description |
---|
SolidLine()
Constructs an instance of solid line drawer
|
SolidLine(float lineWidth)
Constructs an instance of solid line drawer with the specified line thickness
|
Modifier and Type | Method and Description |
---|---|
void |
draw(PdfCanvas canvas,
Rectangle drawArea)
Performs configurable drawing operations related to specific region
coordinates on a canvas.
|
Color |
getColor()
Gets the color of the line
|
float |
getLineWidth()
Gets line width in points
|
void |
setColor(Color color)
Sets line color
|
void |
setLineWidth(float lineWidth)
Sets line width in points
|
public SolidLine()
public SolidLine(float lineWidth)
lineWidth
- line widthpublic void draw(PdfCanvas canvas, Rectangle drawArea)
ILineDrawer
draw
in interface ILineDrawer
canvas
- the canvas to draw ondrawArea
- the rectangle in relation to which to fulfill drawing
instructionspublic float getLineWidth()
getLineWidth
in interface ILineDrawer
public void setLineWidth(float lineWidth)
setLineWidth
in interface ILineDrawer
lineWidth
- new line widthpublic Color getColor()
ILineDrawer
getColor
in interface ILineDrawer
public void setColor(Color color)
ILineDrawer
setColor
in interface ILineDrawer
color
- new line colorCopyright © 1998–2018 iText Group NV. All rights reserved.