Package org.geotools.renderer.style
Class PolygonStyle2D
- Object
-
- Style
-
- Style2D
-
- LineStyle2D
-
- PolygonStyle2D
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
DynamicPolygonStyle2D,MarkStyle2D
public class PolygonStyle2D extends LineStyle2D
A style that contains the specification to renderer both the contour and the interior of a shape- Author:
- Andrea Aime
-
-
Field Summary
Fields Modifier and Type Field Description protected Paintfillprotected CompositefillCompositeprotected Style2DgraphicFill-
Fields inherited from class LineStyle2D
contour, contourComposite, perpendicularOffset, stroke
-
-
Constructor Summary
Constructors Constructor Description PolygonStyle2D()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaintgetFill()Returns the filling color for the polygon to be rendered, ornullif none.CompositegetFillComposite()Returns the fill Composite for the polyline to be rendered, ornullif the contour is to be opaqueStyle2DgetGraphicFill()Returns a Style2D used for filling the polygon to be rendered, ornullif none.voidsetFill(Paint fill)Sets 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.StringtoString()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
-
-
-
-
Method Detail
-
getGraphicFill
public Style2D getGraphicFill()
Returns a Style2D used for filling the polygon to be rendered, ornullif none.- Returns:
- the current fill or null if none
-
setGraphicFill
public void setGraphicFill(Style2D graphicFill)
Sets a Style2D for filling the polygon to be rendered. Set it tonullif no Style2D filling is to be performed.
-
getFill
public Paint getFill()
Returns the filling color for the polygon to be rendered, ornullif none.- Returns:
- the current fill or null if none
-
setFill
public void setFill(Paint fill)
Sets filling color for the polygon to be rendered. Set it tonullif no filling is to be performed.
-
getFillComposite
public Composite 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
public void setFillComposite(Composite fillComposite)
Sets the fill Composite for the polyline to be rendered. Set it tonullif the contour is to be opaque
-
toString
public String toString()
Returns a string representation of this style.- Overrides:
toStringin classLineStyle2D
-
-