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 line
gap
- the gap between the center of the dots of the dotted line.
public DottedLine(float lineWidth)
lineWidth
- the width of the line
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 getGap()
public void setGap(float gap)
gap
- the gap between the center of the dots
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–2021 iText Group NV. All rights reserved.