java2dx by
jTEM

de.jtem.java2dx.modelling
Class DraggablePoint2DList

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

public class DraggablePoint2DList
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 CIRCULAR
           
static int LINEAR
           
static int RANDOM
           
 
Constructor Summary
DraggablePoint2DList()
           
DraggablePoint2DList(DraggablePoint2DList p)
          Creates a copy of p with a new PointList that is a copy of the one of p.
DraggablePoint2DList(int defaultPointCount, int defaultArrangement, double defaultTranslationX, double defaultTranslationY, double defaultRadius)
           
DraggablePoint2DList(Point2DList p, int defaultArrangement, double defaultTranslationX, double defaultTranslationY, double defaultRadius)
          p is not copied.
 
Method Summary
 DraggablePoint2DList clone()
           
 SceneComponent getControlScene()
          Overrides the method from the ModellingTool interface with an appropriate return type.
 int getDefaultArrangement()
           
 int getDefaultPointCount()
           
 double getDefaultRadius()
           
 double getDefaultTranslationX()
           
 double getDefaultTranslationY()
           
 Point2DList getModel()
           
 DragListener getTransformationTool()
           
 void recallModelState()
           
 void reset()
           
 void setDefaultArrangement(int defaultArrangement)
           
 void setDefaultPointCount(int defaultPointCount)
           
 void setDefaultRadius(double defaultRadius)
           
 void setDefaultTranslationX(double defaultTranslationX)
           
 void setDefaultTranslationY(double defaultTranslationY)
           
 void storeModelState()
           
 void translate(double x, double y)
           
protected  void updateFromModel()
          Respond to a change of the model state.
protected  void updateViewFromModel()
           
 
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

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
Constructor Detail

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 -
Method Detail

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

java2dx by
jTEM

jTEM