java2dx by
jTEM

de.jtem.java2dx.modelling
Class DraggableLine2D

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

public class DraggableLine2D
extends ModellingTool2D

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class de.jtem.java2dx.modelling.ModellingTool2D
ModellingTool2D.TranslationTool
 
Field Summary
static int NONE
           
static int ON_BOTH_ENDS
           
static int ON_TIP
           
 
Constructor Summary
DraggableLine2D()
           
DraggableLine2D(DraggableLine2D p)
          makes a copy of the model of p
DraggableLine2D(DraggableLine2D p, Line2DDouble q)
           
DraggableLine2D(Line2DDouble p)
          p is not copied
 
Method Summary
 DraggableLine2D clone()
           
 double getArrowHeadAspectRatio()
           
 int getArrowHeadCount()
           
 double getArrowHeadRadius()
           
 SceneComponent getControlScene()
          Overrides the method from the ModellingTool interface with an appropriate return type.
 Line2DDouble getModel()
           
 boolean isCirclesInsteadOfArrows()
           
 void recallModelState()
           
 void setArrowHeadAspectRatio(double a)
           
 void setArrowHeadCount(int n)
           
 void setArrowHeadRadius(double r)
           
 void setCirclesInsteadOfArrows(boolean b)
           
 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
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

ON_BOTH_ENDS

public static final int ON_BOTH_ENDS
See Also:
Constant Field Values

ON_TIP

public static final int ON_TIP
See Also:
Constant Field Values
Constructor Detail

DraggableLine2D

public DraggableLine2D()

DraggableLine2D

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


DraggableLine2D

public DraggableLine2D(DraggableLine2D p,
                       Line2DDouble q)

DraggableLine2D

public DraggableLine2D(Line2DDouble p)
p is not copied

Method Detail

clone

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

getArrowHeadAspectRatio

public double getArrowHeadAspectRatio()

getArrowHeadCount

public int getArrowHeadCount()

getArrowHeadRadius

public double getArrowHeadRadius()

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

isCirclesInsteadOfArrows

public boolean isCirclesInsteadOfArrows()

recallModelState

public void recallModelState()

setArrowHeadAspectRatio

public void setArrowHeadAspectRatio(double a)

setArrowHeadCount

public void setArrowHeadCount(int n)

setArrowHeadRadius

public void setArrowHeadRadius(double r)

setCirclesInsteadOfArrows

public void setCirclesInsteadOfArrows(boolean b)

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