Package org.geotools.renderer.style
Class LineStyle2D
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
DynamicLineStyle2D
,PolygonStyle2D
A rendered style to draw the contour of shapes TODO: add support for Graphic rendering (that is, an image painted
along the contour)
- Author:
- aaime
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the contour color for the polyline to be rendered, ornull
if none.Returns the contour Composite for the polyline to be rendered, ornull
if the contour is to be opaqueGetter for property graphicStroke.double
Returns the perpendicular offset value for this styleReturns the stroke for the polyline to be rendered, ornull
if none.void
setContour
(Paint contour) Sets the contour color for the polyline to be renderedvoid
setContourComposite
(Composite contourComposite) Sets the contour Composite for the polyline to be rendered.void
setGraphicStroke
(Style2D graphicStroke) Setter for property graphicStroke.void
setPerpendicularOffset
(double perpendicularOffset) Sets the perpendicular offset value for this stylevoid
Sets the stroke for the polyline to be renderedtoString()
Returns a string representation of this style.Methods inherited from class Style
clone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScale
-
Field Details
-
contour
-
stroke
-
contourComposite
-
perpendicularOffset
protected double perpendicularOffset
-
-
Constructor Details
-
LineStyle2D
public LineStyle2D()
-
-
Method Details
-
getStroke
Returns the stroke for the polyline to be rendered, ornull
if none.- Returns:
- the current stroke or null if none
-
setStroke
Sets the stroke for the polyline to be rendered- Parameters:
stroke
- The stroke, or null if the contour doesn't need to be stroked
-
getContour
Returns the contour color for the polyline to be rendered, ornull
if none.- Returns:
- the current contour, or null if none
-
setContour
Sets the contour color for the polyline to be rendered -
getContourComposite
Returns the contour Composite for the polyline to be rendered, ornull
if the contour is to be opaque- Returns:
- the current contour composite, or null if opaque
-
setContourComposite
Sets the contour Composite for the polyline to be rendered. Set it tonull
if the contour is to be opaque -
getGraphicStroke
Getter for property graphicStroke.- Returns:
- Value of property graphicStroke.
-
setGraphicStroke
Setter for property graphicStroke.- Parameters:
graphicStroke
- New value of property graphicStroke.
-
getPerpendicularOffset
public double getPerpendicularOffset()Returns the perpendicular offset value for this style -
setPerpendicularOffset
public void setPerpendicularOffset(double perpendicularOffset) Sets the perpendicular offset value for this style- Parameters:
perpendicularOffset
- The offset, positive on the left side of the line
-
toString
Returns a string representation of this style.
-