Package org.opentrafficsim.draw.core
Interface ClonableRenderable2DInterface<T extends Locatable>
-
- Type Parameters:
T
- the Locatable class of the source that indicates the location of the Renderable on the screen
- All Superinterfaces:
Renderable2DInterface<T>
,java.io.Serializable
- All Known Implementing Classes:
DefaultCarAnimation
,LaneAnimation
,LaneAnimation.CenterLineAnimation
,LinkAnimation
,NodeAnimation
,SensorAnimation
,StripeAnimation
,TrafficLightAnimation
public interface ClonableRenderable2DInterface<T extends Locatable> extends Renderable2DInterface<T>
This interface extends the animation objects with an option to clone them for a new source on a new Simulator.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Jan 15, 2017
BSD-style license. See OpenTrafficSim License.- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
Renderable2DInterface.Util
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClonableRenderable2DInterface<T>
clone(T newSource, SimulatorInterface.TimeDoubleUnit newSimulator)
Clone the animation object and register it for the new source on the new simulation.-
Methods inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
contains, destroy, getSource, paint
-
-
-
-
Method Detail
-
clone
ClonableRenderable2DInterface<T> clone(T newSource, SimulatorInterface.TimeDoubleUnit newSimulator) throws javax.naming.NamingException, java.rmi.RemoteException
Clone the animation object and register it for the new source on the new simulation.- Parameters:
newSource
- T; the sourcenewSimulator
- SimulatorInterface.TimeDoubleUnit; the simulator- Returns:
- the generated clone
- Throws:
javax.naming.NamingException
- when animation context cannot be created or retrievedjava.rmi.RemoteException
- - when remote context cannot be found
-
-