org.geotools.renderer.style
Class DynamicPolygonStyle2D

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
                  extended byorg.geotools.renderer.style.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

Field Summary
 
Fields inherited from class org.geotools.renderer.style.PolygonStyle2D
fill, 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
DynamicPolygonStyle2D(Feature f, PolygonSymbolizer sym)
          Creates a new instance of DynamicPolygonStyle2D
 
Method Summary
 java.awt.Paint getFill()
          Computes and returns the fill based on the feature and the symbolizer
 java.awt.Composite getFillComposite()
          Computes and returns the fill composite based on the feature and the symbolizer
 
Methods inherited from class org.geotools.renderer.style.PolygonStyle2D
setFill, setFillComposite, toString
 
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
 

Constructor Detail

DynamicPolygonStyle2D

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

Method Detail

getFill

public java.awt.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 java.awt.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 © GeoTools. All Rights Reserved.