Interface ILineDrawer
-
- All Known Implementing Classes:
DashedLine,DottedLine,SolidLine
public interface ILineDrawerTheILineDrawerdefines a drawing operation on aPdfCanvas
This interface allows to customize the 'empty' space in acom.itextpdf.layout.element.TabStopthrough a Strategy design pattern
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddraw(PdfCanvas canvas, Rectangle drawArea)Performs configurable drawing operations related to specific region coordinates on a canvas.ColorgetColor()Gets the color of the linefloatgetLineWidth()Gets the width of the linevoidsetColor(Color color)Sets line colorvoidsetLineWidth(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
-
-