public class DashedLine extends Object implements ILineDrawer
ILineDrawer which draws a dashed horizontal line over
the middle of the specified rectangle.| Constructor and Description |
|---|
DashedLine() |
DashedLine(float lineWidth)
Creates an instance of
DashedLine with the specified line width. |
| 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 DashedLine()
public DashedLine(float lineWidth)
DashedLine with the specified line width.lineWidth - the 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–2023 Apryse Group NV. All rights reserved.