de.hawhamburg.sridsupport
Class SRIDStyle

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

public class SRIDStyle
extends java.lang.Object
implements Style

Ensures that all geometries have a given SRID. Because it is a Style, it will be saved to the task file.


Constructor Summary
SRIDStyle()
           
 
Method Summary
 java.lang.Object clone()
           
 int getSRID()
           
 void initialize(Layer layer)
          Called before #paint is applied to each Feature.
 boolean isEnabled()
           
 void paint(Feature f, java.awt.Graphics2D g, Viewport viewport)
           
 void setEnabled(boolean enabled)
           
 void setSRID(int srid)
           
 void updateSRIDs(Layer layer)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SRIDStyle

public SRIDStyle()
Method Detail

paint

public void paint(Feature f,
                  java.awt.Graphics2D g,
                  Viewport viewport)
           throws java.lang.Exception
Specified by:
paint in interface Style
Throws:
java.lang.Exception

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

updateSRIDs

public void updateSRIDs(Layer layer)

clone

public java.lang.Object clone()
Specified by:
clone in interface Style
Overrides:
clone in class java.lang.Object

setEnabled

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

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface Style

getSRID

public int getSRID()

setSRID

public void setSRID(int srid)