de.soldin.gt2jump.cts
Class CSTransform

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

public class CSTransform
extends Object
implements ItemListener, CSSetListener

a CSSetListener and ItemListener implementation which itself calls a CSTransformFilter if a setting is about to happen.

the CSSetting also works in batch mode. so if it contains more than one CSSetting, it loops until all of them are set to the new cs.


Field Summary
 Collection affected_cs_settings
           
 
Constructor Summary
CSTransform(Collection affected_cs_settings, com.vividsolutions.jump.workbench.WorkbenchContext wbc)
           
CSTransform(CSSetting affected_cs_setting, com.vividsolutions.jump.workbench.WorkbenchContext wbc)
           
 
Method Summary
 void addTransformFilter(CSTransformFilter tr_li)
           
 boolean fireTransformation()
           
 Collection getAffectedCSS()
           
 void itemStateChanged(ItemEvent e)
           
 void listenEventsFrom(JPanel panel)
           
 boolean localTransformation()
           
 void setAffectedCSS(Collection collection)
           
 void setDone(CSSetting css)
          called when the setting process was successful
 void setFailed(CSSetting css)
          called when the setting process failed at some point
 void setTransform(boolean b)
           
 boolean setTry(CSSetting in_css)
          called when somebody tries to set to another cs
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

affected_cs_settings

public Collection affected_cs_settings
Constructor Detail

CSTransform

public CSTransform(CSSetting affected_cs_setting,
                   com.vividsolutions.jump.workbench.WorkbenchContext wbc)

CSTransform

public CSTransform(Collection affected_cs_settings,
                   com.vividsolutions.jump.workbench.WorkbenchContext wbc)
Method Detail

getAffectedCSS

public Collection getAffectedCSS()

setAffectedCSS

public void setAffectedCSS(Collection collection)

setTransform

public void setTransform(boolean b)

itemStateChanged

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

listenEventsFrom

public void listenEventsFrom(JPanel panel)

addTransformFilter

public void addTransformFilter(CSTransformFilter tr_li)

setTry

public boolean setTry(CSSetting in_css)
Description copied from interface: CSSetListener
called when somebody tries to set to another cs

Specified by:
setTry in interface CSSetListener
Parameters:
in_css - the CSSetting
Returns:
if the trial was succesful

setDone

public void setDone(CSSetting css)
Description copied from interface: CSSetListener
called when the setting process was successful

Specified by:
setDone in interface CSSetListener
Parameters:
css - the CSSetting

setFailed

public void setFailed(CSSetting css)
Description copied from interface: CSSetListener
called when the setting process failed at some point

Specified by:
setFailed in interface CSSetListener
Parameters:
css - the CSSetting

localTransformation

public boolean localTransformation()

fireTransformation

public boolean fireTransformation()

toString

public String toString()