Class LaneDetectorAnimation.Text<L extends LaneDetectorAnimation.LaneDetectorData>

java.lang.Object
org.opentrafficsim.animation.RenderableTextSource<L,LaneDetectorAnimation.Text<L>>
org.opentrafficsim.animation.road.LaneDetectorAnimation.Text<L>
Type Parameters:
L - source type
All Implemented Interfaces:
Locatable, DetectorData.Text, OtsShape
Enclosing class:
LaneDetectorAnimation<L extends LaneDetectorAnimation.LaneDetectorData>

public static class LaneDetectorAnimation.Text<L extends LaneDetectorAnimation.LaneDetectorData> extends RenderableTextSource<L,LaneDetectorAnimation.Text<L>> implements DetectorData.Text
Text animation for the detector.
  • Constructor Details

    • Text

      public Text(L 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