Class StripeAnimation

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

public class StripeAnimation extends nl.tudelft.simulation.dsol.animation.D2.Renderable2D<Stripe> implements nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface<Stripe>, Serializable
Draw road stripes.

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
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    StripeAnimation(Stripe source, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator)
     
  • Method Summary

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

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface

    contains, destroy, getId, getSource, paintComponent
  • Constructor Details

    • StripeAnimation

      public StripeAnimation(Stripe source, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator) throws NamingException, RemoteException, org.opentrafficsim.core.geometry.OtsGeometryException
      Parameters:
      source - Stripe; s
      simulator - OtsSimulatorInterface; s
      Throws:
      NamingException - ne
      RemoteException - on communication failure
      org.opentrafficsim.core.geometry.OtsGeometryException - when something is very wrong with the geometry of the line
  • Method Details

    • paint

      public final void paint(Graphics2D graphics, ImageObserver observer)
      Specified by:
      paint in class nl.tudelft.simulation.dsol.animation.D2.Renderable2D<Stripe>
    • toString

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