Class SolidLine
java.lang.Object
com.itextpdf.kernel.pdf.canvas.draw.SolidLine
- All Implemented Interfaces:
-
ILineDrawer
Implementation of
ILineDrawer
which draws a solid horizontal line along the bottom edge of the specified rectangle.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Performs configurable drawing operations related to specific region coordinates on a canvas.getColor()
Gets the color of the linefloat
Gets line width in pointsvoid
Sets line colorvoid
setLineWidth
(float lineWidth) Sets line width in points
-
Constructor Details
-
SolidLine
public SolidLine()Constructs an instance of solid line drawer -
SolidLine
public SolidLine(float lineWidth) Constructs an instance of solid line drawer with the specified line thickness- Parameters:
-
lineWidth
- line width
-
-
Method Details
-
draw
Description copied from interface:ILineDrawer
Performs configurable drawing operations related to specific region coordinates on a canvas.- Specified by:
-
draw
in interfaceILineDrawer
- Parameters:
-
canvas
- the canvas to draw on -
drawArea
- the rectangle in relation to which to fulfill drawing instructions
-
getLineWidth
public float getLineWidth()Gets line width in points- Specified by:
-
getLineWidth
in interfaceILineDrawer
- Returns:
- line thickness
-
setLineWidth
public void setLineWidth(float lineWidth) Sets line width in points- Specified by:
-
setLineWidth
in interfaceILineDrawer
- Parameters:
-
lineWidth
- new line width
-
getColor
Description copied from interface:ILineDrawer
Gets the color of the line- Specified by:
-
getColor
in interfaceILineDrawer
- Returns:
- color of the line
-
setColor
Description copied from interface:ILineDrawer
Sets line color- Specified by:
-
setColor
in interfaceILineDrawer
- Parameters:
-
color
- new line color
-