Enum Class FontWeight

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

public enum FontWeight extends Enum<FontWeight>
Font weights used for charts.
Since:
4.0
Author:
JBStrap
  • Enum Constant Details

  • Method Details

    • values

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

      public static FontWeight fromName(String name)
      Determines a font weight by its specified name.
      Parameters:
      name - Font weight name
      Returns:
      Font weight for the specified name or null if there is no font weight for the specified name
    • fromValue

      public static FontWeight fromValue(Integer weight)
      Determines the font weight based on the font weight value.
      Parameters:
      weight - Font weight value
      Returns:
      Font weight for the specified value or null if there is no font weight for the specified value