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

public class GtuGeneratorPositionAnimation.Queue extends TextAnimation
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:
  • 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 retrieved
      RemoteException - when remote context cannot be found
  • Method Details

    • getLocation

      public org.opentrafficsim.core.geometry.DirectedPoint getLocation()
      Specified by:
      getLocation in interface Locatable
      Overrides:
      getLocation in class TextAnimation
    • paint

      public void paint(Graphics2D graphics, ImageObserver observer)
      paint() method so it can be overridden or extended.
      Overrides:
      paint in class TextAnimation
      Parameters:
      graphics - Graphics2D; the graphics object
      observer - ImageObserver; the observer