Package org.opentrafficsim.draw.road
Class LaneDetectorAnimation.SinkData.SinkText
java.lang.Object
org.opentrafficsim.draw.RenderableTextSource<LaneDetectorAnimation.SinkData,LaneDetectorAnimation.SinkData.SinkText>
org.opentrafficsim.draw.road.LaneDetectorAnimation.SinkData.SinkText
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable,OtsShape
- Enclosing interface:
- LaneDetectorAnimation.SinkData
public static class LaneDetectorAnimation.SinkData.SinkText
extends RenderableTextSource<LaneDetectorAnimation.SinkData,LaneDetectorAnimation.SinkData.SinkText>
Tagging implementation for sink ids.
Copyright (c) 2024-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights
reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opentrafficsim.draw.RenderableTextSource
RenderableTextSource.ContrastToBackground, RenderableTextSource.ScaleDependentRendering -
Field Summary
Fields inherited from class org.opentrafficsim.draw.RenderableTextSource
RENDERALWAYS, RENDERWHEN1, RENDERWHEN10, RENDERWHEN100Fields inherited from interface org.opentrafficsim.base.geometry.OtsShape
DEFAULT_POLYGON_SEGMENTS, WORLD_MARGIN_LINE -
Constructor Summary
ConstructorsConstructorDescriptionSinkText(LaneDetectorAnimation.SinkData sink, float dy, nl.tudelft.simulation.naming.context.Contextualized contextualized) Constructor. -
Method Summary
Methods inherited from class org.opentrafficsim.draw.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, toString, wait, wait, waitMethods inherited from interface org.opentrafficsim.base.geometry.OtsShape
contains, contains, getAbsoluteBounds, getAbsoluteContour, getDirZ, signedDistance, signedDistance
-
Constructor Details
-
SinkText
public SinkText(LaneDetectorAnimation.SinkData sink, float dy, nl.tudelft.simulation.naming.context.Contextualized contextualized) throws RemoteException, NamingException Constructor.- Parameters:
sink- loop detector data.dy- vertical spacing.contextualized- context provider.- Throws:
NamingException- when animation context cannot be created or retrievedRemoteException- when remote context cannot be found
-