Package org.opentrafficsim.draw.road
Class GtuGeneratorPositionAnimation.Queue
java.lang.Object
org.opentrafficsim.draw.core.TextAnimation
org.opentrafficsim.draw.road.GtuGeneratorPositionAnimation.Queue
- All Implemented Interfaces:
Serializable
,Locatable
- Enclosing class:
- GtuGeneratorPositionAnimation
Paints a queue counter with a GtuGeneratorPosition.
Copyright (c) 2022-2023 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 classes/interfaces inherited from class org.opentrafficsim.draw.core.TextAnimation
TextAnimation.ContrastToBackground, TextAnimation.ScaleDependentRendering
-
Field Summary
Fields inherited from class org.opentrafficsim.draw.core.TextAnimation
RENDERALWAYS, RENDERWHEN1, RENDERWHEN10, RENDERWHEN100
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opentrafficsim.core.geometry.DirectedPoint
void
paint
(Graphics2D graphics, ImageObserver observer) paint() method so it can be overridden or extended.Methods inherited from class org.opentrafficsim.draw.core.TextAnimation
destroy, getBounds, getColor, getDx, getDy, getFont, getFontSize, getScaleDependentRendering, getSource, getText, getTextAlignment, isFlip, isRotate, isScale, isTranslate, setColor, setFlip, setRotate, setScale, setText, setTranslate, setXY
-
Constructor Details
-
Queue
public Queue(Locatable source, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator) throws RemoteException, NamingException Constructor.- Parameters:
source
- Locatable; source.simulator
- OtsSimulatorInterface; simulator.- Throws:
NamingException
- when animation context cannot be created or retrievedRemoteException
- when remote context cannot be found
-
-
Method Details
-
getLocation
public org.opentrafficsim.core.geometry.DirectedPoint getLocation()- Specified by:
getLocation
in interfaceLocatable
- Overrides:
getLocation
in classTextAnimation
-
paint
paint() method so it can be overridden or extended.- Overrides:
paint
in classTextAnimation
- Parameters:
graphics
- Graphics2D; the graphics objectobserver
- ImageObserver; the observer
-