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 SimpleFeature
feature
The feature that will be styled as a polygonprotected LineSymbolizer
ls
The 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 Paint
getContour()
Returns the contour paintComposite
getContourComposite()
Computes and returns the contour styledouble
getPerpendicularOffset()
Returns the perpendicular offset value for this styleStroke
getStroke()
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:
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
public Composite getContourComposite()
Computes and returns the contour style- Overrides:
getContourComposite
in classLineStyle2D
- Returns:
- the current contour composite, or null if opaque
-
getContour
public Paint getContour()
Returns the contour paint- Overrides:
getContour
in classLineStyle2D
- Returns:
- the contour paint
-
-