Class BusStopAnimation

java.lang.Object
nl.tudelft.simulation.dsol.animation.D2.Renderable2D<T>
org.opentrafficsim.draw.road.AbstractLineAnimation<BusStop>
org.opentrafficsim.draw.road.BusStopAnimation
All Implemented Interfaces:
Serializable, nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface<BusStop>

public class BusStopAnimation extends AbstractLineAnimation<BusStop> implements Serializable

Copyright (c) 2013-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

    • BusStopAnimation

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

    • paint

      public final void paint(Graphics2D graphics, ImageObserver observer)
      Overrides:
      paint in class AbstractLineAnimation<BusStop>
    • destroy

      public void destroy(Contextualized contextProvider)
      Specified by:
      destroy in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface<BusStop>
      Overrides:
      destroy in class nl.tudelft.simulation.dsol.animation.D2.Renderable2D<BusStop>
    • toString

      public final String toString()
      Overrides:
      toString in class nl.tudelft.simulation.dsol.animation.D2.Renderable2D<BusStop>