Package org.opentrafficsim.draw.road
Class TrafficLightDetectorAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.draw.OtsRenderable<TrafficLightDetectorAnimation.TrafficLightDetectorData>
org.opentrafficsim.draw.road.TrafficLightDetectorAnimation
- All Implemented Interfaces:
Serializable,nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<TrafficLightDetectorAnimation.TrafficLightDetectorData>
public class TrafficLightDetectorAnimation
extends OtsRenderable<TrafficLightDetectorAnimation.TrafficLightDetectorData>
Traffic light detector animation.
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
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassText animation for the Detector.static interfaceTrafficLightDetectorData provides the information required to draw a traffic light detector. -
Constructor Summary
ConstructorsConstructorDescriptionTrafficLightDetectorAnimation(TrafficLightDetectorAnimation.TrafficLightDetectorData detector, nl.tudelft.simulation.naming.context.Contextualized contextualized) Construct a TrafficLightDetectorAnimation. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(nl.tudelft.simulation.naming.context.Contextualized contextProvider) final voidpaint(Graphics2D graphics, ImageObserver observer) final StringtoString()Methods 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
-
TrafficLightDetectorAnimation
public TrafficLightDetectorAnimation(TrafficLightDetectorAnimation.TrafficLightDetectorData detector, nl.tudelft.simulation.naming.context.Contextualized contextualized) throws NamingException, RemoteException Construct a TrafficLightDetectorAnimation.- Parameters:
detector- the traffic light detector that will be animatedcontextualized- context provider- Throws:
NamingException- in case of registration failure of the animationRemoteException- in case of remote registration failure of the animation
-
-
Method Details
-
paint
- Specified by:
paintin classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<TrafficLightDetectorAnimation.TrafficLightDetectorData>
-
destroy
public void destroy(nl.tudelft.simulation.naming.context.Contextualized contextProvider) - Specified by:
destroyin interfacenl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<TrafficLightDetectorAnimation.TrafficLightDetectorData>- Overrides:
destroyin classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<TrafficLightDetectorAnimation.TrafficLightDetectorData>
-
toString
- Overrides:
toStringin classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<TrafficLightDetectorAnimation.TrafficLightDetectorData>
-