|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.dsol.animation.Editable
public abstract class Editable
An Editable object is a simulation object that can be edited by the user. That means that the user is capable of instantiating, moving, rotating, and editing the vertices that span up the shape of this object during the simulation.
(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.
Field Summary | |
---|---|
protected Bounds |
bounds
the location of the bounds |
protected DirectedPoint |
location
the location of the editable |
static EventType |
LOCATION_CHANGED_EVENT
LOCATION_CHANGED_EVENT the LOCATION_CHANGED_EVENT |
protected SimulatorInterface |
simulator
the simulator to use |
protected CartesianPoint[] |
vertices
the vertices |
Fields inherited from class nl.tudelft.simulation.event.EventProducer |
---|
listeners |
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
---|
FIRST_POSITION, LAST_POSITION |
Constructor Summary | |
---|---|
Editable(SimulatorInterface simulator,
DirectedPoint location)
constructs a new Editable |
Method Summary | |
---|---|
Bounds |
getBounds()
returns the bounds of the locatable object. |
DirectedPoint |
getLocation()
returns the location of an object |
CartesianPoint[] |
getVertices()
|
static Map |
listEditables()
returns the editables as a list of name=class |
void |
setBounds(Bounds bounds)
sets the bounds of this editable |
void |
setLocation(DirectedPoint location)
sets the location of this editable. |
void |
setVertices(CartesianPoint[] vertices)
sets the vertices of this editable |
Methods inherited from class nl.tudelft.simulation.event.EventProducer |
---|
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final EventType LOCATION_CHANGED_EVENT
protected SimulatorInterface simulator
protected DirectedPoint location
protected Bounds bounds
protected CartesianPoint[] vertices
Constructor Detail |
---|
public Editable(SimulatorInterface simulator, DirectedPoint location)
simulator
- the simulator to schedule onlocation
- the initial locationMethod Detail |
---|
public static Map listEditables()
public CartesianPoint[] getVertices()
public void setBounds(Bounds bounds)
bounds
- the new bounds of this editable.public void setLocation(DirectedPoint location)
location
- the new location of this editablepublic void setVertices(CartesianPoint[] vertices)
vertices
- the new vertices.public Bounds getBounds()
LocatableInterface
getBounds
in interface LocatableInterface
LocatableInterface.getBounds()
public DirectedPoint getLocation()
LocatableInterface
getLocation
in interface LocatableInterface
LocatableInterface.getLocation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |