public class NodeAnimation extends nl.tudelft.simulation.dsol.animation.D2.Renderable2D implements ClonableRenderable2DInterface, Serializable
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2018-10-11 22:54:04 +0200 (Thu, 11 Oct 2018) $, @version $Revision: 4696 $, by $Author: averbraeck $,
initial version Oct 17, 2014
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeAnimation.ElevatedNode
Class for elevating the node for animation purposes.
|
class |
NodeAnimation.Text
Text animation for the Node.
|
| Modifier and Type | Field and Description |
|---|---|
static double |
ZOFFSET
Ensure that node animations are slightly above lane surface.
|
| Constructor and Description |
|---|
NodeAnimation(Node node,
nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit simulator) |
| Modifier and Type | Method and Description |
|---|---|
ClonableRenderable2DInterface |
clone(nl.tudelft.simulation.dsol.animation.Locatable newSource,
nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit newSimulator)
Clone the animation object and register it for the new source on the new simulation.
|
void |
destroy() |
void |
paint(Graphics2D graphics,
ImageObserver observer) |
String |
toString() |
bind2Context, contains, equals, getSource, hashCode, isFlip, isRotate, isScale, isTranslate, paint, setFlip, setRotate, setScale, setTranslatepublic static final double ZOFFSET
public NodeAnimation(Node node, nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit simulator) throws NamingException, RemoteException
node - Node; nsimulator - SimulatorInterface.TimeDoubleUnit; sNamingException - when animation context cannot be found.RemoteException - on communication failurepublic final void paint(Graphics2D graphics, ImageObserver observer)
paint in class nl.tudelft.simulation.dsol.animation.D2.Renderable2Dpublic final void destroy()
throws NamingException
destroy in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterfacedestroy in class nl.tudelft.simulation.dsol.animation.D2.Renderable2DNamingExceptionpublic ClonableRenderable2DInterface clone(nl.tudelft.simulation.dsol.animation.Locatable newSource, nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit newSimulator) throws NamingException, RemoteException
clone in interface ClonableRenderable2DInterfacenewSource - T; the sourcenewSimulator - SimulatorInterface.TimeDoubleUnit; the simulatorNamingException - when animation context cannot be created or retrievedRemoteException - - when remote context cannot be foundpublic final String toString()
toString in class nl.tudelft.simulation.dsol.animation.D2.Renderable2DCopyright © 2014–2019 Delft University of Technology. All rights reserved.