Interface ILineDrawer
The ILineDrawer defines a drawing operation on a PdfCanvas
public interface ILineDrawer
Remarks
The
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
Methods
Draw(PdfCanvas, Rectangle)
Performs configurable drawing operations related to specific region coordinates on a canvas.
void Draw(PdfCanvas canvas, Rectangle drawArea)
Parameters
canvas
PdfCanvasthe canvas to draw on
drawArea
Rectanglethe rectangle in relation to which to fulfill drawing instructions
GetColor()
Gets the color of the line
Color GetColor()
Returns
- Color
color of the line
GetLineWidth()
Gets the width of the line
float GetLineWidth()
Returns
- float
width of the line
SetColor(Color)
Sets line color
void SetColor(Color color)
Parameters
color
Colornew line color
SetLineWidth(float)
Sets line width in points
void SetLineWidth(float lineWidth)
Parameters
lineWidth
floatnew line width