org.geotools.renderer.style
Class PolygonStyle2D

java.lang.Object
  extended byorg.geotools.renderer.style.Style
      extended byorg.geotools.renderer.style.Style2D
          extended byorg.geotools.renderer.style.LineStyle2D
              extended byorg.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
           
 
Fields inherited from class org.geotools.renderer.style.LineStyle2D
contour, contourComposite, stroke
 
Fields inherited from class org.geotools.renderer.style.Style
maxScale, minScale
 
Constructor Summary
PolygonStyle2D()
           
 
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 org.geotools.renderer.style.LineStyle2D
getContour, getContourComposite, getGraphicStroke, getStroke, setContour, setContourComposite, setGraphicStroke, setStroke
 
Methods inherited from class org.geotools.renderer.style.Style
getMaxScale, getMinScale, isScaleInRange, setMinMaxScale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fill

protected java.awt.Paint fill

fillComposite

protected java.awt.Composite fillComposite
Constructor Detail

PolygonStyle2D

public PolygonStyle2D()
Method Detail

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.