Package org.geotools.renderer.style
Class PolygonStyle2D
Object
Style
Style2D
LineStyle2D
PolygonStyle2D
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
DynamicPolygonStyle2D,MarkStyle2D
A style that contains the specification to renderer both the contour and the interior of a shape
- Author:
- Andrea Aime
-
Field Summary
FieldsFields inherited from class LineStyle2D
contour, contourComposite, perpendicularOffset, stroke -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFill()Returns the filling color for the polygon to be rendered, ornullif none.Returns the fill Composite for the polyline to be rendered, ornullif the contour is to be opaqueReturns a Style2D used for filling the polygon to be rendered, ornullif none.voidSets filling color for the polygon to be rendered.voidsetFillComposite(Composite fillComposite) Sets the fill Composite for the polyline to be rendered.voidsetGraphicFill(Style2D graphicFill) Sets a Style2D for filling the polygon to be rendered.toString()Returns a string representation of this style.Methods inherited from class LineStyle2D
getContour, getContourComposite, getGraphicStroke, getPerpendicularOffset, getStroke, setContour, setContourComposite, setGraphicStroke, setPerpendicularOffset, setStrokeMethods inherited from class Style
clone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScale
-
Field Details
-
fill
-
graphicFill
-
fillComposite
-
-
Constructor Details
-
PolygonStyle2D
public PolygonStyle2D()
-
-
Method Details
-
getGraphicFill
Returns a Style2D used for filling the polygon to be rendered, ornullif none.- Returns:
- the current fill or null if none
-
setGraphicFill
Sets a Style2D for filling the polygon to be rendered. Set it tonullif no Style2D filling is to be performed. -
getFill
Returns the filling color for the polygon to be rendered, ornullif none.- Returns:
- the current fill or null if none
-
setFill
Sets filling color for the polygon to be rendered. Set it tonullif no filling is to be performed. -
getFillComposite
Returns the fill Composite for the polyline to be rendered, ornullif the contour is to be opaque- Returns:
- the current fill composite or null if none
-
setFillComposite
Sets the fill Composite for the polyline to be rendered. Set it tonullif the contour is to be opaque -
toString
Returns a string representation of this style.- Overrides:
toStringin classLineStyle2D
-