Class SelectionAnnotation
java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.animation.OtsRenderable<L>
org.opentrafficsim.editor.extensions.map.edit.MapAnnotation<SelectionAnnotation.ZAdjustedMapData>
org.opentrafficsim.editor.extensions.map.edit.SelectionAnnotation
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<SelectionAnnotation.ZAdjustedMapData>
- Direct Known Subclasses:
HighlightAnnotation
Renderable that indicates the selection of an object. It paints a line along the contour of the object.
Copyright (c) 2026-2026 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 ClassesModifier and TypeClassDescriptionstatic final recordHelper class that wraps aMapDataand acts like it, except with an adjusted z-value as given. -
Field Summary
Fields inherited from interface nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface
ANIMATION_OBJECT_COUNTER, FLIP_FLAG, ROTATE_FLAG, SCALE_FLAG, SCALE_OBJECT_FLAG, SCALE_Y_FLAG, TRANSLATE_FLAG -
Constructor Summary
ConstructorsModifierConstructorDescriptionSelectionAnnotation(MapData source, EditorMap map) Constructor.protectedSelectionAnnotation(MapData source, EditorMap map, double z) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected ColorgetColor()Returns the color.voidpaint(Graphics2D graphics, ImageObserver observer) Methods inherited from class org.opentrafficsim.editor.extensions.map.edit.MapAnnotation
getMap, px, pxMethods inherited from class org.opentrafficsim.animation.OtsRenderable
contains, contains, isDynamic, resetRendering, setDynamic, setRenderingMethods inherited from class nl.tudelft.simulation.dsol.animation.d2.Renderable2d
bind2Context, contains, destroy, getId, getSource, isFlip, isRotate, isScale, isScaleObject, isScaleY, isTranslate, paint, paintComponent, setFlip, setRotate, setScale, setScaleObject, setScaleY, setTranslate, toString
-
Constructor Details
-
SelectionAnnotation
Constructor.- Parameters:
source- sourcemap- map
-
SelectionAnnotation
Constructor.- Parameters:
source- sourcemap- mapz- z-level
-
-
Method Details
-
paint
- Specified by:
paintin classnl.tudelft.simulation.dsol.animation.d2.Renderable2d<SelectionAnnotation.ZAdjustedMapData>
-
getColor
Returns the color.- Returns:
- color
-