Class GtuGeneratorPositionAnimation

java.lang.Object
nl.tudelft.simulation.dsol.animation.D2.Renderable2D<org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition>
org.opentrafficsim.draw.road.GtuGeneratorPositionAnimation
All Implemented Interfaces:
Serializable, nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface<org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition>

public class GtuGeneratorPositionAnimation extends nl.tudelft.simulation.dsol.animation.D2.Renderable2D<org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition>
Animates 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
    Modifier and Type
    Class
    Description
    class 
    Paints a queue counter with a GtuGeneratorPosition.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GtuGeneratorPositionAnimation(org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition source, org.opentrafficsim.core.dsol.OtsSimulatorInterface contextProvider)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    paint(Graphics2D graphics, ImageObserver observer)

    Methods inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2D

    bind2Context, contains, destroy, getId, getSource, isFlip, isRotate, isScale, isScaleObject, isScaleY, isTranslate, paint, paintComponent, setFlip, setRotate, setScale, setScaleObject, setScaleY, setTranslate, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GtuGeneratorPositionAnimation

      public GtuGeneratorPositionAnimation(org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition source, org.opentrafficsim.core.dsol.OtsSimulatorInterface contextProvider) throws RemoteException, NamingException
      Constructor.
      Parameters:
      source - GtuGeneratorPosition; source.
      contextProvider - OtsSimulatorInterface; simulator.
      Throws:
      NamingException - when animation context cannot be created or retrieved
      RemoteException - when remote context cannot be found
  • Method Details

    • paint

      public void paint(Graphics2D graphics, ImageObserver observer)
      Specified by:
      paint in class nl.tudelft.simulation.dsol.animation.D2.Renderable2D<org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition>