Class NodeAnimation

java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.draw.OtsRenderable<NodeAnimation.NodeData>
org.opentrafficsim.draw.network.NodeAnimation
All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<NodeAnimation.NodeData>

public class NodeAnimation extends OtsRenderable<NodeAnimation.NodeData>
Draws NodeData.

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 
    NodeData provides the information required to draw a node.
    static class 
    Text animation for the Node.
  • 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
    NodeAnimation(NodeAnimation.NodeData node, nl.tudelft.simulation.naming.context.Contextualized contextualized)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    destroy(nl.tudelft.simulation.naming.context.Contextualized contextProvider)
     
    boolean
    final void
    paint(Graphics2D graphics, ImageObserver observer)
     
    final String
     

    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, getId, getSource, isFlip, isRotate, isScale, isScaleObject, 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

    • NodeAnimation

      public NodeAnimation(NodeAnimation.NodeData node, nl.tudelft.simulation.naming.context.Contextualized contextualized)
      Constructor.
      Parameters:
      node - node data.
      contextualized - context provider
  • Method Details

    • isScaleY

      public boolean isScaleY()
      Specified by:
      isScaleY in interface nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<NodeAnimation.NodeData>
      Overrides:
      isScaleY in class nl.tudelft.simulation.dsol.animation.d2.Renderable2d<NodeAnimation.NodeData>
    • paint

      public final void paint(Graphics2D graphics, ImageObserver observer)
      Specified by:
      paint in class nl.tudelft.simulation.dsol.animation.d2.Renderable2d<NodeAnimation.NodeData>
    • destroy

      public void destroy(nl.tudelft.simulation.naming.context.Contextualized contextProvider)
      Specified by:
      destroy in interface nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<NodeAnimation.NodeData>
      Overrides:
      destroy in class nl.tudelft.simulation.dsol.animation.d2.Renderable2d<NodeAnimation.NodeData>
    • toString

      public final String toString()
      Overrides:
      toString in class nl.tudelft.simulation.dsol.animation.d2.Renderable2d<NodeAnimation.NodeData>