Enum Class AxisType

java.lang.Object
java.lang.Enum<AxisType>
com.jbstrap.ui.components.charts.params.enums.AxisType
All Implemented Interfaces:
Serializable, Comparable<AxisType>, Constable

public enum AxisType extends Enum<AxisType>
Chart axis types.
Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • DATE

      public static final AxisType DATE
      An axis displaying date or time data values.
    • NUMBER

      public static final AxisType NUMBER
      An axis displaying numeric values.
    • TEXT

      public static final AxisType TEXT
      An axis displaying text data.
  • Method Details

    • values

      public static AxisType[] 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 AxisType 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AxisType>
      Returns:
      JavaScript parameter value for the axis type
    • fromName

      public static AxisType fromName(String name)
      Determines an operator type based on its name.
      Parameters:
      name - Axis type name
      Returns:
      Axis type or null, if there is no axis type for the specified name