Package org.opentrafficsim.draw.road
Class LaneAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.draw.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
Nested ClassesModifier and TypeClassDescriptionstatic classDraw center line of a lane.static classAnimation for center line of a lane.static interfaceLaneData provides the information required to draw a lane.classText animation for the Node.Nested classes/interfaces inherited from class org.opentrafficsim.draw.road.CrossSectionElementAnimation
CrossSectionElementAnimation.CrossSectionElementData, CrossSectionElementAnimation.ShoulderData -
Constructor Summary
ConstructorsConstructorDescriptionLaneAnimation(LaneAnimation.LaneData lane, nl.tudelft.simulation.naming.context.Contextualized contextualized, Color color) Animate a Lane. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(nl.tudelft.simulation.naming.context.Contextualized contextProvider) final LaneAnimation.TextgetText()final StringtoString()Methods inherited from class org.opentrafficsim.draw.road.CrossSectionElementAnimation
paintMethods inherited from class org.opentrafficsim.draw.OtsRenderable
contains, resetRendering, setRenderingMethods 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) Animate a Lane.- Parameters:
lane- the lanecontextualized- context providercolor- Color of the lane.
-
-
Method Details
-
getText
- Returns:
- text.
-
destroy
public void destroy(nl.tudelft.simulation.naming.context.Contextualized contextProvider) - Specified by:
destroyin interfacenl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<LaneAnimation.LaneData>- Overrides:
destroyin classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<LaneAnimation.LaneData>
-
toString
- Overrides:
toStringin classCrossSectionElementAnimation<LaneAnimation.LaneData>
-