us.asciiroth.client.core
Class Color

java.lang.Object
  extended by us.asciiroth.client.core.Color

public class Color
extends java.lang.Object

There's some interesting color transformation support we can provider here, and color is an important parameter object for many objects like doors and keys and transformers.


Field Summary
static Color ALICEBLUE
           
static Color ANTIQUEWHITE
           
static Color AQUA
           
static Color AQUAMARINE
           
static Color AZURE
           
static Color BARELY_BUILDING_WALL
           
static Color BEIGE
           
static Color BISQUE
           
static Color BLACK
           
static Color BLANCHEDALMOND
           
static Color BLUE
           
static Color BLUEVIOLET
           
static Color BROWN
           
static Color BUILDING_FLOOR
           
static Color BUILDING_WALL
           
static Color BURLYWOOD
           
static Color BURNTWOOD
           
static Color BUSHES
           
static Color CADETBLUE
           
static Color CHARTREUSE
           
static Color CHOCOLATE
           
static Color CLIFFS
           
static Color CORAL
           
static Color CORNFLOWERBLUE
           
static Color CORNSILK
           
static Color CRIMSON
           
static Color CYAN
           
static Color DARK_PIER
           
static Color DARKBLUE
           
static Color DARKCYAN
           
static Color DARKGOLDENROD
           
static Color DARKGRAY
           
static Color DARKGREEN
           
static Color DARKKHAKI
           
static Color DARKMAGENTA
           
static Color DARKOLIVEGREEN
           
static Color DARKORANGE
           
static Color DARKORCHID
           
static Color DARKRED
           
static Color DARKSALMON
           
static Color DARKSEAGREEN
           
static Color DARKSLATEBLUE
           
static Color DARKSLATEGRAY
           
static Color DARKTURQUOISE
           
static Color DARKVIOLET
           
static Color DEEPPINK
           
static Color DEEPSKYBLUE
           
static Color DIMGRAY
           
static Color DODGERBLUE
           
static Color FIREBRICK
           
static Color FLORALWHITE
           
static Color FOREST
           
static Color FORESTGREEN
           
static Color FUCHSIA
           
static Color GAINSBORO
           
static Color GHOSTWHITE
           
static Color GOLD
           
static Color GOLDENROD
           
static Color GRASS
           
static Color GRAY
           
static Color GREEN
           
static Color GREENYELLOW
           
static Color HIGH_ROCKS
           
static Color HONEYDEW
           
static Color HOTPINK
           
static Color INDIANRED
           
static Color INDIGO
           
static Color IVORY
           
static Color KHAKI
           
static Color LAVA
           
static Color LAVENDER
           
static Color LAVENDERBLUSH
           
static Color LAWNGREEN
           
static Color LEMONCHIFFON
           
static Color LESSNEARBLACK
           
static Color LIGHTBLUE
           
static Color LIGHTCORAL
           
static Color LIGHTCYAN
           
static Color LIGHTGOLDENRODYELLOW
           
static Color LIGHTGREEN
           
static Color LIGHTGREY
           
static Color LIGHTPINK
           
static Color LIGHTSALMON
           
static Color LIGHTSEAGREEN
           
static Color LIGHTSKYBLUE
           
static Color LIGHTSLATEGRAY
           
static Color LIGHTSTEELBLUE
           
static Color LIGHTYELLOW
           
static Color LIME
           
static Color LIMEGREEN
           
static Color LINEN
           
static Color LOW_ROCKS
           
static Color MAGENTA
           
static Color MAROON
           
static Color MEDIUMAQUAMARINE
           
static Color MEDIUMBLUE
           
static Color MEDIUMORCHID
           
static Color MEDIUMPURPLE
           
static Color MEDIUMSEAGREEN
           
static Color MEDIUMSLATEBLUE
           
static Color MEDIUMSPRINGGREEN
           
static Color MEDIUMTURQUOISE
           
static Color MEDIUMVIOLETRED
           
static Color MIDNIGHTBLUE
           
static Color MINTCREAM
           
static Color MISTYROSE
           
static Color MOCCASIN
           
static Color MUD
           
static Color NAVAJOWHITE
           
static Color NAVY
           
static Color NEARBLACK
           
static Color NONE
          No color.
static Color OCEAN
           
static Color OLDLACE
           
static Color OLIVE
           
static Color OLIVEDRAB
           
static Color ORANGE
           
static Color ORANGERED
           
static Color ORCHID
           
static Color PALEGOLDENROD
           
static Color PALEGREEN
           
static Color PALETURQUOISE
           
static Color PALEVIOLETRED
           
static Color PAPAYAWHIP
           
static Color PEACHPUFF
           
static Color PERU
           
static Color PIER
           
static Color PINK
           
static Color PLUM
           
static Color POWDERBLUE
           
static Color PURPLE
           
static Color RED
           
static Color ROSYBROWN
           
static Color ROYALBLUE
           
static Color SADDLEBROWN
           
static Color SALMON
           
static Color SAND
           
static Color SANDYBROWN
           
static Color SEAGREEN
           
static Color SEASHELL
           
static Color SIENNA
           
static Color SILVER
           
static Color SKYBLUE
           
static Color SLATEBLUE
           
static Color SLATEGRAY
           
static Color SNOW
           
static Color SPRINGGREEN
           
static Color STEELBLUE
           
static Color SURF
           
static Color TAN
           
static Color TEAL
           
static Color THISTLE
           
static Color TOMATO
           
static Color TURQUOISE
           
static Color VERYBLACK
           
static Color VIOLET
           
static Color WAVES
           
static Color WHEAT
           
static Color WHITE
           
static Color WHITESMOKE
           
static Color WOOD_PILING
           
static Color YELLOW
           
static Color YELLOWGREEN
           
 
Constructor Summary
Color(int red, int green, int blue)
           
Color(java.lang.String name, java.lang.String color)
           
 
Method Summary
static Color byName(java.lang.String name)
           
 boolean equals(java.lang.Object obj)
           
 int getBlue()
           
 Color getBurntColor()
           
 Color getFrozenColor()
           
 int getGreen()
           
 java.lang.String getName()
           
 int getRed()
           
static Color random()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALICEBLUE

public static final Color ALICEBLUE

ANTIQUEWHITE

public static final Color ANTIQUEWHITE

AQUA

public static final Color AQUA

AQUAMARINE

public static final Color AQUAMARINE

AZURE

public static final Color AZURE

BARELY_BUILDING_WALL

public static final Color BARELY_BUILDING_WALL

BEIGE

public static final Color BEIGE

BISQUE

public static final Color BISQUE

BLACK

public static final Color BLACK

BLANCHEDALMOND

public static final Color BLANCHEDALMOND

BLUE

public static final Color BLUE

BLUEVIOLET

public static final Color BLUEVIOLET

BROWN

public static final Color BROWN

BUILDING_FLOOR

public static final Color BUILDING_FLOOR

BUILDING_WALL

public static final Color BUILDING_WALL

BURLYWOOD

public static final Color BURLYWOOD

BURNTWOOD

public static final Color BURNTWOOD

BUSHES

public static final Color BUSHES

CADETBLUE

public static final Color CADETBLUE

CHARTREUSE

public static final Color CHARTREUSE

CHOCOLATE

public static final Color CHOCOLATE

CLIFFS

public static final Color CLIFFS

CORAL

public static final Color CORAL

CORNFLOWERBLUE

public static final Color CORNFLOWERBLUE

CORNSILK

public static final Color CORNSILK

CRIMSON

public static final Color CRIMSON

CYAN

public static final Color CYAN

DARK_PIER

public static final Color DARK_PIER

DARKBLUE

public static final Color DARKBLUE

DARKCYAN

public static final Color DARKCYAN

DARKGOLDENROD

public static final Color DARKGOLDENROD

DARKGRAY

public static final Color DARKGRAY

DARKGREEN

public static final Color DARKGREEN

DARKKHAKI

public static final Color DARKKHAKI

DARKMAGENTA

public static final Color DARKMAGENTA

DARKOLIVEGREEN

public static final Color DARKOLIVEGREEN

DARKORANGE

public static final Color DARKORANGE

DARKORCHID

public static final Color DARKORCHID

DARKRED

public static final Color DARKRED

DARKSALMON

public static final Color DARKSALMON

DARKSEAGREEN

public static final Color DARKSEAGREEN

DARKSLATEBLUE

public static final Color DARKSLATEBLUE

DARKSLATEGRAY

public static final Color DARKSLATEGRAY

DARKTURQUOISE

public static final Color DARKTURQUOISE

DARKVIOLET

public static final Color DARKVIOLET

DEEPPINK

public static final Color DEEPPINK

DEEPSKYBLUE

public static final Color DEEPSKYBLUE

DIMGRAY

public static final Color DIMGRAY

DODGERBLUE

public static final Color DODGERBLUE

FIREBRICK

public static final Color FIREBRICK

FLORALWHITE

public static final Color FLORALWHITE

FOREST

public static final Color FOREST

FORESTGREEN

public static final Color FORESTGREEN

FUCHSIA

public static final Color FUCHSIA

GAINSBORO

public static final Color GAINSBORO

GHOSTWHITE

public static final Color GHOSTWHITE

GOLD

public static final Color GOLD

GOLDENROD

public static final Color GOLDENROD

GRASS

public static final Color GRASS

GRAY

public static final Color GRAY

GREEN

public static final Color GREEN

GREENYELLOW

public static final Color GREENYELLOW

HIGH_ROCKS

public static final Color HIGH_ROCKS

HONEYDEW

public static final Color HONEYDEW

HOTPINK

public static final Color HOTPINK

INDIANRED

public static final Color INDIANRED

INDIGO

public static final Color INDIGO

IVORY

public static final Color IVORY

KHAKI

public static final Color KHAKI

LAVA

public static final Color LAVA

LAVENDER

public static final Color LAVENDER

LAVENDERBLUSH

public static final Color LAVENDERBLUSH

LAWNGREEN

public static final Color LAWNGREEN

LEMONCHIFFON

public static final Color LEMONCHIFFON

LESSNEARBLACK

public static final Color LESSNEARBLACK

LIGHTBLUE

public static final Color LIGHTBLUE

LIGHTCORAL

public static final Color LIGHTCORAL

LIGHTCYAN

public static final Color LIGHTCYAN

LIGHTGOLDENRODYELLOW

public static final Color LIGHTGOLDENRODYELLOW

LIGHTGREEN

public static final Color LIGHTGREEN

LIGHTGREY

public static final Color LIGHTGREY

LIGHTPINK

public static final Color LIGHTPINK

LIGHTSALMON

public static final Color LIGHTSALMON

LIGHTSEAGREEN

public static final Color LIGHTSEAGREEN

LIGHTSKYBLUE

public static final Color LIGHTSKYBLUE

LIGHTSLATEGRAY

public static final Color LIGHTSLATEGRAY

LIGHTSTEELBLUE

public static final Color LIGHTSTEELBLUE

LIGHTYELLOW

public static final Color LIGHTYELLOW

LIME

public static final Color LIME

LIMEGREEN

public static final Color LIMEGREEN

LINEN

public static final Color LINEN

LOW_ROCKS

public static final Color LOW_ROCKS

MAGENTA

public static final Color MAGENTA

MAROON

public static final Color MAROON

MEDIUMAQUAMARINE

public static final Color MEDIUMAQUAMARINE

MEDIUMBLUE

public static final Color MEDIUMBLUE

MEDIUMORCHID

public static final Color MEDIUMORCHID

MEDIUMPURPLE

public static final Color MEDIUMPURPLE

MEDIUMSEAGREEN

public static final Color MEDIUMSEAGREEN

MEDIUMSLATEBLUE

public static final Color MEDIUMSLATEBLUE

MEDIUMSPRINGGREEN

public static final Color MEDIUMSPRINGGREEN

MEDIUMTURQUOISE

public static final Color MEDIUMTURQUOISE

MEDIUMVIOLETRED

public static final Color MEDIUMVIOLETRED

MIDNIGHTBLUE

public static final Color MIDNIGHTBLUE

MINTCREAM

public static final Color MINTCREAM

MISTYROSE

public static final Color MISTYROSE

MOCCASIN

public static final Color MOCCASIN

MUD

public static final Color MUD

NAVAJOWHITE

public static final Color NAVAJOWHITE

NAVY

public static final Color NAVY

NEARBLACK

public static final Color NEARBLACK

NONE

public static final Color NONE
No color. A null object pattern. Declaring this color for items that take a color, but don't use it, helps to circumvent examining the entire board for a color that is known to be a no-op.


OCEAN

public static final Color OCEAN

OLDLACE

public static final Color OLDLACE

OLIVE

public static final Color OLIVE

OLIVEDRAB

public static final Color OLIVEDRAB

ORANGE

public static final Color ORANGE

ORANGERED

public static final Color ORANGERED

ORCHID

public static final Color ORCHID

PALEGOLDENROD

public static final Color PALEGOLDENROD

PALEGREEN

public static final Color PALEGREEN

PALETURQUOISE

public static final Color PALETURQUOISE

PALEVIOLETRED

public static final Color PALEVIOLETRED

PAPAYAWHIP

public static final Color PAPAYAWHIP

PEACHPUFF

public static final Color PEACHPUFF

PERU

public static final Color PERU

PIER

public static final Color PIER

PINK

public static final Color PINK

PLUM

public static final Color PLUM

POWDERBLUE

public static final Color POWDERBLUE

PURPLE

public static final Color PURPLE

RED

public static final Color RED

ROSYBROWN

public static final Color ROSYBROWN

ROYALBLUE

public static final Color ROYALBLUE

SADDLEBROWN

public static final Color SADDLEBROWN

SALMON

public static final Color SALMON

SAND

public static final Color SAND

SANDYBROWN

public static final Color SANDYBROWN

SEAGREEN

public static final Color SEAGREEN

SEASHELL

public static final Color SEASHELL

SIENNA

public static final Color SIENNA

SILVER

public static final Color SILVER

SKYBLUE

public static final Color SKYBLUE

SLATEBLUE

public static final Color SLATEBLUE

SLATEGRAY

public static final Color SLATEGRAY

SNOW

public static final Color SNOW

SPRINGGREEN

public static final Color SPRINGGREEN

STEELBLUE

public static final Color STEELBLUE

SURF

public static final Color SURF

TAN

public static final Color TAN

TEAL

public static final Color TEAL

THISTLE

public static final Color THISTLE

TOMATO

public static final Color TOMATO

TURQUOISE

public static final Color TURQUOISE

VERYBLACK

public static final Color VERYBLACK

VIOLET

public static final Color VIOLET

WAVES

public static final Color WAVES

WHEAT

public static final Color WHEAT

WHITE

public static final Color WHITE

WHITESMOKE

public static final Color WHITESMOKE

WOOD_PILING

public static final Color WOOD_PILING

YELLOW

public static final Color YELLOW

YELLOWGREEN

public static final Color YELLOWGREEN
Constructor Detail

Color

public Color(int red,
             int green,
             int blue)

Color

public Color(java.lang.String name,
             java.lang.String color)
Method Detail

byName

public static Color byName(java.lang.String name)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getBlue

public int getBlue()

getBurntColor

public Color getBurntColor()

getFrozenColor

public Color getFrozenColor()

getGreen

public int getGreen()

getName

public java.lang.String getName()

getRed

public int getRed()

random

public static Color random()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

0.7

2009 Alx Dark