Package org.opentrafficsim.draw.network
Class NodeAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.base.geometry.OtsRenderable<NodeAnimation.NodeData>
org.opentrafficsim.draw.network.NodeAnimation
- All Implemented Interfaces:
Serializable,nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<NodeAnimation.NodeData>
public class NodeAnimation
extends org.opentrafficsim.base.geometry.OtsRenderable<NodeAnimation.NodeData>
Draws NodeData.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Wouter Schakel
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceNodeData provides the information required to draw a node.classText animation for the Node. -
Field Summary
Fields inherited from class org.opentrafficsim.base.geometry.OtsRenderable
RENDERING_KEYS, RENDERING_VALUES -
Constructor Summary
ConstructorsConstructorDescriptionNodeAnimation(NodeAnimation.NodeData node, nl.tudelft.simulation.naming.context.Contextualized contextualized) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(nl.tudelft.simulation.naming.context.Contextualized contextProvider) final voidpaint(Graphics2D graphics, ImageObserver observer) final StringtoString()Methods inherited from class org.opentrafficsim.base.geometry.OtsRenderable
contains, resetRendering, setRendering, toBoundsTransformMethods inherited from class nl.tudelft.simulation.dsol.animation.d2.Renderable2d
bind2Context, getId, getSource, isFlip, isRotate, isScale, isScaleObject, isScaleY, isTranslate, paint, paintComponent, setFlip, setRotate, setScale, setScaleObject, setScaleY, setTranslate
-
Constructor Details
-
NodeAnimation
public NodeAnimation(NodeAnimation.NodeData node, nl.tudelft.simulation.naming.context.Contextualized contextualized) throws NamingException, RemoteException - Parameters:
node- NodeData; node data.contextualized- Contextualized; context provider- Throws:
NamingException- when animation context cannot be found.RemoteException- on communication failure
-
-
Method Details
-
paint
- Specified by:
paintin classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<NodeAnimation.NodeData>
-
destroy
public void destroy(nl.tudelft.simulation.naming.context.Contextualized contextProvider) - Specified by:
destroyin interfacenl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<NodeAnimation.NodeData>- Overrides:
destroyin classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<NodeAnimation.NodeData>
-
toString
- Overrides:
toStringin classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<NodeAnimation.NodeData>
-