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, ornull
if none.Returns the fill Composite for the polyline to be rendered, ornull
if the contour is to be opaqueReturns a Style2D used for filling the polygon to be rendered, ornull
if none.void
Sets filling color for the polygon to be rendered.void
setFillComposite
(Composite fillComposite) Sets the fill Composite for the polyline to be rendered.void
setGraphicFill
(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, setStroke
Methods 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, ornull
if none.- Returns:
- the current fill or null if none
-
setGraphicFill
Sets a Style2D for filling the polygon to be rendered. Set it tonull
if no Style2D filling is to be performed. -
getFill
Returns the filling color for the polygon to be rendered, ornull
if none.- Returns:
- the current fill or null if none
-
setFill
Sets filling color for the polygon to be rendered. Set it tonull
if no filling is to be performed. -
getFillComposite
Returns the fill Composite for the polyline to be rendered, ornull
if 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 tonull
if the contour is to be opaque -
toString
Returns a string representation of this style.- Overrides:
toString
in classLineStyle2D
-