Package org.opentrafficsim.draw.road
Class AbstractLineAnimation<T extends AbstractLineAnimation.LaneBasedObjectData>
java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.draw.OtsRenderable<T>
org.opentrafficsim.draw.road.AbstractLineAnimation<T>
- Type Parameters:
T
- the LaneBasedObject class of the source that indicates the location of the Renderable on the screen
- All Implemented Interfaces:
Serializable
,nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<T>
- Direct Known Subclasses:
BusStopAnimation
,ConflictAnimation
,LaneDetectorAnimation
,TrafficLightAnimation
public abstract class AbstractLineAnimation<T extends AbstractLineAnimation.LaneBasedObjectData>
extends OtsRenderable<T>
Abstract class for objects that draw a line perpendicular on the lane.
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, Peter Knoppers, Wouter Schakel
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
LaneBasedObjectData provides the information required to draw a lane based object. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractLineAnimation
(T source, nl.tudelft.simulation.naming.context.Contextualized contextualized, org.djunits.value.vdouble.scalar.Length width) Construct the line animation. -
Method Summary
Methods inherited from class org.opentrafficsim.draw.OtsRenderable
contains, resetRendering, setRendering
Methods inherited from class nl.tudelft.simulation.dsol.animation.d2.Renderable2d
bind2Context, destroy, getId, getSource, isFlip, isRotate, isScale, isScaleObject, isScaleY, isTranslate, paint, paintComponent, setFlip, setRotate, setScale, setScaleObject, setScaleY, setTranslate, toString
-
Constructor Details
-
AbstractLineAnimation
public AbstractLineAnimation(T source, nl.tudelft.simulation.naming.context.Contextualized contextualized, org.djunits.value.vdouble.scalar.Length width) throws NamingException, RemoteException Construct the line animation.- Parameters:
source
- sourcecontextualized
- context providerwidth
- line width- Throws:
NamingException
- in case of registration failure of the animationRemoteException
- in case of remote registration failure of the animation
-
-
Method Details
-
paint
- Specified by:
paint
in classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<T extends AbstractLineAnimation.LaneBasedObjectData>
-