Interface ILineDrawer
- All Known Implementing Classes:
-
DashedLine,DottedLine,SolidLine
public interface ILineDrawer
The
This interface allows to customize the 'empty' space in a
ILineDrawer defines a drawing operation on a PdfCanvas
This interface allows to customize the 'empty' space in a
com.itextpdf.layout.element.TabStop through a Strategy design pattern
-
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms configurable drawing operations related to specific region coordinates on a canvas.getColor()Gets the color of the linefloatGets the width of the linevoidSets line colorvoidsetLineWidth(float lineWidth) Sets line width in points
-
Method Details
-
draw
Performs configurable drawing operations related to specific region coordinates on a canvas.- Parameters:
-
canvas- the canvas to draw on -
drawArea- 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
Sets line color- Parameters:
-
color- new line color
-