java2dx by
jTEM

de.jtem.java2dx.modelling
Class DraggableAnnotation

java.lang.Object
  extended by de.jtem.java2dx.modelling.ModellingTool2D
      extended by de.jtem.java2dx.modelling.DraggableAnnotation
All Implemented Interfaces:
ModellingTool, Serializable, Cloneable, EventListener, ChangeListener

public class DraggableAnnotation
extends ModellingTool2D

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class de.jtem.java2dx.modelling.ModellingTool2D
ModellingTool2D.TranslationTool
 
Constructor Summary
DraggableAnnotation()
           
DraggableAnnotation(Annotation a)
          a is not copied
DraggableAnnotation(DraggableAnnotation f)
          makes a copy of the model of f
 
Method Summary
 DraggableAnnotation clone()
           
 ActionTree getActionTree()
           
 SceneComponent getControlScene()
          Overrides the method from the ModellingTool interface with an appropriate return type.
 Annotation getModel()
           
 void recallModelState()
           
 void reset()
           
 void storeModelState()
           
 void translate(double x, double y)
           
protected  void updateFromModel()
          Respond to a change of the model state.
 
Methods inherited from class de.jtem.java2dx.modelling.ModellingTool2D
addActionTree, addChangeListener, fireModelChange, getMenu, getMenuDragListener, getModelType, getName, getViewScene, moveTo, removeChangeListener, setMenuDragListener, setModelType, setName, stateChanged
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DraggableAnnotation

public DraggableAnnotation()

DraggableAnnotation

public DraggableAnnotation(Annotation a)
a is not copied


DraggableAnnotation

public DraggableAnnotation(DraggableAnnotation f)
makes a copy of the model of f

Method Detail

clone

public DraggableAnnotation clone()
Specified by:
clone in interface ModellingTool
Specified by:
clone in class ModellingTool2D

getActionTree

public ActionTree getActionTree()

getControlScene

public SceneComponent getControlScene()
Description copied from class: ModellingTool2D
Overrides the method from the ModellingTool interface with an appropriate return type.

Specified by:
getControlScene in interface ModellingTool
Specified by:
getControlScene in class ModellingTool2D

getModel

public Annotation getModel()

recallModelState

public void recallModelState()

reset

public void reset()

storeModelState

public void storeModelState()

translate

public void translate(double x,
                      double y)
Specified by:
translate in class ModellingTool2D

updateFromModel

protected void updateFromModel()
Description copied from class: ModellingTool2D
Respond to a change of the model state.

Specified by:
updateFromModel in class ModellingTool2D

java2dx by
jTEM

jTEM