de.jtem.java2dx.modelling
Class DraggablePoint2DList
java.lang.Object
de.jtem.java2dx.modelling.ModellingTool2D
de.jtem.java2dx.modelling.DraggablePoint2DList
- All Implemented Interfaces:
- ModellingTool, Serializable, Cloneable, EventListener, ChangeListener
public class DraggablePoint2DList
- extends ModellingTool2D
- See Also:
- Serialized Form
Methods inherited from class de.jtem.java2dx.modelling.ModellingTool2D |
addActionTree, addChangeListener, fireModelChange, getMenu, getMenuDragListener, getModelType, getName, getViewScene, moveTo, removeChangeListener, setMenuDragListener, setModelType, setName, stateChanged |
CIRCULAR
public static final int CIRCULAR
- See Also:
- Constant Field Values
LINEAR
public static final int LINEAR
- See Also:
- Constant Field Values
RANDOM
public static final int RANDOM
- See Also:
- Constant Field Values
DraggablePoint2DList
public DraggablePoint2DList()
DraggablePoint2DList
public DraggablePoint2DList(DraggablePoint2DList p)
- Creates a copy of p with a new PointList that is a copy of the one of p.
- Parameters:
p
- the DraggablePointSet to be copied
DraggablePoint2DList
public DraggablePoint2DList(int defaultPointCount,
int defaultArrangement,
double defaultTranslationX,
double defaultTranslationY,
double defaultRadius)
DraggablePoint2DList
public DraggablePoint2DList(Point2DList p,
int defaultArrangement,
double defaultTranslationX,
double defaultTranslationY,
double defaultRadius)
- p is not copied.
- Parameters:
p
- arrangementType
- positionX
- positionY
- radius
-
clone
public DraggablePoint2DList clone()
- Specified by:
clone
in interface ModellingTool
- Specified by:
clone
in class ModellingTool2D
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
getDefaultArrangement
public int getDefaultArrangement()
getDefaultPointCount
public int getDefaultPointCount()
getDefaultRadius
public double getDefaultRadius()
getDefaultTranslationX
public double getDefaultTranslationX()
getDefaultTranslationY
public double getDefaultTranslationY()
getModel
public Point2DList getModel()
getTransformationTool
public DragListener getTransformationTool()
recallModelState
public void recallModelState()
reset
public void reset()
setDefaultArrangement
public void setDefaultArrangement(int defaultArrangement)
setDefaultPointCount
public void setDefaultPointCount(int defaultPointCount)
setDefaultRadius
public void setDefaultRadius(double defaultRadius)
setDefaultTranslationX
public void setDefaultTranslationX(double defaultTranslationX)
setDefaultTranslationY
public void setDefaultTranslationY(double defaultTranslationY)
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
updateViewFromModel
protected void updateViewFromModel()
jTEM