Enum Class DataLabels

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

public enum DataLabels extends Enum<DataLabels>
The format of the displayed values for PieChart charts.
Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • PERCENTAGES

      public static final DataLabels PERCENTAGES
      Percentages are displayed on pie chart slices.
    • VALUES

      public static final DataLabels VALUES
      Numeric values are displayed on pie chart slices.
    • HIDE

      public static final DataLabels HIDE
      No values are displayed on pie chart slices.
  • Method Details

    • values

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

      public static DataLabels fromName(String name)
      Determines the displayed values by the specified name.
      Parameters:
      name - Value name
      Returns:
      Display type for the specified name or null if there is no display type for the specified name