public class LinkAnimation extends nl.tudelft.simulation.dsol.animation.D2.Renderable2D<Link> implements ClonableRenderable2DInterface<Link>, Serializable
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2018-07-26 15:29:53 +0200 (Thu, 26 Jul 2018) $, @version $Revision: 3841 $, by $Author: pknoppers $,
initial version Sep 13, 2014
| Modifier and Type | Class and Description |
|---|---|
class |
LinkAnimation.Text
Text animation for the Link.
|
| Constructor and Description |
|---|
LinkAnimation(Link link,
OTSSimulatorInterface simulator,
float width) |
| Modifier and Type | Method and Description |
|---|---|
ClonableRenderable2DInterface<Link> |
clone(Link newSource,
OTSSimulatorInterface newSimulator)
Clone the animation object and register it for the new source on the new simulation.
|
void |
destroy() |
void |
paint(Graphics2D graphics,
ImageObserver observer) |
String |
toString() |
bind2Context, contains, equals, getSource, hashCode, isFlip, isRotate, isScale, isTranslate, paint, setFlip, setRotate, setScale, setTranslatepublic LinkAnimation(Link link, OTSSimulatorInterface simulator, float width) throws NamingException, RemoteException
link - Linksimulator - simulatorwidth - widthNamingException - for problems with registering in contextRemoteException - on communication failurepublic final void paint(Graphics2D graphics, ImageObserver observer) throws RemoteException
paint in class nl.tudelft.simulation.dsol.animation.D2.Renderable2D<Link>RemoteExceptionpublic final void destroy()
throws NamingException
destroy in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface<Link>destroy in class nl.tudelft.simulation.dsol.animation.D2.Renderable2D<Link>NamingExceptionpublic ClonableRenderable2DInterface<Link> clone(Link newSource, OTSSimulatorInterface newSimulator) throws NamingException, RemoteException
clone in interface ClonableRenderable2DInterface<Link>newSource - the sourcenewSimulator - the simulatorNamingException - when animation context cannot be created or retrievedRemoteException - - when remote context cannot be foundCopyright © 2014–2018 Delft University of Technology. All rights reserved.