org.geotools.renderer.style
Class DynamicLineStyle2D

Object
  extended by Style
      extended by Style2D
          extended by LineStyle2D
              extended by DynamicLineStyle2D

public class DynamicLineStyle2D
extends LineStyle2D

A dynamic line 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
protected  SimpleFeature feature
          The feature that will be styled as a polygon
protected  LineSymbolizer ls
          The line symbolizer used to get stroke/composite/...
 
Fields inherited from class LineStyle2D
contour, contourComposite, stroke
 
Fields inherited from class Style
maxScale, minScale
 
Constructor Summary
DynamicLineStyle2D(SimpleFeature feature, LineSymbolizer sym)
          Creates a new instance of DynamicLineStyle2D
 
Method Summary
 Paint getContour()
          Returns the contour paint
 Composite getContourComposite()
          Computes and returns the contour style
 Stroke getStroke()
          Computes and returns the stroke
 
Methods inherited from class LineStyle2D
getGraphicStroke, setContour, setContourComposite, setGraphicStroke, setStroke, toString
 
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

feature

protected SimpleFeature feature
The feature that will be styled as a polygon


ls

protected LineSymbolizer ls
The line symbolizer used to get stroke/composite/...

Constructor Detail

DynamicLineStyle2D

public DynamicLineStyle2D(SimpleFeature feature,
                          LineSymbolizer sym)
Creates a new instance of DynamicLineStyle2D

Method Detail

getStroke

public Stroke getStroke()
Computes and returns the stroke

Overrides:
getStroke in class LineStyle2D
Returns:
the current stroke or null if none

getContourComposite

public Composite getContourComposite()
Computes and returns the contour style

Overrides:
getContourComposite in class LineStyle2D
Returns:
the current contour composite, or null if opaque

getContour

public Paint getContour()
Returns the contour paint

Overrides:
getContour in class LineStyle2D
Returns:
the contour paint


Copyright © 1996-2010 Geotools. All Rights Reserved.