org.geotools.renderer.style
Class DynamicLineStyle2D

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.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

Field Summary
protected  Feature 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 org.geotools.renderer.style.LineStyle2D
contour, contourComposite, stroke
 
Fields inherited from class org.geotools.renderer.style.Style
maxScale, minScale
 
Constructor Summary
DynamicLineStyle2D(Feature feature, LineSymbolizer sym)
          Creates a new instance of DynamicLineStyle2D
 
Method Summary
 java.awt.Paint getContour()
          Returns the contour paint
 java.awt.Composite getContourComposite()
          Computes and returns the contour style
 java.awt.Stroke getStroke()
          Computes and returns the stroke
 
Methods inherited from class org.geotools.renderer.style.LineStyle2D
getGraphicStroke, setContour, setContourComposite, setGraphicStroke, setStroke, toString
 
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

feature

protected Feature 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(Feature feature,
                          LineSymbolizer sym)
Creates a new instance of DynamicLineStyle2D

Method Detail

getStroke

public java.awt.Stroke getStroke()
Computes and returns the stroke

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

getContourComposite

public java.awt.Composite getContourComposite()
Computes and returns the contour style

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

getContour

public java.awt.Paint getContour()
Returns the contour paint

Overrides:
getContour in class LineStyle2D
Returns:
the contour paint


Copyright © GeoTools. All Rights Reserved.