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 -
public void draw(PdfCanvas canvas, Rectangle drawArea)
ILineDrawer
draw in interface ILineDrawer
canvas - the canvas to draw on
drawArea - the rectangle in relation to which to fulfill drawing instructions
public float getLineWidth()
getLineWidth in interface ILineDrawer
public void setLineWidth(float lineWidth)
setLineWidth in interface ILineDrawer
lineWidth - new line width
public Color getColor()
ILineDrawer
getColor in interface ILineDrawer
public void setColor(Color color)
ILineDrawer
setColor in interface ILineDrawer
color - new line color
Copyright © 1998–2017 iText Group NV. All rights reserved.