de.soldin.gt2jump.cts
Class CSSetting

java.lang.Object
  extended byde.soldin.gt2jump.cts.CSSetting
All Implemented Interfaces:
EventListener, ItemListener

public class CSSetting
extends Object
implements ItemListener

The class CSSetting represents the assigned cs for a layer. It preserves the last cs for undo purposes and contains the next cs if a setting process is on the go.

CSSetting is an implementation of AWT's Itemlistener in order to be attached to user interface components.


Field Summary
 org.geotools.cs.CoordinateSystem cs
           
 com.vividsolutions.jump.workbench.model.Layer layer
           
 org.geotools.cs.CoordinateSystem next_cs
           
 org.geotools.cs.CoordinateSystem prev_cs
           
 
Constructor Summary
CSSetting()
           
CSSetting(com.vividsolutions.jump.workbench.model.Layer layer)
           
 
Method Summary
 void addSetListener(CSSetListener set_li)
           
static org.geotools.cs.CoordinateSystem getCS(String key)
           
static String getKey(org.geotools.cs.CoordinateSystem a_cs)
           
 void itemStateChanged(ItemEvent e)
           
 void listenEventsFrom(JPanel panel)
           
 void listenItemEventsFrom(JComboBox cbox)
           
 void rollback()
           
 boolean setCS(Object key)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

layer

public com.vividsolutions.jump.workbench.model.Layer layer

prev_cs

public org.geotools.cs.CoordinateSystem prev_cs

cs

public org.geotools.cs.CoordinateSystem cs

next_cs

public org.geotools.cs.CoordinateSystem next_cs
Constructor Detail

CSSetting

public CSSetting()

CSSetting

public CSSetting(com.vividsolutions.jump.workbench.model.Layer layer)
Method Detail

itemStateChanged

public void itemStateChanged(ItemEvent e)
Specified by:
itemStateChanged in interface ItemListener

setCS

public boolean setCS(Object key)

rollback

public void rollback()

addSetListener

public void addSetListener(CSSetListener set_li)

listenItemEventsFrom

public void listenItemEventsFrom(JComboBox cbox)

listenEventsFrom

public void listenEventsFrom(JPanel panel)

toString

public String toString()

getKey

public static String getKey(org.geotools.cs.CoordinateSystem a_cs)

getCS

public static org.geotools.cs.CoordinateSystem getCS(String key)