T - the LaneBasedObject class of the source that indicates the location of the Renderable on the screenpublic abstract class AbstractLineAnimation<T extends LaneBasedObject> extends Renderable2D<T>
 Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
Renderable2DInterface.Util| Constructor and Description | 
|---|
| AbstractLineAnimation(T source,
                     SimulatorInterface.TimeDoubleUnit simulator,
                     double length,
                     Length width)Construct the line animation. | 
| Modifier and Type | Method and Description | 
|---|---|
| double | getHalfLength()Returns half the length. | 
| void | paint(Graphics2D graphics,
     ImageObserver observer) | 
bind2Context, contains, destroy, equals, getSource, hashCode, isFlip, isRotate, isScale, isTranslate, paint, setFlip, setRotate, setScale, setTranslate, toStringpublic AbstractLineAnimation(T source, SimulatorInterface.TimeDoubleUnit simulator, double length, Length width) throws NamingException, RemoteException
source - T; sourcesimulator - SimulatorInterface.TimeDoubleUnit; the simulator to schedule onlength - double; length of the line, as fraction of the lane widthwidth - Length; line widthNamingException - in case of registration failure of the animationRemoteException - in case of remote registration failure of the animationpublic final double getHalfLength()
public void paint(Graphics2D graphics, ImageObserver observer) throws RemoteException
paint in class Renderable2D<T extends LaneBasedObject>RemoteExceptionCopyright © 2014–2019 Delft University of Technology. All rights reserved.