Class LaneDetectorAnimation.Text

All Implemented Interfaces:
Serializable, nl.tudelft.simulation.dsol.animation.Locatable, org.opentrafficsim.base.geometry.OtsLocatable, DetectorData.Text
Enclosing class:
LaneDetectorAnimation<L extends LaneDetectorAnimation.LaneDetectorData,T extends TextAnimation<L,T>>

public static class LaneDetectorAnimation.Text extends TextAnimation<LaneDetectorAnimation.LaneDetectorData,LaneDetectorAnimation.Text> implements DetectorData.Text
Text animation for the Detector. 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
See Also:
  • Constructor Details

    • Text

      public Text(LaneDetectorAnimation.LaneDetectorData source, Supplier<String> text, float dx, float dy, TextAlignment textPlacement, Color color, nl.tudelft.simulation.naming.context.Contextualized contextualized) throws RemoteException, NamingException
      Parameters:
      source - LaneDetectorData; the object for which the text is displayed
      text - Supplier<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
      contextualized - Contextualized; context provider
      Throws:
      NamingException - when animation context cannot be created or retrieved
      RemoteException - - when remote context cannot be found
  • Method Details