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 Paint
fill
protected Composite
fillComposite
protected Style2D
graphicFill
-
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 Paint
getFill()
Returns the filling color for the polygon to be rendered, ornull
if none.Composite
getFillComposite()
Returns the fill Composite for the polyline to be rendered, ornull
if the contour is to be opaqueStyle2D
getGraphicFill()
Returns a Style2D used for filling the polygon to be rendered, ornull
if none.void
setFill(Paint fill)
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.String
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
-
-
-
-
Method Detail
-
getGraphicFill
public Style2D getGraphicFill()
Returns a Style2D used for filling the polygon to be rendered, ornull
if 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 tonull
if no Style2D filling is to be performed.
-
getFill
public Paint getFill()
Returns the filling color for the polygon to be rendered, ornull
if 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 tonull
if no filling is to be performed.
-
getFillComposite
public Composite 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
public void setFillComposite(Composite fillComposite)
Sets the fill Composite for the polyline to be rendered. Set it tonull
if the contour is to be opaque
-
toString
public String toString()
Returns a string representation of this style.- Overrides:
toString
in classLineStyle2D
-
-