Class NodeAnimation.Text

All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable, OtsShape
Enclosing class:
NodeAnimation

public static class NodeAnimation.Text extends RenderableTextSource<NodeAnimation.NodeData,NodeAnimation.Text>
Text animation for the Node. Separate class to be able to turn it on and off...

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
  • Constructor Details

    • Text

      public Text(NodeAnimation.NodeData source, Supplier<String> text, float dx, float dy, TextAlignment textPlacement, Color color, nl.tudelft.simulation.naming.context.Contextualized contextualized, RenderableTextSource.ScaleDependentRendering scaleDependentRendering)
      Constructor.
      Parameters:
      source - the object for which the text is displayed
      text - the text to display
      dx - the horizontal movement of the text, in meters
      dy - the vertical movement of the text, in meters
      textPlacement - where to place the text
      color - the color of the text
      contextualized - context provider
      scaleDependentRendering - size limiter for text animation
  • Method Details