Enum Class GaugeChartType

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

public enum GaugeChartType extends Enum<GaugeChartType>
GaugeChart chart types.
Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • HORIZONTAL

      public static final GaugeChartType HORIZONTAL
      The chart is displayed as a horizontal semicircle.
    • LEFT

      public static final GaugeChartType LEFT
      The chart is displayed as a semicircle facing left.
    • SPEEDOMETER

      public static final GaugeChartType SPEEDOMETER
      The chart is displayed as a speedometer.
  • Method Details

    • values

      public static GaugeChartType[] 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 GaugeChartType 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<GaugeChartType>
    • fromName

      public static GaugeChartType fromName(String name)
      Determines the gauge chart’s type by its name.
      Parameters:
      name - Gauge chart name
      Returns:
      Type for the specified name or null, if there is no type for the specified name