public class BusStopAnimation extends AbstractLineAnimation<BusStop> implements 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.
Modifier and Type | Class and Description |
---|---|
class |
BusStopAnimation.Text
Text animation for the BusStop.
|
Constructor and Description |
---|
BusStopAnimation(BusStop source,
org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
paint(Graphics2D graphics,
ImageObserver observer) |
String |
toString() |
getHalfLength
public BusStopAnimation(BusStop source, org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator) throws NamingException, RemoteException
source
- sourcesimulator
- simulatorNamingException
- when animation context cannot be created or retrievedRemoteException
- when remote context cannot be foundpublic void paint(Graphics2D graphics, ImageObserver observer) throws RemoteException
paint
in class AbstractLineAnimation<BusStop>
RemoteException
public final void destroy() throws NamingException
destroy
in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface<BusStop>
destroy
in class nl.tudelft.simulation.dsol.animation.D2.Renderable2D<BusStop>
NamingException
Copyright © 2014–2017 Delft University of Technology. All rights reserved.