Class LinkAnimation.Text

java.lang.Object
org.opentrafficsim.draw.core.TextAnimation
org.opentrafficsim.draw.network.LinkAnimation.Text
All Implemented Interfaces:
Serializable, Locatable
Enclosing class:
LinkAnimation

public class LinkAnimation.Text extends TextAnimation
Text animation for the Link. Separate class to be able to turn it on and off...

Copyright (c) 2013-2023 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:
  • Constructor Details

    • Text

      public Text(Locatable source, String text, float dx, float dy, TextAlignment textPlacement, Color color, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator, TextAnimation.ScaleDependentRendering scaleDependentRendering) throws RemoteException, NamingException
      Parameters:
      source - Locatable; the object for which the text is displayed
      text - String; the text to display
      dx - float; the horizontal movement of the text, in meters
      dy - float; the vertical movement of the text, in meters
      textPlacement - TextAlignment; where to place the text
      color - Color; the color of the text
      simulator - OtsSimulatorInterface; the simulator
      scaleDependentRendering - ScaleDependentRendering; enables rendering in a scale dependent fashion
      Throws:
      NamingException - when animation context cannot be created or retrieved
      RemoteException - - when remote context cannot be found
  • Method Details