Class LineStringVertexStyle

java.lang.Object
com.vividsolutions.jump.workbench.ui.renderer.style.LineStringStyle
com.vividsolutions.jump.workbench.ui.renderer.style.LineStringVertexStyle
All Implemented Interfaces:
ChoosableStyle, Style, Cloneable
Direct Known Subclasses:
VertexIndexLineSegmentStyle, VertexXYLineSegmentStyle

public abstract class LineStringVertexStyle extends LineStringStyle implements ChoosableStyle
Base class for styles painting linestring vertices.
Version:
1.0
Author:
Martin Davis
  • Field Details

    • name

      protected String name
    • icon

      protected Icon icon
  • Constructor Details

    • LineStringVertexStyle

      public LineStringVertexStyle(String name, Icon icon)
  • Method Details

    • paintLineString

      protected void paintLineString(org.locationtech.jts.geom.LineString lineString, Viewport viewport, Graphics2D graphics) throws Exception
      Specified by:
      paintLineString in class LineStringStyle
      Parameters:
      lineString - has 2 or more points
      viewport - the viewport to paint the lineString to
      graphics - the graphic context
      Throws:
      Exception - if an Exception occurs during painting
    • paint

      protected abstract void paint(Point2D p0, org.locationtech.jts.geom.LineString line, int index, Viewport viewport, Graphics2D graphics) throws Exception
      Throws:
      Exception
    • getName

      public String getName()
      Description copied from interface: ChoosableStyle
      For display.
      Specified by:
      getName in interface ChoosableStyle
      Returns:
      the name of this Style
    • getIcon

      public Icon getIcon()
      Description copied from interface: ChoosableStyle
      For display. 20 x 20 pixels.
      Specified by:
      getIcon in interface ChoosableStyle
      Returns:
      an Icon representing this Style