Class SimRenderable2d<L extends Locatable>
java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
nl.tudelft.simulation.dsol.animation.SimRenderable2d<L>
- Type Parameters:
L
- The Locatable source type
- All Implemented Interfaces:
Serializable
,Renderable2dInterface<L>
SimRenderable2D binds the animation objects to the context in simulator.getReplication().
Copyright (c) 2021-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information DSOL Manual. The DSOL project is distributed under a three-clause BSD-style license, which can be found at DSOL License.
- Author:
- Alexander Verbraeck
- See Also:
-
Constructor Summary
ConstructorDescriptionSimRenderable2d
(L source, SimulatorInterface<?> simulator) Constructs a new Renderable2D. -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy
(SimulatorInterface<?> simulator) destroys an RenderableObject by unsubscribing it from the context.Methods inherited from class nl.tudelft.simulation.dsol.animation.d2.Renderable2d
bind2Context, contains, destroy, getId, getSource, isFlip, isRotate, isScale, isScaleObject, isScaleY, isTranslate, paint, paint, paintComponent, setFlip, setRotate, setScale, setScaleObject, setScaleY, setTranslate, toString
-
Constructor Details
-
SimRenderable2d
Constructs a new Renderable2D.- Parameters:
source
- T; the Locatable source type that provides the location and boundssimulator
- SimulatorInterface<?, ?, ?>; the simulator to provide the context via the replication
-
-
Method Details
-
destroy
destroys an RenderableObject by unsubscribing it from the context.- Parameters:
simulator
- SimulatorInterface<?, ?, ?>; the simulator to provide the context via the replication
-