|
|||||||||||
| 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
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 2003 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Field Summary | |
protected javax.media.j3d.Bounds |
bounds
the location of the bounds |
protected nl.tudelft.simulation.language.d3.DirectedPoint |
location
the location of the editable |
static nl.tudelft.simulation.event.EventType |
LOCATION_CHANGED_EVENT
LOCATION_CHANGED_EVENT the LOCATION_CHANGED_EVENT |
protected SimulatorInterface |
simulator
the simulator to use |
protected nl.tudelft.simulation.language.d3.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,
nl.tudelft.simulation.language.d3.DirectedPoint location)
constructs a new Editable |
|
| Method Summary | |
javax.media.j3d.Bounds |
getBounds()
returns the bounds of the locatable object. |
nl.tudelft.simulation.language.d3.DirectedPoint |
getLocation()
returns the location of an object |
nl.tudelft.simulation.language.d3.CartesianPoint[] |
getVertices()
|
static java.util.Map |
listEditables()
returns the editables as a list of name=class |
void |
setBounds(javax.media.j3d.Bounds bounds)
|
void |
setLocation(nl.tudelft.simulation.language.d3.DirectedPoint location)
|
void |
setVertices(nl.tudelft.simulation.language.d3.CartesianPoint[] vertices)
|
| 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 nl.tudelft.simulation.event.EventType LOCATION_CHANGED_EVENT
protected SimulatorInterface simulator
protected nl.tudelft.simulation.language.d3.DirectedPoint location
protected javax.media.j3d.Bounds bounds
protected nl.tudelft.simulation.language.d3.CartesianPoint[] vertices
| Constructor Detail |
public Editable(SimulatorInterface simulator,
nl.tudelft.simulation.language.d3.DirectedPoint location)
simulator - the simulator to schedule onlocation - the initial location| Method Detail |
public static java.util.Map listEditables()
public nl.tudelft.simulation.language.d3.CartesianPoint[] getVertices()
public void setBounds(javax.media.j3d.Bounds bounds)
bounds - public void setLocation(nl.tudelft.simulation.language.d3.DirectedPoint location)
location - public void setVertices(nl.tudelft.simulation.language.d3.CartesianPoint[] vertices)
vertices - public javax.media.j3d.Bounds getBounds()
LocatableInterface
getBounds in interface LocatableInterfaceLocatableInterface.getBounds()public nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
LocatableInterface
getLocation in interface LocatableInterfaceLocatableInterface.getLocation()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||