Package org.opentrafficsim.draw.road
Class BusStopAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.draw.OtsRenderable<T>
org.opentrafficsim.draw.road.AbstractLineAnimation<BusStopAnimation.BusStopData>
org.opentrafficsim.draw.road.BusStopAnimation
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<BusStopAnimation.BusStopData>
Draw BusStopData.
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBusStopData provides the information required to draw a bus stop.static classText animation for the Detector.Nested classes/interfaces inherited from class org.opentrafficsim.draw.road.AbstractLineAnimation
AbstractLineAnimation.LaneBasedObjectData -
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
ConstructorsConstructorDescriptionBusStopAnimation(BusStopAnimation.BusStopData laneDetector, nl.tudelft.simulation.naming.context.Contextualized contextualized) Construct a DetectorAnimation. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(nl.tudelft.simulation.naming.context.Contextualized contextProvider) final BusStopAnimation.TextgetText()Returns text object.final voidpaint(Graphics2D graphics, ImageObserver observer) final StringtoString()Methods inherited from class org.opentrafficsim.draw.OtsRenderable
contains, contains, 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
-
Constructor Details
-
BusStopAnimation
public BusStopAnimation(BusStopAnimation.BusStopData laneDetector, nl.tudelft.simulation.naming.context.Contextualized contextualized) throws NamingException, RemoteException Construct a DetectorAnimation.- Parameters:
laneDetector- the lane detector to drawcontextualized- context provider- Throws:
NamingException- in case of registration failure of the animationRemoteException- in case of remote registration failure of the animation
-
-
Method Details
-
getText
Returns text object.- Returns:
- text.
-
paint
- Overrides:
paintin classAbstractLineAnimation<BusStopAnimation.BusStopData>
-
destroy
public void destroy(nl.tudelft.simulation.naming.context.Contextualized contextProvider) - Specified by:
destroyin interfacenl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<BusStopAnimation.BusStopData>- Overrides:
destroyin classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<BusStopAnimation.BusStopData>
-
toString
- Overrides:
toStringin classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<BusStopAnimation.BusStopData>
-