Enum Class DrawLevel

java.lang.Object
java.lang.Enum<DrawLevel>
org.opentrafficsim.draw.DrawLevel
All Implemented Interfaces:
Serializable, Comparable<DrawLevel>, Constable

public enum DrawLevel extends Enum<DrawLevel>
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
  • Enum Constant Details

    • ANNOTATION

      public static final DrawLevel ANNOTATION
      Annotation level (e.g. draggable for editing).
    • SNAP

      public static final DrawLevel SNAP
      Snap level (e.g. line indicating where draggable can be).
    • SELECTION

      public static final DrawLevel SELECTION
      Selection indicator level.
    • LABEL

      public static final DrawLevel LABEL
      Label level.
    • GTU

      public static final DrawLevel GTU
      GTU level.
    • NODE

      public static final DrawLevel NODE
      Node level.
    • CENTER_LINE

      public static final DrawLevel CENTER_LINE
      Center line level.
    • OBJECT

      public static final DrawLevel OBJECT
      Object level (detectors, traffic lights, etc.).
    • MARKING

      public static final DrawLevel MARKING
      Lane marking level.
    • LANE

      public static final DrawLevel LANE
      Lane level.
    • SHOULDER

      public static final DrawLevel SHOULDER
      Shoulder level.
  • Method Details

    • values

      public static DrawLevel[] 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

      public static DrawLevel valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getZ

      public double getZ()
      Z-level.
      Returns:
      double; z-level.