Class AbstractLineAnimation<L extends AbstractLineAnimation.LaneBasedObjectData,T extends RenderableTextSource<L,T>>
java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.animation.OtsRenderable<L>
org.opentrafficsim.animation.OtsRenderableLabeled<L,T>
org.opentrafficsim.animation.road.AbstractLineAnimation<L,T>
- Type Parameters:
L- source typeT- text renderable type
- All Implemented Interfaces:
Renderable2dInterface<L>
- Direct Known Subclasses:
BusStopAnimation,ConflictAnimation,LaneDetectorAnimation,TrafficLightAnimation
public abstract class AbstractLineAnimation<L extends AbstractLineAnimation.LaneBasedObjectData,T extends RenderableTextSource<L,T>>
extends OtsRenderableLabeled<L,T>
Abstract class for objects that draw a line perpendicular on the lane.
Copyright (c) 2013-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceObject data to draw a lane based object.Nested classes/interfaces inherited from class org.opentrafficsim.animation.OtsRenderableLabeled
OtsRenderableLabeled.NoText<L extends OtsShape> -
Field Summary
Fields inherited from interface nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface
ANIMATION_OBJECT_COUNTER, FLIP_FLAG, ROTATE_FLAG, SCALE_FLAG, SCALE_OBJECT_FLAG, SCALE_Y_FLAG, TRANSLATE_FLAG -
Constructor Summary
ConstructorsConstructorDescriptionAbstractLineAnimation(L source, nl.tudelft.simulation.naming.context.Contextualized contextualized, org.djunits.value.vdouble.scalar.Length width) Construct the line animation.AbstractLineAnimation(L source, nl.tudelft.simulation.naming.context.Contextualized contextualized, org.djunits.value.vdouble.scalar.Length width, String prefix) Construct the line animation. -
Method Summary
Methods inherited from class org.opentrafficsim.animation.OtsRenderableLabeled
createText, destroy, setDynamicMethods inherited from class org.opentrafficsim.animation.OtsRenderable
contains, contains, isDynamic, resetRendering, setRenderingMethods 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, setTranslate, toString
-
Constructor Details
-
AbstractLineAnimation
public AbstractLineAnimation(L source, nl.tudelft.simulation.naming.context.Contextualized contextualized, org.djunits.value.vdouble.scalar.Length width) Construct the line animation. This constructor uses an empty prefix for the label.- Parameters:
source- sourcecontextualized- context providerwidth- line width
-
AbstractLineAnimation
public AbstractLineAnimation(L source, nl.tudelft.simulation.naming.context.Contextualized contextualized, org.djunits.value.vdouble.scalar.Length width, String prefix) Construct the line animation.- Parameters:
source- sourcecontextualized- context providerwidth- line widthprefix- label prefix
-
-
Method Details
-
paint
- Specified by:
paintin classRenderable2d<L extends AbstractLineAnimation.LaneBasedObjectData>
-