Enum Class LabelOption

java.lang.Object
java.lang.Enum<LabelOption>
eu.webtoolkit.jwt.chart.LabelOption
All Implemented Interfaces:
Serializable, Comparable<LabelOption>, Constable

public enum LabelOption extends Enum<LabelOption>
Enumeration that specifies options for the labels.

See Also:
  • Enum Constant Details

    • None

      public static final LabelOption None
      Do not display labels (default).
    • Inside

      public static final LabelOption Inside
      Display labels inside each segment.
    • Outside

      public static final LabelOption Outside
      Display labels outside each segment.
    • TextLabel

      public static final LabelOption TextLabel
      Display the label text.
    • TextPercentage

      public static final LabelOption TextPercentage
      Display the value (as percentage)
  • Method Details

    • values

      public static LabelOption[] 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 LabelOption 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
    • getValue

      public int getValue()
      Returns the numerical representation of this enum.