Class PinEqualCoordinatesStyle

java.lang.Object
com.vividsolutions.jump.workbench.ui.renderer.style.PinEqualCoordinatesStyle
All Implemented Interfaces:
Style, Cloneable

public class PinEqualCoordinatesStyle extends Object implements Style
  • Constructor Details

    • PinEqualCoordinatesStyle

      public PinEqualCoordinatesStyle()
      Parameterless constructor for Java2XML persistence. [Jon Aquino]
    • PinEqualCoordinatesStyle

      public PinEqualCoordinatesStyle(Color color)
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface Style
      Returns:
      false if #paint should not be called e.g. because vertices are not shown. Don't need to check whether the layer is visible.
    • initialize

      public void initialize(Layer layer)
      Description copied from interface: Style
      Called before #paint is applied to each Feature.
      Specified by:
      initialize in interface Style
      Parameters:
      layer - the layer on which to apply this style
    • clone

      public Object clone()
      Specified by:
      clone in interface Style
      Overrides:
      clone in class Object
    • paint

      public void paint(Feature f, Graphics2D g, Viewport viewport) throws Exception
      Specified by:
      paint in interface Style
      Throws:
      Exception
    • setEnabled

      public void setEnabled(boolean enabled)
      Specified by:
      setEnabled in interface Style
    • paintGeometry

      protected void paintGeometry(org.locationtech.jts.geom.Geometry geometry, Graphics2D graphics, Viewport viewport) throws Exception
      Throws:
      Exception
    • coordinatesEqual

      public static boolean coordinatesEqual(org.locationtech.jts.geom.Geometry geometry)
    • getColor

      public Color getColor()
    • setColor

      public void setColor(Color color)