Package org.opentrafficsim.draw.road
Class StripeAnimation
- java.lang.Object
 - 
- nl.tudelft.simulation.dsol.animation.D2.Renderable2D<Stripe>
 - 
- org.opentrafficsim.draw.road.StripeAnimation
 
 
 
- 
- All Implemented Interfaces:
 Serializable,Renderable2DInterface<Stripe>,ClonableRenderable2DInterface<Stripe>
public class StripeAnimation extends Renderable2D<Stripe> implements ClonableRenderable2DInterface<Stripe>, Serializable
Draw road stripes.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.$LastChangedDate: 2015-09-14 01:33:02 +0200 (Mon, 14 Sep 2015) $, @version $Revision: 1401 $, by $Author: averbraeck $, initial version Oct 17, 2014
- Author:
 - Alexander Verbraeck
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStripeAnimation.TYPEStripe type.- 
Nested classes/interfaces inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
Renderable2DInterface.Util 
 - 
 
- 
Constructor Summary
Constructors Constructor Description StripeAnimation(Stripe source, SimulatorInterface.TimeDoubleUnit simulator, StripeAnimation.TYPE type) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClonableRenderable2DInterface<Stripe>clone(Stripe newSource, SimulatorInterface.TimeDoubleUnit newSimulator)Clone the animation object and register it for the new source on the new simulation.voidpaint(Graphics2D graphics, ImageObserver observer)StringtoString()- 
Methods inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2D
bind2Context, contains, destroy, equals, getSource, hashCode, isFlip, isRotate, isScale, isTranslate, paint, setFlip, setRotate, setScale, setTranslate 
- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
contains, destroy, getSource, paint 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
StripeAnimation
public StripeAnimation(Stripe source, SimulatorInterface.TimeDoubleUnit simulator, StripeAnimation.TYPE type) throws NamingException, RemoteException, OTSGeometryException
- Parameters:
 source- Stripe; ssimulator- SimulatorInterface.TimeDoubleUnit; stype- TYPE; t- Throws:
 NamingException- neRemoteException- on communication failureOTSGeometryException- when something is very wrong with the geometry of the line
 
 - 
 
- 
Method Detail
- 
paint
public final void paint(Graphics2D graphics, ImageObserver observer)
- Specified by:
 paintin classRenderable2D<Stripe>
 
- 
clone
public ClonableRenderable2DInterface<Stripe> clone(Stripe newSource, SimulatorInterface.TimeDoubleUnit newSimulator) throws NamingException, RemoteException
Clone the animation object and register it for the new source on the new simulation.- Specified by:
 clonein interfaceClonableRenderable2DInterface<Stripe>- Parameters:
 newSource- T; the sourcenewSimulator- SimulatorInterface.TimeDoubleUnit; the simulator- Returns:
 - the generated clone
 - Throws:
 NamingException- when animation context cannot be created or retrievedRemoteException- - when remote context cannot be found
 
- 
toString
public final String toString()
- Overrides:
 toStringin classRenderable2D<Stripe>
 
 - 
 
 -