com.opera.core.systems.scope.internal
Enum OperaColors

java.lang.Object
  extended by java.lang.Enum<OperaColors>
      extended by com.opera.core.systems.scope.internal.OperaColors
All Implemented Interfaces:
Serializable, Comparable<OperaColors>

public enum OperaColors
extends Enum<OperaColors>

Enumerator for contains colour API (RGB values for standard web colours).

Author:
Deniz Turkoglu

Enum Constant Summary
AQUA
           
BLACK
           
BLUE
           
FUSCHIA
           
GRAY
           
GREEN
           
LIME
           
MAROON
           
NAVY
           
OLIVE
           
PURPLE
           
RED
           
SILVER
           
TEAL
           
WHITE
           
YELLOW
           
 
Method Summary
 OperaColor getColour()
           
static OperaColors valueOf(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
 

Enum Constant Detail

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
Method Detail

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(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

getColour

public OperaColor getColour()


Copyright © 2012. All Rights Reserved.