Package org.opentrafficsim.draw.road
Class CrossSectionElementAnimation<L extends CrossSectionElementAnimation.CrossSectionElementData>
java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.base.geometry.OtsRenderable<L>
org.opentrafficsim.draw.road.CrossSectionElementAnimation<L>
- Type Parameters:
L
- cross section element data type
- All Implemented Interfaces:
Serializable
,nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<L>
- Direct Known Subclasses:
LaneAnimation
public class CrossSectionElementAnimation<L extends CrossSectionElementAnimation.CrossSectionElementData>
extends org.opentrafficsim.base.geometry.OtsRenderable<L>
Draws cross section elements (those that are not defined more specifically).
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 interface
CrossSectionElementData provides the information required to draw a cross section element.static interface
ShoulderData provides the information required to draw a shoulder. -
Field Summary
Fields inherited from class org.opentrafficsim.base.geometry.OtsRenderable
RENDERING_KEYS, RENDERING_VALUES
-
Constructor Summary
ConstructorDescriptionCrossSectionElementAnimation
(L source, nl.tudelft.simulation.naming.context.Contextualized contextualized, Color color) -
Method Summary
Modifier and TypeMethodDescriptionvoid
paint
(Graphics2D graphics, ImageObserver observer) toString()
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, destroy, getId, getSource, isFlip, isRotate, isScale, isScaleObject, isScaleY, isTranslate, paint, paintComponent, setFlip, setRotate, setScale, setScaleObject, setScaleY, setTranslate
-
Constructor Details
-
CrossSectionElementAnimation
public CrossSectionElementAnimation(L source, nl.tudelft.simulation.naming.context.Contextualized contextualized, Color color) throws NamingException, RemoteException - Parameters:
source
- L; cross section elementcontextualized
- Contextualized; context providercolor
- Color; the color to draw the shoulder with- Throws:
NamingException
- neRemoteException
- on communication failure
-
-
Method Details
-
paint
- Specified by:
paint
in classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<L extends CrossSectionElementAnimation.CrossSectionElementData>
-
toString
- Overrides:
toString
in classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<L extends CrossSectionElementAnimation.CrossSectionElementData>
-