Enum Class MetroColors

java.lang.Object
java.lang.Enum<MetroColors>
eu.hansolo.fx.charts.color.MetroColors
All Implemented Interfaces:
Colors, Serializable, Comparable<MetroColors>, Constable

public enum MetroColors extends Enum<MetroColors> implements Colors
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The color BLUE with an RGB value of colorToRGB(45,137,239).
    The color DARK BLUE with an RGB value of colorToRGB(43,87,151).
    The color DARK GREEN with an RGB value of colorToRGB(30,113,69).
    The color DARK ORANGE with an RGB value of colorToRGB(218,83,44).
    The color DARK PURPLE with an RGB value of colorToRGB(96,60,186).
    The color DARK RED with an RGB value of colorToRGB(185,29,71).
    The color DARKEN with an RGB value of colorToRGB(29,29,29).
    The color GREEN with an RGB value of colorToRGB(0,163,0).
    The color LIGHT BLUE with an RGB value of colorToRGB(239,244,255).
    The color LIGHT GREEN with an RGB value of colorToRGB(153,180,51).
    The color LIGHT PURPLE with an RGB value of colorToRGB(159,0,167).
    The color MAGENTA with an RGB value of colorToRGB(255,0,151).
    The color ORANGE with an RGB value of colorToRGB(227,162,26).
    The color PURPLE with an RGB value of colorToRGB(126,56,120).
    The color RED with an RGB value of colorToRGB(238,17,17).
    The color TEAL with an RGB value of colorToRGB(0,171,169).
    The color YELLOW with an RGB value of colorToRGB(255,196,13).
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.scene.paint.Color
    get()
    Returns the corresponding JavaFX color.
    rgb()
    Returns a String expression from the color with the format: colorToRGB(12, 121, 15)
    rgba(double OPACITY)
    Returns a String expression from the color and opacity with the format: colorToRGBA(12, 121, 15, 0.5)
    Returns the enum constant of this class with the specified name.
    static MetroColors[]
    Returns an array containing the constants of this enum class, in the order they are declared.
    web()
    Returns a String expression from the color with the format: #AB12CD

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • LIGHT_GREEN

      public static final MetroColors LIGHT_GREEN
      The color LIGHT GREEN with an RGB value of colorToRGB(153,180,51).


    • GREEN

      public static final MetroColors GREEN
      The color GREEN with an RGB value of colorToRGB(0,163,0).


    • DARK_GREEN

      public static final MetroColors DARK_GREEN
      The color DARK GREEN with an RGB value of colorToRGB(30,113,69).


    • MAGENTA

      public static final MetroColors MAGENTA
      The color MAGENTA with an RGB value of colorToRGB(255,0,151).


    • LIGHT_PURPLE

      public static final MetroColors LIGHT_PURPLE
      The color LIGHT PURPLE with an RGB value of colorToRGB(159,0,167).


    • PURPLE

      public static final MetroColors PURPLE
      The color PURPLE with an RGB value of colorToRGB(126,56,120).


    • DARK_PURPLE

      public static final MetroColors DARK_PURPLE
      The color DARK PURPLE with an RGB value of colorToRGB(96,60,186).


    • DARKEN

      public static final MetroColors DARKEN
      The color DARKEN with an RGB value of colorToRGB(29,29,29).


    • TEAL

      public static final MetroColors TEAL
      The color TEAL with an RGB value of colorToRGB(0,171,169).


    • LIGHT_BLUE

      public static final MetroColors LIGHT_BLUE
      The color LIGHT BLUE with an RGB value of colorToRGB(239,244,255).


    • BLUE

      public static final MetroColors BLUE
      The color BLUE with an RGB value of colorToRGB(45,137,239).


    • DARK_BLUE

      public static final MetroColors DARK_BLUE
      The color DARK BLUE with an RGB value of colorToRGB(43,87,151).


    • YELLOW

      public static final MetroColors YELLOW
      The color YELLOW with an RGB value of colorToRGB(255,196,13).


    • ORANGE

      public static final MetroColors ORANGE
      The color ORANGE with an RGB value of colorToRGB(227,162,26).


    • DARK_ORANGE

      public static final MetroColors DARK_ORANGE
      The color DARK ORANGE with an RGB value of colorToRGB(218,83,44).


    • RED

      public static final MetroColors RED
      The color RED with an RGB value of colorToRGB(238,17,17).


    • DARK_RED

      public static final MetroColors DARK_RED
      The color DARK RED with an RGB value of colorToRGB(185,29,71).


  • Method Details

    • values

      public static MetroColors[] 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 MetroColors 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
    • get

      public javafx.scene.paint.Color get()
      Description copied from interface: Colors
      Returns the corresponding JavaFX color.
      Specified by:
      get in interface Colors
      Returns:
      the corresponding JavaFX color.
    • rgb

      public String rgb()
      Description copied from interface: Colors
      Returns a String expression from the color with the format: colorToRGB(12, 121, 15)
      Specified by:
      rgb in interface Colors
      Returns:
      the String expression.
    • rgba

      public String rgba(double OPACITY)
      Description copied from interface: Colors
      Returns a String expression from the color and opacity with the format: colorToRGBA(12, 121, 15, 0.5)
      Specified by:
      rgba in interface Colors
      Returns:
      the String expression.
    • web

      public String web()
      Description copied from interface: Colors
      Returns a String expression from the color with the format: #AB12CD
      Specified by:
      web in interface Colors
      Returns:
      the String expression.