Package org.opentrafficsim.draw.road
Class LaneAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.base.geometry.OtsRenderable<L>
org.opentrafficsim.draw.road.CrossSectionElementAnimation<LaneAnimation.LaneData>
org.opentrafficsim.draw.road.LaneAnimation
- All Implemented Interfaces:
Serializable
,nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<LaneAnimation.LaneData>
Draws LaneData.
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
Modifier and TypeClassDescriptionstatic class
Draw center line of a lane.static class
Animation for center line of a lane.static interface
LaneData provides the information required to draw a lane.class
Text animation for the Node.Nested classes/interfaces inherited from class org.opentrafficsim.draw.road.CrossSectionElementAnimation
CrossSectionElementAnimation.CrossSectionElementData, CrossSectionElementAnimation.ShoulderData
-
Field Summary
Fields inherited from class org.opentrafficsim.base.geometry.OtsRenderable
RENDERING_KEYS, RENDERING_VALUES
-
Constructor Summary
ConstructorDescriptionLaneAnimation
(LaneAnimation.LaneData lane, nl.tudelft.simulation.naming.context.Contextualized contextualized, Color color) Animate a Lane. -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy
(nl.tudelft.simulation.naming.context.Contextualized contextProvider) final LaneAnimation.Text
getText()
final String
toString()
Methods inherited from class org.opentrafficsim.draw.road.CrossSectionElementAnimation
paint
Methods inherited from class org.opentrafficsim.base.geometry.OtsRenderable
contains, resetRendering, setRendering, toBoundsTransform
Methods 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
-
LaneAnimation
public LaneAnimation(LaneAnimation.LaneData lane, nl.tudelft.simulation.naming.context.Contextualized contextualized, Color color) throws NamingException, RemoteException Animate a Lane.- Parameters:
lane
- LaneData; the lanecontextualized
- Contextualized; context providercolor
- Color; Color of the lane.- Throws:
NamingException
- in case of registration failure of the animationRemoteException
- on communication failure
-
-
Method Details
-
getText
- Returns:
- text.
-
destroy
public void destroy(nl.tudelft.simulation.naming.context.Contextualized contextProvider) - Specified by:
destroy
in interfacenl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<LaneAnimation.LaneData>
- Overrides:
destroy
in classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<LaneAnimation.LaneData>
-
toString
- Overrides:
toString
in classCrossSectionElementAnimation<LaneAnimation.LaneData>
-