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:
java.io.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. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.- Author:
- Alexander Verbraeck
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
Renderable2DInterface.Util
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
paint(java.awt.Graphics2D graphics, java.awt.image.ImageObserver observer)
static void
visualize(RollingLaneStructure rollingLaneStructure, GTU gtu)
Enables visualization of this lane structure.-
Methods inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2D
bind2Context, contains, destroy, equals, getSource, hashCode, isFlip, isRotate, isScale, isTranslate, paint, setFlip, setRotate, setScale, setTranslate, toString
-
-
-
-
Method Detail
-
paint
public void paint(java.awt.Graphics2D graphics, java.awt.image.ImageObserver observer) throws java.rmi.RemoteException
- Specified by:
paint
in classRenderable2D<LaneStructureLocatable>
- Throws:
java.rmi.RemoteException
-
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
-
-