T - the LaneBasedObject class of the source that indicates the location of the Renderable on the screenpublic abstract class AbstractLineAnimation<T extends LaneBasedObject>
extends nl.tudelft.simulation.dsol.animation.D2.Renderable2D<T>
 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.
 
| Constructor and Description | 
|---|
AbstractLineAnimation(T source,
                     org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator,
                     double length,
                     org.djunits.value.vdouble.scalar.Length width)
Construct the line animation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
getHalfLength()
Returns half the length. 
 | 
void | 
paint(Graphics2D graphics,
     ImageObserver observer) | 
public AbstractLineAnimation(T source, org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator, double length, org.djunits.value.vdouble.scalar.Length width) throws NamingException, RemoteException
source - sourcesimulator - the simulator to schedule onlength - length of the line, as fraction of the lane widthwidth - 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 nl.tudelft.simulation.dsol.animation.D2.Renderable2D<T extends LaneBasedObject>RemoteExceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.