|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.dsol.animation.D2.Renderable2D
nl.tudelft.simulation.dsol.animation.D2.EditableRenderable2D
public abstract class EditableRenderable2D
EditableRenderable2D is an abstract class that implements EditableRenderable2DInterface. This class can be extended by classes that animate editable simulation objects.
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface |
---|
Renderable2DInterface.Util |
Field Summary | |
---|---|
protected Editable |
source
the source of this renderable |
Fields inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2D |
---|
flip, rotate, scale, simulator, translate |
Constructor Summary | |
---|---|
EditableRenderable2D(Editable source,
SimulatorInterface simulator)
constructs a new EditableRenderable2D |
Method Summary | |
---|---|
boolean |
allowAddOrDeletePoints()
Is the user allowed to add or delete points of this editable? |
boolean |
allowDelete()
Is the user allowed to delete this object? |
boolean |
allowEditPoints()
Is the user allowed to edit individual points of this editable? |
boolean |
allowMove()
Is the user allowed to move this editable? |
boolean |
allowRotate()
Is the user allowed to rotate this editable? |
boolean |
allowScale()
Is the user allowed to scale this editable? |
int |
getMaxNumberOfPoints()
Get the maximum allowed number of points for this editable |
int |
getMinNumberOfPoints()
Get the minimum allowed number of points for this editable |
boolean |
isClosedShape()
Returns whether this shape is closed or open. |
Methods inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2D |
---|
bind2Context, contains, destroy, getSource, isFlip, isRotate, isScale, isTranslate, paint, paint, setFlip, setRotate, setScale, setTranslate, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface |
---|
contains, destroy, getSource, paint |
Field Detail |
---|
protected Editable source
Constructor Detail |
---|
public EditableRenderable2D(Editable source, SimulatorInterface simulator)
source
- the source and targetsimulator
- the simulatorMethod Detail |
---|
public boolean isClosedShape()
EditableRenderable2DInterface
isClosedShape
in interface EditableRenderable2DInterface
EditableRenderable2DInterface.isClosedShape()
public boolean allowMove()
EditableRenderable2DInterface
allowMove
in interface EditableRenderable2DInterface
EditableRenderable2DInterface.allowMove()
public boolean allowRotate()
EditableRenderable2DInterface
allowRotate
in interface EditableRenderable2DInterface
EditableRenderable2DInterface.allowRotate()
public boolean allowScale()
EditableRenderable2DInterface
allowScale
in interface EditableRenderable2DInterface
EditableRenderable2DInterface.allowScale()
public boolean allowEditPoints()
EditableRenderable2DInterface
allowEditPoints
in interface EditableRenderable2DInterface
EditableRenderable2DInterface.allowEditPoints()
public boolean allowDelete()
EditableRenderable2DInterface
allowDelete
in interface EditableRenderable2DInterface
EditableRenderable2DInterface.allowDelete()
public boolean allowAddOrDeletePoints()
EditableRenderable2DInterface
allowAddOrDeletePoints
in interface EditableRenderable2DInterface
EditableRenderable2DInterface.allowAddOrDeletePoints()
public int getMaxNumberOfPoints()
EditableRenderable2DInterface
getMaxNumberOfPoints
in interface EditableRenderable2DInterface
EditableRenderable2DInterface.getMaxNumberOfPoints()
public int getMinNumberOfPoints()
EditableRenderable2DInterface
getMinNumberOfPoints
in interface EditableRenderable2DInterface
EditableRenderable2DInterface.getMinNumberOfPoints()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |