com.opera.core.systems.scope.internal
Enum OperaColors
java.lang.Object
java.lang.Enum<OperaColors>
com.opera.core.systems.scope.internal.OperaColors
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<OperaColors>
public enum OperaColors
- extends java.lang.Enum<OperaColors>
Enumerator for contains colour API (RGB values for standard web colors).
- Author:
- Deniz Turkoglu
|
Method Summary |
OperaColor |
getColour()
|
static OperaColors |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static OperaColors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
AQUA
public static final OperaColors AQUA
BLACK
public static final OperaColors BLACK
BLUE
public static final OperaColors BLUE
FUSCHIA
public static final OperaColors FUSCHIA
GRAY
public static final OperaColors GRAY
GREEN
public static final OperaColors GREEN
LIME
public static final OperaColors LIME
MAROON
public static final OperaColors MAROON
NAVY
public static final OperaColors NAVY
OLIVE
public static final OperaColors OLIVE
PURPLE
public static final OperaColors PURPLE
RED
public static final OperaColors RED
SILVER
public static final OperaColors SILVER
TEAL
public static final OperaColors TEAL
WHITE
public static final OperaColors WHITE
YELLOW
public static final OperaColors YELLOW
values
public static OperaColors[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (OperaColors c : OperaColors.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static OperaColors valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
getColour
public OperaColor getColour()
Copyright © 2011. All Rights Reserved.