Package org.opentrafficsim.draw
Enum Class DrawLevel
- All Implemented Interfaces:
Serializable
,Comparable<DrawLevel>
,Constable
Z-level for use in
Locatable.getZ()
implementations. The goal of this is to use z-ordering to obtain the desired
drawing order.
Copyright (c) 2023-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 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAnnotation level (e.g. draggable for editing).Center line level.GTU level.Label level.Lane level.Line level.Lane marking level.Node level.Object level (detectors, traffic lights, etc.).Selection indicator level.Shoulder level.Snap level (e.g. line indicating where draggable can be). -
Method Summary
-
Enum Constant Details
-
ANNOTATION
Annotation level (e.g. draggable for editing). -
SNAP
Snap level (e.g. line indicating where draggable can be). -
SELECTION
Selection indicator level. -
LABEL
Label level. -
GTU
GTU level. -
NODE
Node level. -
CENTER_LINE
Center line level. -
LINK
Line level. -
OBJECT
Object level (detectors, traffic lights, etc.). -
MARKING
Lane marking level. -
LANE
Lane level. -
SHOULDER
Shoulder level.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getZ
public double getZ()Z-level.- Returns:
- double; z-level.
-