org.geotools.renderer.style
Class PolygonStyle2D

Object
  extended by Style
      extended by Style2D
          extended by LineStyle2D
              extended by 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:
modules/library/render (gt-render.jar)

Field Summary
protected  Paint fill
           
protected  Composite fillComposite
           
 
Fields inherited from class LineStyle2D
contour, contourComposite, stroke
 
Fields inherited from class Style
maxScale, minScale
 
Constructor Summary
PolygonStyle2D()
           
 
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.
 
Methods inherited from class LineStyle2D
getContour, getContourComposite, getGraphicStroke, getStroke, setContour, setContourComposite, setGraphicStroke, setStroke
 
Methods inherited from class Style
getMaxScale, getMinScale, isScaleInRange, setMinMaxScale
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fill

protected Paint fill

fillComposite

protected Composite fillComposite
Constructor Detail

PolygonStyle2D

public PolygonStyle2D()
Method Detail

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.