Uses of Enum Class
org.opentrafficsim.draw.TextAlignment
Package
Description
Generic animation classes, i.e., for displaying texts.
GTU animations.
Animation for Links, Lanes, Nodes.
Animation for Links, Lanes, Nodes.
-
Uses of TextAlignment in org.opentrafficsim.draw
Modifier and TypeMethodDescriptionprotected final TextAlignment
TextAnimation.getTextAlignment()
Retrieve the text alignment.final TextAlignment
TextProperties.getTextAlignment()
static TextAlignment
Returns the enum constant of this class with the specified name.static TextAlignment[]
TextAlignment.values()
Returns an array containing the constants of this enum class, in the order they are declared.ModifierConstructorDescriptionTextAnimation
(L source, Supplier<String> text, float dx, float dy, TextAlignment textAlignment, Color color, float fontSize, float minFontSize, float maxFontSize, nl.tudelft.simulation.naming.context.Contextualized contextualized, TextAnimation.ContrastToBackground background, TextAnimation.ScaleDependentRendering scaleDependentRendering) Construct a new TextAnimation.TextAnimation
(L source, Supplier<String> text, float dx, float dy, TextAlignment textAlignment, Color color, float fontSize, float minFontSize, float maxFontSize, nl.tudelft.simulation.naming.context.Contextualized contextualized, TextAnimation.ScaleDependentRendering scaleDependentRendering) Construct a new TextAnimation without contrast to background protection and no minimum font scale.TextAnimation
(L source, Supplier<String> text, float dx, float dy, TextAlignment textAlignment, Color color, nl.tudelft.simulation.naming.context.Contextualized contextualized, TextAnimation.ScaleDependentRendering scaleDependentRendering) TextProperties
(TextAlignment textAlignment, Color color, float fontSize) Construct a set of text properties for animation with alignment, color and size.TextProperties
(TextAlignment textAlignment, Color color, float fontSize, String font, Map<TextAttribute, Object> textAttributes) Construct a set of text properties for animation with alignment, color and size. -
Uses of TextAlignment in org.opentrafficsim.draw.gtu
ModifierConstructorDescriptionText
(DefaultCarAnimation.GtuData source, Supplier<String> text, float dx, float dy, TextAlignment textAlignment, Color color, nl.tudelft.simulation.naming.context.Contextualized contextualized) Text
(DefaultCarAnimation.GtuData source, Supplier<String> text, float dx, float dy, TextAlignment textAlignment, Color color, nl.tudelft.simulation.naming.context.Contextualized contextualized, TextAnimation.ContrastToBackground background) -
Uses of TextAlignment in org.opentrafficsim.draw.network
ModifierConstructorDescriptionText
(LinkAnimation.LinkData source, Supplier<String> text, float dx, float dy, TextAlignment textPlacement, Color color, nl.tudelft.simulation.naming.context.Contextualized contextualized, TextAnimation.ScaleDependentRendering scaleDependentRendering) Text
(NodeAnimation.NodeData source, Supplier<String> text, float dx, float dy, TextAlignment textPlacement, Color color, nl.tudelft.simulation.naming.context.Contextualized contextualized, TextAnimation.ScaleDependentRendering scaleDependentRendering) -
Uses of TextAlignment in org.opentrafficsim.draw.road
ModifierConstructorDescriptionText
(BusStopAnimation.BusStopData source, Supplier<String> text, float dx, float dy, TextAlignment textPlacement, Color color, nl.tudelft.simulation.naming.context.Contextualized contextualized) Text
(LaneAnimation.LaneData source, Supplier<String> text, float dx, float dy, TextAlignment textPlacement, Color color, nl.tudelft.simulation.naming.context.Contextualized contextualized) Text
(LaneDetectorAnimation.LaneDetectorData source, Supplier<String> text, float dx, float dy, TextAlignment textPlacement, Color color, nl.tudelft.simulation.naming.context.Contextualized contextualized) Text
(TrafficLightAnimation.TrafficLightData source, Supplier<String> text, float dx, float dy, TextAlignment textPlacement, Color color, nl.tudelft.simulation.naming.context.Contextualized contextualized) Text
(TrafficLightDetectorAnimation.TrafficLightDetectorData source, Supplier<String> text, float dx, float dy, TextAlignment textPlacement, Color color, nl.tudelft.simulation.naming.context.Contextualized contextualized)