public static class LaneAnimation.CenterLineAnimation extends nl.tudelft.simulation.dsol.animation.D2.Renderable2D<LaneAnimation.CenterLine> implements ClonableRenderable2DInterface<LaneAnimation.CenterLine>, Serializable
| Constructor and Description |
|---|
CenterLineAnimation(LaneAnimation.CenterLine centerLine,
nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit simulator)
Construct a new CenterLineAnimation.
|
| Modifier and Type | Method and Description |
|---|---|
ClonableRenderable2DInterface<LaneAnimation.CenterLine> |
clone(LaneAnimation.CenterLine newSource,
nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit newSimulator)
Clone the animation object and register it for the new source on the new simulation.
|
void |
paint(Graphics2D graphics,
ImageObserver observer) |
bind2Context, contains, destroy, equals, getSource, hashCode, isFlip, isRotate, isScale, isTranslate, paint, setFlip, setRotate, setScale, setTranslate, toStringpublic CenterLineAnimation(LaneAnimation.CenterLine centerLine, nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit simulator) throws NamingException, RemoteException
centerLine - CemterLine; the center line of a lanesimulator - SimulatorInterface.TimeDoubleUnit; the simulatorNamingException - when the name of this object is not uniqueRemoteException - when communication with a remote process failspublic final ClonableRenderable2DInterface<LaneAnimation.CenterLine> clone(LaneAnimation.CenterLine newSource, nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit newSimulator) throws NamingException, RemoteException
ClonableRenderable2DInterfaceclone in interface ClonableRenderable2DInterface<LaneAnimation.CenterLine>newSource - T; the sourcenewSimulator - SimulatorInterface.TimeDoubleUnit; the simulatorNamingException - when animation context cannot be created or retrievedRemoteException - - when remote context cannot be foundpublic final void paint(Graphics2D graphics, ImageObserver observer) throws RemoteException
paint in class nl.tudelft.simulation.dsol.animation.D2.Renderable2D<LaneAnimation.CenterLine>RemoteExceptionCopyright © 2014–2019 Delft University of Technology. All rights reserved.