org.geotools.renderer.style
Class PolygonStyle2D
Object
Style
Style2D
LineStyle2D
PolygonStyle2D
- 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
- Module:
Method Summary |
Paint |
getFill()
Returns the filling color for the polygon to
be rendered, or null if none. |
Composite |
getFillComposite()
Returns the fill Composite for the polyline
to be rendered, or null if the contour is to be opaque |
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. |
String |
toString()
Returns a string representation of this style. |
fill
protected Paint fill
fillComposite
protected Composite fillComposite
PolygonStyle2D
public PolygonStyle2D()
getFill
public Paint getFill()
- Returns the filling color for the polygon to
be rendered, or
null
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 to
null
if no filling is to be performed.
- Parameters:
fill
-
getFillComposite
public Composite getFillComposite()
- Returns the fill Composite for the polyline
to be rendered, or
null
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 to
null
if the contour is to be opaque
- Parameters:
fillComposite
-
toString
public String toString()
- Returns a string representation of this style.
- Overrides:
toString
in class LineStyle2D
Copyright © 1996-2009 Geotools. All Rights Reserved.