public class DottedLine extends Object implements ILineDrawer
ILineDrawer which draws a dotted horizontal line along
the bottom edge of the specified rectangle.| Modifier and Type | Field and Description |
|---|---|
protected float |
gap
the gap between the dots.
|
| Constructor and Description |
|---|
DottedLine()
Constructs a dotted horizontal line which will be drawn along the bottom edge of the specified rectangle.
|
DottedLine(float lineWidth)
Constructs a dotted horizontal line which will be drawn along the bottom edge of the specified rectangle.
|
DottedLine(float lineWidth,
float gap)
Constructs a dotted horizontal line which will be drawn along the bottom edge of the specified rectangle.
|
| 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 |
getGap()
Getter for the gap between the center of the dots of the dotted line.
|
float |
getLineWidth()
Gets line width in points
|
void |
setColor(Color color)
Sets line color
|
void |
setGap(float gap)
Setter for the gap between the center of the dots of the dotted line.
|
void |
setLineWidth(float lineWidth)
Sets line width in points
|
public DottedLine()
public DottedLine(float lineWidth,
float gap)
lineWidth - the width of the linegap - the gap between the center of the dots of the dotted line.public DottedLine(float lineWidth)
lineWidth - the width of the linepublic 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 getGap()
public void setGap(float gap)
gap - the gap between the center of the dotspublic 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 iText Group NV. All rights reserved.