Class DynamicLineStyle2D

Object
Style
Style2D
LineStyle2D
DynamicLineStyle2D
All Implemented Interfaces:
Cloneable

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 Details

    • 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 Details

    • DynamicLineStyle2D

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

    • getStroke

      public Stroke getStroke()
      Computes and returns the stroke
      Overrides:
      getStroke in class LineStyle2D
      Returns:
      the current stroke or null if none
    • getPerpendicularOffset

      public double getPerpendicularOffset()
      Description copied from class: LineStyle2D
      Returns the perpendicular offset value for this style
      Overrides:
      getPerpendicularOffset in class LineStyle2D
    • 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