Package org.geotools.renderer.style
Class DynamicPolygonStyle2D
- Object
-
- Style
-
- Style2D
-
- LineStyle2D
-
- PolygonStyle2D
-
- DynamicPolygonStyle2D
-
- All Implemented Interfaces:
Cloneable
public class DynamicPolygonStyle2D extends PolygonStyle2D
A dynamic polygon style, that will compute its parameters each time they are requested instead of caching them- Author:
- jamesm
-
-
Field Summary
-
Fields inherited from class PolygonStyle2D
fill, fillComposite, graphicFill
-
Fields inherited from class LineStyle2D
contour, contourComposite, perpendicularOffset, stroke
-
-
Constructor Summary
Constructors Constructor Description DynamicPolygonStyle2D(SimpleFeature f, PolygonSymbolizer sym)
Creates a new instance of DynamicPolygonStyle2D
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Paint
getFill()
Computes and returns the fill based on the feature and the symbolizerComposite
getFillComposite()
Computes and returns the fill composite based on the feature and the symbolizer-
Methods inherited from class PolygonStyle2D
getGraphicFill, setFill, setFillComposite, setGraphicFill, toString
-
Methods inherited from class LineStyle2D
getContour, getContourComposite, getGraphicStroke, getPerpendicularOffset, getStroke, setContour, setContourComposite, setGraphicStroke, setPerpendicularOffset, setStroke
-
Methods inherited from class Style
clone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScale
-
-
-
-
Constructor Detail
-
DynamicPolygonStyle2D
public DynamicPolygonStyle2D(SimpleFeature f, PolygonSymbolizer sym)
Creates a new instance of DynamicPolygonStyle2D
-
-
Method Detail
-
getFill
public Paint getFill()
Computes and returns the fill based on the feature and the symbolizer- Overrides:
getFill
in classPolygonStyle2D
- Returns:
- the current fill or null if none
-
getFillComposite
public Composite getFillComposite()
Computes and returns the fill composite based on the feature and the symbolizer- Overrides:
getFillComposite
in classPolygonStyle2D
- Returns:
- the current fill composite or null if none
-
-