Package org.geotools.renderer.style
Class DynamicLineStyle2D
- Object
-
- Style
-
- Style2D
-
- LineStyle2D
-
- DynamicLineStyle2D
-
- All Implemented Interfaces:
Cloneable
public class DynamicLineStyle2D extends LineStyle2D
A dynamic line style, that will compute its parameters each time they are requested instead of caching them- Author:
- jamesm
-
-
Field Summary
Fields Modifier and Type Field Description protected SimpleFeaturefeatureThe feature that will be styled as a polygonprotected LineSymbolizerlsThe line symbolizer used to get stroke/composite/...-
Fields inherited from class LineStyle2D
contour, contourComposite, perpendicularOffset, stroke
-
-
Constructor Summary
Constructors Constructor Description DynamicLineStyle2D(SimpleFeature feature, LineSymbolizer sym)Creates a new instance of DynamicLineStyle2D
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaintgetContour()Returns the contour paintCompositegetContourComposite()Computes and returns the contour styledoublegetPerpendicularOffset()Returns the perpendicular offset value for this styleStrokegetStroke()Computes and returns the stroke-
Methods inherited from class LineStyle2D
getGraphicStroke, setContour, setContourComposite, setGraphicStroke, setPerpendicularOffset, setStroke, toString
-
Methods inherited from class Style
clone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScale
-
-
-
-
Field Detail
-
feature
protected SimpleFeature feature
The feature that will be styled as a polygon
-
ls
protected LineSymbolizer ls
The line symbolizer used to get stroke/composite/...
-
-
Constructor Detail
-
DynamicLineStyle2D
public DynamicLineStyle2D(SimpleFeature feature, LineSymbolizer sym)
Creates a new instance of DynamicLineStyle2D
-
-
Method Detail
-
getStroke
public Stroke getStroke()
Computes and returns the stroke- Overrides:
getStrokein classLineStyle2D- Returns:
- the current stroke or null if none
-
getPerpendicularOffset
public double getPerpendicularOffset()
Description copied from class:LineStyle2DReturns the perpendicular offset value for this style- Overrides:
getPerpendicularOffsetin classLineStyle2D
-
getContourComposite
public Composite getContourComposite()
Computes and returns the contour style- Overrides:
getContourCompositein classLineStyle2D- Returns:
- the current contour composite, or null if opaque
-
getContour
public Paint getContour()
Returns the contour paint- Overrides:
getContourin classLineStyle2D- Returns:
- the contour paint
-
-