org.geotools.renderer.style
Class PolygonStyle2D
java.lang.Object
org.geotools.renderer.style.Style
org.geotools.renderer.style.Style2D
org.geotools.renderer.style.LineStyle2D
org.geotools.renderer.style.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
- Version:
- $Id: PolygonStyle2D.java 17703 2006-01-23 00:12:44Z desruisseaux $
- Author:
- Andrea Aime
Field Summary |
protected java.awt.Paint |
fill
|
protected java.awt.Composite |
fillComposite
|
Method Summary |
java.awt.Paint |
getFill()
Returns the filling color for the polygon to
be rendered, or null if none. |
java.awt.Composite |
getFillComposite()
Returns the fill Composite for the polyline
to be rendered, or null if the contour is to be opaque |
void |
setFill(java.awt.Paint fill)
Sets filling color for the polygon to be
rendered. |
void |
setFillComposite(java.awt.Composite fillComposite)
Sets the fill Composite for the polyline to
be rendered. |
java.lang.String |
toString()
Returns a string representation of this style. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fill
protected java.awt.Paint fill
fillComposite
protected java.awt.Composite fillComposite
PolygonStyle2D
public PolygonStyle2D()
getFill
public java.awt.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(java.awt.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 java.awt.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(java.awt.Composite fillComposite)
- Sets the fill Composite for the polyline to
be rendered. Set it to
null
if the contour is to be opaque
toString
public java.lang.String toString()
- Returns a string representation of this style.
- Overrides:
toString
in class LineStyle2D
Copyright © GeoTools. All Rights Reserved.