Enum ChartColor

java.lang.Object
java.lang.Enum<ChartColor>
org.knowm.xchart.style.colors.ChartColor
All Implemented Interfaces:
Serializable, Comparable<ChartColor>, java.lang.constant.Constable

public enum ChartColor extends Enum<ChartColor>
Pre-defined Colors used for various Chart Elements
  • Enum Constant Details

    • BLACK

      public static final ChartColor BLACK
      BLACK
    • DARK_GREY

      public static final ChartColor DARK_GREY
      DARK_GREY
    • GREY

      public static final ChartColor GREY
      GREY
    • LIGHT_GREY

      public static final ChartColor LIGHT_GREY
      LIGHT_GREY
    • WHITE

      public static final ChartColor WHITE
      WHITE
    • RED

      public static final ChartColor RED
      RED
    • BLUE

      public static final ChartColor BLUE
      BLUE
    • GREEN

      public static final ChartColor GREEN
      GREEN
  • Method Details

    • values

      public static ChartColor[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ChartColor valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getColor

      public Color getColor()
    • getColorTranslucent

      public Color getColorTranslucent()