Package org.opentrafficsim.draw.road
Class CrossSectionElementAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.D2.Renderable2D<CrossSectionElement>
org.opentrafficsim.draw.road.CrossSectionElementAnimation
- All Implemented Interfaces:
Serializable
,nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface<CrossSectionElement>
public class CrossSectionElementAnimation
extends nl.tudelft.simulation.dsol.animation.D2.Renderable2D<CrossSectionElement>
implements Serializable
Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCrossSectionElementAnimation
(CrossSectionElement source, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator, Color color) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
paint
(Graphics2D graphics, ImageObserver observer) final String
toString()
Methods inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2D
bind2Context, contains, destroy, getId, getSource, isFlip, isRotate, isScale, isScaleObject, isScaleY, isTranslate, paint, paintComponent, setFlip, setRotate, setScale, setScaleObject, setScaleY, setTranslate
-
Constructor Details
-
CrossSectionElementAnimation
public CrossSectionElementAnimation(CrossSectionElement source, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator, Color color) throws NamingException, RemoteException - Parameters:
source
- CrossSectionElement; cross section elementsimulator
- OtsSimulatorInterface; simulatorcolor
- Color; the color to draw the shoulder with- Throws:
NamingException
- neRemoteException
- on communication failure
-
-
Method Details
-
paint
- Specified by:
paint
in classnl.tudelft.simulation.dsol.animation.D2.Renderable2D<CrossSectionElement>
-
toString
- Overrides:
toString
in classnl.tudelft.simulation.dsol.animation.D2.Renderable2D<CrossSectionElement>
-