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)
ILineDrawerdraw in interface ILineDrawercanvas - the canvas to draw ondrawArea - the rectangle in relation to which to fulfill drawing
instructionspublic float getLineWidth()
getLineWidth in interface ILineDrawerpublic void setLineWidth(float lineWidth)
setLineWidth in interface ILineDrawerlineWidth - new line widthpublic Color getColor()
ILineDrawergetColor in interface ILineDrawerpublic void setColor(Color color)
ILineDrawersetColor in interface ILineDrawercolor - new line colorCopyright © 1998–2022 iText Group NV. All rights reserved.