Class CrossSectionElementAnimation<L extends CrossSectionElementAnimation.CrossSectionElementData>

java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.draw.OtsRenderable<L>
org.opentrafficsim.draw.road.CrossSectionElementAnimation<L>
Type Parameters:
L - cross section element data type
All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<L>
Direct Known Subclasses:
LaneAnimation

public class CrossSectionElementAnimation<L extends CrossSectionElementAnimation.CrossSectionElementData> extends OtsRenderable<L>
Draws cross section elements (those that are not defined more specifically).

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, Wouter Schakel
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    CrossSectionElementData provides the information required to draw a cross section element.
    static interface 
    ShoulderData provides the information required to draw a shoulder.
  • Field Summary

    Fields inherited from interface nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface

    ANIMATION_OBJECT_COUNTER, FLIP_FLAG, ROTATE_FLAG, SCALE_FLAG, SCALE_OBJECT_FLAG, SCALE_Y_FLAG, TRANSLATE_FLAG
  • Constructor Summary

    Constructors
    Constructor
    Description
    CrossSectionElementAnimation(L source, nl.tudelft.simulation.naming.context.Contextualized contextualized, Color color)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    paint(Graphics2D graphics, ImageObserver observer)
     
     

    Methods inherited from class org.opentrafficsim.draw.OtsRenderable

    contains, contains, resetRendering, setRendering

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CrossSectionElementAnimation

      public CrossSectionElementAnimation(L source, nl.tudelft.simulation.naming.context.Contextualized contextualized, Color color)
      Constructor.
      Parameters:
      source - cross section element
      contextualized - context provider
      color - the color to draw the shoulder with
  • Method Details