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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opentrafficsim.animation.RenderableTextSource
RenderableTextSource.ContrastToBackground, RenderableTextSource.ScaleDependentRendering -
Field Summary
Fields inherited from class org.opentrafficsim.animation.RenderableTextSource
RENDERALWAYS, RENDERWHEN1, RENDERWHEN10, RENDERWHEN100Fields inherited from interface org.opentrafficsim.base.geometry.OtsShape
DEFAULT_POLYGON_SEGMENTS, WORLD_MARGIN_LINE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.opentrafficsim.animation.RenderableTextSource
destroy, getAbsoluteContour, getColor, getDx, getDy, getFont, getFontSize, getLocation, getRelativeBounds, getRelativeContour, getScaleDependentRendering, getSource, getText, getTextAlignment, getZ, isFlip, isRotate, isScale, isScaleObject, isScaleY, isTranslate, paint, setColor, setDynamic, setFlip, setRotate, setScale, setScaleObject, setScaleY, setText, setTranslate, setXYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.base.geometry.OtsShape
contains, contains, getAbsoluteBounds, getAbsoluteContour, getAbsoluteContour, getDirZ, getLocation, getRelativeBounds, getRelativeContour, signedDistance, signedDistance
-
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 displayedtext- the text to displaydx- the horizontal movement of the text, in metersdy- the vertical movement of the text, in meterscontextualized- context provider
-
-
Method Details