Task.Support.GUISupport
Enum Colors

java.lang.Object
  extended by java.lang.Enum<Colors>
      extended by Task.Support.GUISupport.Colors
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Colors>

public enum Colors
extends java.lang.Enum<Colors>

Colors is a utility class that makes it easier to work with colors. Methods are provided for conversion to hex strings, and for getting alpha channel colors.

Since:
Apr 21, 2007, 12:55:24 PM
Version:
1.0
Author:
Nazmul Idris

Enum Constant Summary
Black
           
Blue
           
BlueGray
           
BrightBlue
           
DarkBlue
           
DarkestGray
           
DarkFadedBlue
           
DarkFrost
           
DarkGray
           
DullBlue
           
DullBlueDark
           
Gray
           
Green
           
LightBlack
           
LightBlue
           
LightBrightBlue
           
LightestBlack
           
LightestBrightBlue
           
LightestGray
           
LightFrost
           
LightGrad_DarkStop
           
LightGrad_LightStop
           
LightGray
           
LightPaleBlue
           
MediumBlack
           
MediumGray
           
Orange
           
Pink
           
Red
           
SmurfBlue
           
TranslucentBlack
           
TranslucentBlue
           
TranslucentGray
           
TranslucentTitleGray
           
TranslucentWhite
           
White
           
Yellow
           
 
Method Summary
static java.awt.Color alpha(java.awt.Color c, float t)
           
 java.awt.Color alpha(float t)
           
 java.awt.Color color()
           
 java.awt.Color color(float f)
           
 java.lang.String toHexString()
           
 java.lang.String toString()
           
static Colors valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Colors[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LightGrad_DarkStop

public static final Colors LightGrad_DarkStop

LightGrad_LightStop

public static final Colors LightGrad_LightStop

SmurfBlue

public static final Colors SmurfBlue

LightPaleBlue

public static final Colors LightPaleBlue

LightestBrightBlue

public static final Colors LightestBrightBlue

LightBrightBlue

public static final Colors LightBrightBlue

BrightBlue

public static final Colors BrightBlue

Pink

public static final Colors Pink

Green

public static final Colors Green

Orange

public static final Colors Orange

Yellow

public static final Colors Yellow

Red

public static final Colors Red

LightBlue

public static final Colors LightBlue

DarkBlue

public static final Colors DarkBlue

DullBlue

public static final Colors DullBlue

DullBlueDark

public static final Colors DullBlueDark

Blue

public static final Colors Blue

BlueGray

public static final Colors BlueGray

Black

public static final Colors Black

MediumBlack

public static final Colors MediumBlack

LightBlack

public static final Colors LightBlack

LightestBlack

public static final Colors LightestBlack

White

public static final Colors White

Gray

public static final Colors Gray

LightestGray

public static final Colors LightestGray

LightGray

public static final Colors LightGray

MediumGray

public static final Colors MediumGray

DarkGray

public static final Colors DarkGray

DarkestGray

public static final Colors DarkestGray

LightFrost

public static final Colors LightFrost

DarkFrost

public static final Colors DarkFrost

DarkFadedBlue

public static final Colors DarkFadedBlue

TranslucentBlue

public static final Colors TranslucentBlue

TranslucentTitleGray

public static final Colors TranslucentTitleGray

TranslucentWhite

public static final Colors TranslucentWhite

TranslucentBlack

public static final Colors TranslucentBlack

TranslucentGray

public static final Colors TranslucentGray
Method Detail

values

public static Colors[] 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 (Colors c : Colors.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Colors 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

alpha

public java.awt.Color alpha(float t)

alpha

public static java.awt.Color alpha(java.awt.Color c,
                                   float t)

color

public java.awt.Color color()

color

public java.awt.Color color(float f)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<Colors>

toHexString

public java.lang.String toHexString()


Copyright © 2011. All Rights Reserved.