org.geotools.renderer.style
Class DynamicPolygonStyle2D

Object
  extended by Style
      extended by Style2D
          extended by LineStyle2D
              extended by PolygonStyle2D
                  extended by DynamicPolygonStyle2D

public class DynamicPolygonStyle2D
extends PolygonStyle2D

A dynamic polygon style, that will compute its parameters each time they are requested instead of caching them

Author:
jamesm
Module:
modules/library/render (gt-render.jar)

Field Summary
 
Fields inherited from class PolygonStyle2D
fill, fillComposite
 
Fields inherited from class LineStyle2D
contour, contourComposite, stroke
 
Fields inherited from class Style
maxScale, minScale
 
Constructor Summary
DynamicPolygonStyle2D(SimpleFeature f, PolygonSymbolizer sym)
          Creates a new instance of DynamicPolygonStyle2D
 
Method Summary
 Paint getFill()
          Computes and returns the fill based on the feature and the symbolizer
 Composite getFillComposite()
          Computes and returns the fill composite based on the feature and the symbolizer
 
Methods inherited from class PolygonStyle2D
setFill, setFillComposite, toString
 
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
 

Constructor Detail

DynamicPolygonStyle2D

public DynamicPolygonStyle2D(SimpleFeature f,
                             PolygonSymbolizer sym)
Creates a new instance of DynamicPolygonStyle2D

Method Detail

getFill

public Paint getFill()
Computes and returns the fill based on the feature and the symbolizer

Overrides:
getFill in class PolygonStyle2D
Returns:
the current fill or null if none

getFillComposite

public Composite getFillComposite()
Computes and returns the fill composite based on the feature and the symbolizer

Overrides:
getFillComposite in class PolygonStyle2D
Returns:
the current fill composite or null if none


Copyright © 1996-2009 Geotools. All Rights Reserved.