- All Implemented Interfaces:
Serializable
,Comparable<ColorSchemes>
,Constable
,ColorScheme
public enum ColorSchemes extends Enum<ColorSchemes> implements ColorScheme
This enum provides a set of predefined color schemes.
- Since:
- Omix 1.8.6
- Author:
- Dr. Peter Droste
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description int
colorCount()
static Color[]
generate(Color color, int count)
Color
getColor(int index)
Color[]
getColors()
static ColorSchemes
valueOf(String name)
Returns the enum constant of this type with the specified name.static ColorSchemes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getColor
- Specified by:
getColor
in interfaceColorScheme
-
colorCount
public int colorCount()- Specified by:
colorCount
in interfaceColorScheme
-
getColors
- Specified by:
getColors
in interfaceColorScheme
-
generate
-