java.lang.Object
java.lang.Enum<Markers>
org.rrd4j.graph.Markers
All Implemented Interfaces:
Serializable, Comparable<Markers>, java.lang.constant.Constable

enum Markersextends Enum<Markers>
Enumeration of text alignment and formatting markers used in RRD graph legends. Provides constants for text positioning and spacing within legend elements.
  • Enum Constant Details

    • ALIGN_LEFT_MARKER

      public static final Markers ALIGN_LEFT_MARKER
      Constant to represent left alignment marker
    • ALIGN_LEFTNONL_MARKER

      public static final Markers ALIGN_LEFTNONL_MARKER
      Constant to represent left alignment marker, without new line
    • ALIGN_CENTER_MARKER

      public static final Markers ALIGN_CENTER_MARKER
      Constant to represent centered alignment marker
    • ALIGN_RIGHT_MARKER

      public static final Markers ALIGN_RIGHT_MARKER
      Constant to represent right alignment marker
    • ALIGN_JUSTIFIED_MARKER

      public static final Markers ALIGN_JUSTIFIED_MARKER
      Constant to represent justified alignment marker
    • GLUE_MARKER

      public static final Markers GLUE_MARKER
      Constant to represent "glue" marker
    • VERTICAL_SPACING_MARKER

      public static final Markers VERTICAL_SPACING_MARKER
      Constant to represent vertical spacing marker
    • NO_JUSTIFICATION_MARKER

      public static final Markers NO_JUSTIFICATION_MARKER
      Constant to represent no justification markers
  • Field Details

    • marker

      final String marker
      The marker string value
  • Constructor Details

    • Markers

      private Markers(String marker)
      Creates a marker with the specified string value.
      Parameters:
      marker - the marker string
  • Method Details

    • values

      public static Markers[] 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 Markers 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
    • check

      boolean check(String mark)
      Checks if this marker matches the specified string.
      Parameters:
      mark - the string to check against
      Returns:
      true if the marker matches, false otherwise