Package org.geotools.renderer.style
Class DynamicLineStyle2D
Object
Style
Style2D
LineStyle2D
DynamicLineStyle2D
- All Implemented Interfaces:
Cloneable
A dynamic line style, that will compute its parameters each time they are requested instead of caching them
- Author:
- jamesm
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SimpleFeature
The feature that will be styled as a polygonprotected LineSymbolizer
The line symbolizer used to get stroke/composite/...Fields inherited from class LineStyle2D
contour, contourComposite, perpendicularOffset, stroke
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicLineStyle2D
(SimpleFeature feature, LineSymbolizer sym) Creates a new instance of DynamicLineStyle2D -
Method Summary
Modifier and TypeMethodDescriptionReturns the contour paintComputes and returns the contour styledouble
Returns the perpendicular offset value for this styleComputes and returns the strokeMethods inherited from class LineStyle2D
getGraphicStroke, setContour, setContourComposite, setGraphicStroke, setPerpendicularOffset, setStroke, toString
Methods inherited from class Style
clone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScale
-
Field Details
-
feature
The feature that will be styled as a polygon -
ls
The line symbolizer used to get stroke/composite/...
-
-
Constructor Details
-
DynamicLineStyle2D
Creates a new instance of DynamicLineStyle2D
-
-
Method Details
-
getStroke
Computes and returns the stroke- Overrides:
getStroke
in classLineStyle2D
- Returns:
- the current stroke or null if none
-
getPerpendicularOffset
public double getPerpendicularOffset()Description copied from class:LineStyle2D
Returns the perpendicular offset value for this style- Overrides:
getPerpendicularOffset
in classLineStyle2D
-
getContourComposite
Computes and returns the contour style- Overrides:
getContourComposite
in classLineStyle2D
- Returns:
- the current contour composite, or null if opaque
-
getContour
Returns the contour paint- Overrides:
getContour
in classLineStyle2D
- Returns:
- the contour paint
-