java2dx by
jTEM

de.jtem.java2dx.modelling
Class DraggablePoint2D

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

public class DraggablePoint2D
extends ModellingTool2D

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class de.jtem.java2dx.modelling.ModellingTool2D
ModellingTool2D.TranslationTool
 
Constructor Summary
DraggablePoint2D()
           
DraggablePoint2D(DraggablePoint2D p)
          makes a copy of the model of p
DraggablePoint2D(DraggablePoint2D p, Point2DDouble q)
           
DraggablePoint2D(Point2DDouble p)
          p is not copied
 
Method Summary
 DraggablePoint2D clone()
           
 int getAnchor()
           
 SceneComponent getControlScene()
          Overrides the method from the ModellingTool interface with an appropriate return type.
 Point2DDouble getModel()
           
 String getText()
           
 void recallModelState()
           
 void setAnchor(int a)
           
 void setText(String s)
           
 void storeModelState()
           
 void translate(double x, double y)
           
 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

DraggablePoint2D

public DraggablePoint2D()

DraggablePoint2D

public DraggablePoint2D(DraggablePoint2D p)
makes a copy of the model of p


DraggablePoint2D

public DraggablePoint2D(DraggablePoint2D p,
                        Point2DDouble q)

DraggablePoint2D

public DraggablePoint2D(Point2DDouble p)
p is not copied

Method Detail

clone

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

getAnchor

public int getAnchor()

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 Point2DDouble getModel()

getText

public String getText()

recallModelState

public void recallModelState()

setAnchor

public void setAnchor(int a)

setText

public void setText(String s)

storeModelState

public void storeModelState()

translate

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

updateFromModel

public 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