- All Implemented Interfaces:
Colors,Serializable,Comparable<MetroColors>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe 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 TypeMethodDescriptionjavafx.scene.paint.Colorget()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)static MetroColorsReturns the enum constant of this class with the specified name.static MetroColors[]values()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
-
Enum Constant Details
-
LIGHT_GREEN
The color LIGHT GREEN with an RGB value of colorToRGB(153,180,51). -
GREEN
The color GREEN with an RGB value of colorToRGB(0,163,0). -
DARK_GREEN
The color DARK GREEN with an RGB value of colorToRGB(30,113,69). -
MAGENTA
The color MAGENTA with an RGB value of colorToRGB(255,0,151). -
LIGHT_PURPLE
The color LIGHT PURPLE with an RGB value of colorToRGB(159,0,167). -
PURPLE
The color PURPLE with an RGB value of colorToRGB(126,56,120). -
DARK_PURPLE
The color DARK PURPLE with an RGB value of colorToRGB(96,60,186). -
DARKEN
The color DARKEN with an RGB value of colorToRGB(29,29,29). -
TEAL
The color TEAL with an RGB value of colorToRGB(0,171,169). -
LIGHT_BLUE
The color LIGHT BLUE with an RGB value of colorToRGB(239,244,255). -
BLUE
The color BLUE with an RGB value of colorToRGB(45,137,239). -
DARK_BLUE
The color DARK BLUE with an RGB value of colorToRGB(43,87,151). -
YELLOW
The color YELLOW with an RGB value of colorToRGB(255,196,13). -
ORANGE
The color ORANGE with an RGB value of colorToRGB(227,162,26). -
DARK_ORANGE
The color DARK ORANGE with an RGB value of colorToRGB(218,83,44). -
RED
The color RED with an RGB value of colorToRGB(238,17,17). -
DARK_RED
The color DARK RED with an RGB value of colorToRGB(185,29,71).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
get
public javafx.scene.paint.Color get()Description copied from interface:ColorsReturns the corresponding JavaFX color. -
rgb
Description copied from interface:ColorsReturns a String expression from the color with the format: colorToRGB(12, 121, 15) -
rgba
Description copied from interface:ColorsReturns a String expression from the color and opacity with the format: colorToRGBA(12, 121, 15, 0.5) -
web
Description copied from interface:ColorsReturns a String expression from the color with the format: #AB12CD
-