de.jtem.java2dx.modelling
Class DraggableLatexIcon
java.lang.Object
de.jtem.java2dx.modelling.ModellingTool2D
de.jtem.java2dx.modelling.DraggableLatexIcon
- All Implemented Interfaces:
- ModellingTool, Serializable, Cloneable, EventListener, ChangeListener
public class DraggableLatexIcon
- 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 |
DraggableLatexIcon
public DraggableLatexIcon()
DraggableLatexIcon
public DraggableLatexIcon(DraggableLatexIcon f)
- makes a copy of the model of f
DraggableLatexIcon
public DraggableLatexIcon(LatexIcon i,
double x,
double y,
int anchor)
- p is not copied
clone
public DraggableLatexIcon clone()
- Specified by:
clone
in interface ModellingTool
- Specified by:
clone
in class ModellingTool2D
getActionTree
public ActionTree getActionTree()
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 LatexIcon getModel()
getX
public double getX()
getY
public double getY()
recallModelState
public void recallModelState()
reset
public void reset()
setAnchor
public void setAnchor(int a)
setX
public void setX(double x)
setY
public void setY(double y)
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
jTEM