java2dx by
jTEM

de.jtem.java2dx.modelling
Class ModellingTool2D

java.lang.Object
  extended by de.jtem.java2dx.modelling.ModellingTool2D
All Implemented Interfaces:
ModellingTool, Serializable, Cloneable, EventListener, ChangeListener
Direct Known Subclasses:
DraggableAnnotation, DraggableLatexIcon, DraggableLine2D, DraggablePoint2D, DraggablePoint2DList, DraggablePolygon2D

public abstract class ModellingTool2D
extends Object
implements ChangeListener, ModellingTool, Serializable

See Also:
Serialized Form

Nested Class Summary
static class ModellingTool2D.TranslationTool
           
 
Constructor Summary
protected ModellingTool2D()
           
protected ModellingTool2D(ModellingTool2D m)
           
 
Method Summary
 void addActionTree(ActionTree t)
           
 void addChangeListener(ChangeListener listener)
           
abstract  ModellingTool2D clone()
           
 void fireModelChange()
           
abstract  SceneComponent getControlScene()
          Overrides the method from the ModellingTool interface with an appropriate return type.
 JPopupMenu getMenu()
           
 DragListener getMenuDragListener()
           
 String getModelType()
           
 String getName()
           
 SceneComponent getViewScene()
          Overrides the method from the ModellingTool interface with an appropriate return type.
 void moveTo(double[] v)
           
 void removeChangeListener(ChangeListener listener)
           
 void setMenuDragListener(DragListener l)
           
 void setModelType(String s)
           
 void setName(String s)
           
 void stateChanged(ChangeEvent e)
           
abstract  void translate(double x, double y)
           
protected abstract  void updateFromModel()
          Respond to a change of the model state.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.jtem.modelling.ModellingTool
getModel, recallModelState, storeModelState
 

Constructor Detail

ModellingTool2D

protected ModellingTool2D()

ModellingTool2D

protected ModellingTool2D(ModellingTool2D m)
Method Detail

addActionTree

public void addActionTree(ActionTree t)
Specified by:
addActionTree in interface ModellingTool

addChangeListener

public void addChangeListener(ChangeListener listener)
Specified by:
addChangeListener in interface ModellingTool

clone

public abstract ModellingTool2D clone()
Specified by:
clone in interface ModellingTool
Overrides:
clone in class Object

fireModelChange

public void fireModelChange()

getControlScene

public abstract SceneComponent getControlScene()
Overrides the method from the ModellingTool interface with an appropriate return type.

Specified by:
getControlScene in interface ModellingTool

getMenu

public JPopupMenu getMenu()

getMenuDragListener

public DragListener getMenuDragListener()

getModelType

public String getModelType()
Specified by:
getModelType in interface ModellingTool

getName

public String getName()
Specified by:
getName in interface ModellingTool

getViewScene

public SceneComponent getViewScene()
Overrides the method from the ModellingTool interface with an appropriate return type.

Specified by:
getViewScene in interface ModellingTool

moveTo

public void moveTo(double[] v)
Specified by:
moveTo in interface ModellingTool

removeChangeListener

public void removeChangeListener(ChangeListener listener)
Specified by:
removeChangeListener in interface ModellingTool

setMenuDragListener

public void setMenuDragListener(DragListener l)

setModelType

public void setModelType(String s)

setName

public void setName(String s)
Specified by:
setName in interface ModellingTool

stateChanged

public void stateChanged(ChangeEvent e)
Specified by:
stateChanged in interface ChangeListener

translate

public abstract void translate(double x,
                               double y)

updateFromModel

protected abstract void updateFromModel()
Respond to a change of the model state.


java2dx by
jTEM

jTEM