Package org.opentrafficsim.draw.network
Class LinkAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.D2.Renderable2D<org.opentrafficsim.core.network.Link>
org.opentrafficsim.draw.network.LinkAnimation
- All Implemented Interfaces:
Serializable,nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface<org.opentrafficsim.core.network.Link>
public class LinkAnimation
extends nl.tudelft.simulation.dsol.animation.D2.Renderable2D<org.opentrafficsim.core.network.Link>
implements nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface<org.opentrafficsim.core.network.Link>, Serializable
Draws a Link.
Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLinkAnimation(org.opentrafficsim.core.network.Link link, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator, float width) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(Contextualized contextProvider) final voidpaint(Graphics2D graphics, ImageObserver observer) final StringtoString()Methods inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2D
bind2Context, contains, getId, getSource, isFlip, isRotate, isScale, isScaleObject, isScaleY, isTranslate, paint, paintComponent, setFlip, setRotate, setScale, setScaleObject, setScaleY, setTranslateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
contains, getId, getSource, paintComponent
-
Constructor Details
-
LinkAnimation
public LinkAnimation(org.opentrafficsim.core.network.Link link, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator, float width) throws NamingException, RemoteException - Parameters:
link- Link; Linksimulator- OtsSimulatorInterface; simulatorwidth- float; width- Throws:
NamingException- for problems with registering in contextRemoteException- on communication failure
-
-
Method Details
-
paint
- Specified by:
paintin classnl.tudelft.simulation.dsol.animation.D2.Renderable2D<org.opentrafficsim.core.network.Link>
-
destroy
- Specified by:
destroyin interfacenl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface<org.opentrafficsim.core.network.Link>- Overrides:
destroyin classnl.tudelft.simulation.dsol.animation.D2.Renderable2D<org.opentrafficsim.core.network.Link>
-
toString
- Overrides:
toStringin classnl.tudelft.simulation.dsol.animation.D2.Renderable2D<org.opentrafficsim.core.network.Link>
-