Class SRIDStyle

java.lang.Object
de.hawhamburg.sridsupport.SRIDStyle
All Implemented Interfaces:
Style, Cloneable

@Deprecated public class SRIDStyle extends Object implements Style
Deprecated.
Ensures that all geometries have a given SRID. Because it is a Style, it will be saved to the task file.
See Also:
  • Constructor Details

    • SRIDStyle

      public SRIDStyle()
      Deprecated.
  • Method Details

    • paint

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

      public void initialize(Layer layer)
      Deprecated.
      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
    • updateSRIDs

      public void updateSRIDs(Layer layer)
      Deprecated.
    • clone

      public Object clone()
      Deprecated.
      Specified by:
      clone in interface Style
      Overrides:
      clone in class Object
    • setEnabled

      public void setEnabled(boolean enabled)
      Deprecated.
      Specified by:
      setEnabled in interface Style
    • isEnabled

      public boolean isEnabled()
      Deprecated.
      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.
    • getSRID

      public int getSRID()
      Deprecated.
    • setSRID

      public void setSRID(int srid)
      Deprecated.