Package org.opentrafficsim.draw.lane
Class LaneStructureAnimation
- java.lang.Object
-
- nl.tudelft.simulation.dsol.animation.D2.Renderable2D<LaneStructureLocatable>
-
- org.opentrafficsim.draw.lane.LaneStructureAnimation
-
- All Implemented Interfaces:
Serializable,Renderable2DInterface<LaneStructureLocatable>
public class LaneStructureAnimation extends Renderable2D<LaneStructureLocatable>
LaneStructureAnimation.java.Copyright (c) 2003-2020 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpaint(Graphics2D graphics, ImageObserver observer)static voidvisualize(RollingLaneStructure rollingLaneStructure, Gtu gtu)Enables visualization of this lane structure.-
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, toString
-
-
-
-
Method Detail
-
paint
public void paint(Graphics2D graphics, ImageObserver observer)
- Specified by:
paintin classRenderable2D<LaneStructureLocatable>
-
visualize
public static final void visualize(RollingLaneStructure rollingLaneStructure, Gtu gtu)
Enables visualization of this lane structure. This is purely for debugging purposes.- Parameters:
rollingLaneStructure- RollingLaneStructure; the lane structure to visualizegtu- Gtu; GTU to animate the LaneStructure of
-
-