Package org.opentrafficsim.draw.gtu
Class DefaultCarAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.draw.OtsRenderable<DefaultCarAnimation.GtuData>
org.opentrafficsim.draw.gtu.DefaultCarAnimation
- All Implemented Interfaces:
Serializable,nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<DefaultCarAnimation.GtuData>
Draw a car.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceGtuData provides the information required to draw a link.classText animation for the Car. -
Constructor Summary
ConstructorsConstructorDescriptionDefaultCarAnimation(DefaultCarAnimation.GtuData gtu, nl.tudelft.simulation.naming.context.Contextualized contextualized) Construct the DefaultCarAnimation for a LaneBasedIndividualCar. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(nl.tudelft.simulation.naming.context.Contextualized contextProvider) booleaninthashCode()final voidpaint(Graphics2D graphics, ImageObserver observer) Methods inherited from class org.opentrafficsim.draw.OtsRenderable
contains, resetRendering, setRenderingMethods inherited from class nl.tudelft.simulation.dsol.animation.d2.Renderable2d
bind2Context, getId, getSource, isFlip, isRotate, isScale, isScaleObject, isScaleY, isTranslate, paint, paintComponent, setFlip, setRotate, setScale, setScaleObject, setScaleY, setTranslate, toString
-
Constructor Details
-
DefaultCarAnimation
public DefaultCarAnimation(DefaultCarAnimation.GtuData gtu, nl.tudelft.simulation.naming.context.Contextualized contextualized) Construct the DefaultCarAnimation for a LaneBasedIndividualCar.- Parameters:
gtu- the Car to drawcontextualized- context provider
-
-
Method Details
-
paint
- Specified by:
paintin classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<DefaultCarAnimation.GtuData>
-
destroy
public void destroy(nl.tudelft.simulation.naming.context.Contextualized contextProvider) - Specified by:
destroyin interfacenl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<DefaultCarAnimation.GtuData>- Overrides:
destroyin classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<DefaultCarAnimation.GtuData>
-
hashCode
public int hashCode() -
equals
-