Class TrafficLightAnimation.Text

All Implemented Interfaces:
Locatable, OtsShape
Enclosing class:
TrafficLightAnimation

public static class TrafficLightAnimation.Text extends RenderableTextSource<TrafficLightAnimation.TrafficLightData,TrafficLightAnimation.Text>
Text animation for the TrafficLight.
  • Constructor Details

    • Text

      public Text(TrafficLightAnimation.TrafficLightData source, Supplier<String> text, float dx, float dy, nl.tudelft.simulation.naming.context.Contextualized contextualized)
      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
      contextualized - context provider
  • Method Details