Interface ILineDrawer
-
- All Known Implementing Classes:
DashedLine
,DottedLine
,SolidLine
public interface ILineDrawer
TheILineDrawer
defines a drawing operation on aPdfCanvas
This interface allows to customize the 'empty' space in acom.itextpdf.layout.element.TabStop
through a Strategy design pattern
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 linefloat
getLineWidth()
Gets the width of the linevoid
setColor(Color color)
Sets line colorvoid
setLineWidth(float lineWidth)
Sets line width in points
-
-
-
Method Detail
-
draw
void draw(PdfCanvas canvas, Rectangle drawArea)
Performs configurable drawing operations related to specific region coordinates on a canvas.- Parameters:
canvas
- the canvas to draw ondrawArea
- the rectangle in relation to which to fulfill drawing instructions
-
getLineWidth
float getLineWidth()
Gets the width of the line- Returns:
- width of the line
-
setLineWidth
void setLineWidth(float lineWidth)
Sets line width in points- Parameters:
lineWidth
- new line width
-
getColor
Color getColor()
Gets the color of the line- Returns:
- color of the line
-
setColor
void setColor(Color color)
Sets line color- Parameters:
color
- new line color
-
-