Package com.evopdf
Class LineStyle
java.lang.Object
com.evopdf.LineStyle
The line style for a graphic element which draws lines
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a default line styleLineStyle
(float lineWidth) Constructs a line style with the specified line widthLineStyle
(float lineWidth, LineCapStyle lineCapStyle, LineJoinStyle lineJoinStyle) Constructs a style for a line with the specified width, cap and join stylesLineStyle
(float lineWidth, LineDashStyle lineDashStyle) Constructs a style for a dashed lineLineStyle
(LineDashStyle lineDashStyle) Constructs a style for a dashed line -
Method Summary
Modifier and TypeMethodDescriptionGets the line cap styleGets the line dash patternGets the line join stylefloat
Gets the line widthvoid
setLineCapStyle
(LineCapStyle lineCapStyle) Sets the line cap stylevoid
setLineDashStyle
(LineDashStyle lineDashStyle) Sets the line dash patternvoid
setLineJoinStyle
(LineJoinStyle lineJoinStyle) Sets the line join stylevoid
setLineWidth
(float lineWidth) Sets the line width
-
Constructor Details
-
LineStyle
public LineStyle()Constructs a default line style -
LineStyle
public LineStyle(float lineWidth) Constructs a line style with the specified line width- Parameters:
lineWidth
- the line width
-
LineStyle
Constructs a style for a dashed line- Parameters:
lineDashStyle
- the he dash style
-
LineStyle
Constructs a style for a dashed line- Parameters:
lineWidth
- the line widthlineDashStyle
- the dash style
-
LineStyle
Constructs a style for a line with the specified width, cap and join styles- Parameters:
lineWidth
- the line width in graphic unitslineCapStyle
- the line cap stylelineJoinStyle
- the line join style
-
-
Method Details
-
lineWidth
public float lineWidth()Gets the line width- Returns:
- line width
-
setLineWidth
public void setLineWidth(float lineWidth) Sets the line width- Parameters:
lineWidth
- the line width to set
-
lineCapStyle
Gets the line cap style- Returns:
- the line cap style
-
setLineCapStyle
Sets the line cap style- Parameters:
lineCapStyle
- the line cap style to set
-
lineJoinStyle
Gets the line join style- Returns:
- the line join style
-
setLineJoinStyle
Sets the line join style- Parameters:
lineJoinStyle
- the line join style
-
lineDashStyle
Gets the line dash pattern- Returns:
- the line dash pattern
-
setLineDashStyle
Sets the line dash pattern- Parameters:
lineDashStyle
- the line dash pattern
-