Package org.opentrafficsim.draw.road
Class GtuGeneratorPositionAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.base.geometry.OtsRenderable<GtuGeneratorPositionAnimation.GtuGeneratorPositionData>
org.opentrafficsim.draw.road.GtuGeneratorPositionAnimation
- All Implemented Interfaces:
Serializable
,nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<GtuGeneratorPositionAnimation.GtuGeneratorPositionData>
public class GtuGeneratorPositionAnimation
extends org.opentrafficsim.base.geometry.OtsRenderable<GtuGeneratorPositionAnimation.GtuGeneratorPositionData>
Animates a GtuGeneratorPosition.
Copyright (c) 2022-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
Modifier and TypeClassDescriptionstatic interface
GtuGeneratorPositionData provides the information required to draw a GTU generator position.class
Paints a queue counter with a GtuGeneratorPosition. -
Field Summary
Fields inherited from class org.opentrafficsim.base.geometry.OtsRenderable
RENDERING_KEYS, RENDERING_VALUES
-
Constructor Summary
ConstructorDescriptionGtuGeneratorPositionAnimation
(GtuGeneratorPositionAnimation.GtuGeneratorPositionData source, nl.tudelft.simulation.naming.context.Contextualized contextProvider) Constructor. -
Method Summary
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, toString
-
Constructor Details
-
GtuGeneratorPositionAnimation
public GtuGeneratorPositionAnimation(GtuGeneratorPositionAnimation.GtuGeneratorPositionData source, nl.tudelft.simulation.naming.context.Contextualized contextProvider) throws RemoteException, NamingException Constructor.- Parameters:
source
- GtuGeneratorPositionData; source.contextProvider
- OtsSimulatorInterface; simulator.- Throws:
NamingException
- when animation context cannot be created or retrievedRemoteException
- when remote context cannot be found
-
-
Method Details
-
paint
- Specified by:
paint
in classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<GtuGeneratorPositionAnimation.GtuGeneratorPositionData>
-