|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Color
org.vizzini.ui.WheelColor
public class WheelColor
Provides color wheel colors, grayscale colors, and utility methods.
Field Summary | |
---|---|
static WheelColor |
ALUMINUM
Aluminum color constant. |
static WheelColor |
BLACK
Black color constant. |
static WheelColor |
BLUE
Blue color constant. |
static WheelColor |
BLUE_GREEN
Cyan (blue-green) color constant. |
static WheelColor |
BLUE_PURPLE
Blue-purple color constant. |
static WheelColor |
BLUEBERRY
Blueberry (blue-purple) color constant. |
static WheelColor |
BROWN
Brown color constant. |
static WheelColor |
BURNT_ORANGE
Burnt-orange (red-orange) color constant. |
static WheelColor |
CANTALOUPE
Cantaloupe (yellow-orange) color constant. |
static WheelColor |
CYAN
Cyan (blue-green) color constant. |
static String |
GRAYSCALE
Gray scale color designator. |
static WheelColor |
GREEN
Green color constant. |
static WheelColor |
INDIGO
Indigo color constant. |
static WheelColor |
IRON
Iron color constant. |
static WheelColor |
LEAD
Lead color constant. |
static WheelColor |
LIME
Lime (yellow-green) color constant. |
static WheelColor |
MAGENTA
Magenta color constant. |
static WheelColor |
MAGNESIUM
Magnesium color constant. |
static WheelColor |
MAROON
Maroon color constant. |
static WheelColor |
MERCURY
Mercury color constant. |
static WheelColor |
NAVY
Navy color constant. |
static WheelColor |
NICKEL
Nickel (gray) color constant. |
static WheelColor |
OLIVE
Olive color constant. |
static WheelColor |
ORANGE
Orange color constant. |
static String |
PRIMARY
Primary color designator. |
static WheelColor |
PURPLE
Purple color constant. |
static WheelColor |
RASPBERRY
Raspberry (red-purple) color constant. |
static WheelColor |
RED
Red color constant. |
static WheelColor |
RED_ORANGE
Red-orange color constant. |
static WheelColor |
RED_PURPLE
Red-purple color constant. |
static String |
SECONDARY
Secondary color designator. |
static WheelColor |
SILVER
Silver (light gray) color constant. |
static WheelColor |
STEEL
Steel color constant. |
static WheelColor |
TEAL
Teal color constant. |
static String |
TERTIARY
Tertiary color designator. |
static WheelColor |
TIN
Tin (gray) color constant. |
static WheelColor |
TRANSPARENT
Transparent color constant. |
static WheelColor |
TUNGSTEN
Tungsten color constant. |
static WheelColor |
VIOLET
Violet color constant. |
static WheelColor |
WHITE
White color constant. |
static WheelColor |
YELLOW
Yellow color constant. |
static WheelColor |
YELLOW_GREEN
Yellow-green color constant. |
static WheelColor |
YELLOW_ORANGE
Yellow-orange color constant. |
Fields inherited from class java.awt.Color |
---|
black, blue, cyan, DARK_GRAY, darkGray, gray, GRAY, green, LIGHT_GRAY, lightGray, magenta, orange, pink, PINK, red, white, yellow |
Fields inherited from interface java.awt.Transparency |
---|
BITMASK, OPAQUE, TRANSLUCENT |
Constructor Summary | |
---|---|
WheelColor(String name,
Color color,
String type)
Construct this object with the given parameters. |
|
WheelColor(String name,
Color color,
String type,
String alternateName)
Construct this object with the given parameters. |
|
WheelColor(String name,
int red,
int green,
int blue)
Construct this object with the given parameters. |
|
WheelColor(String name,
int red,
int green,
int blue,
int alpha,
String type,
String alternateName)
Construct this object with the given parameters. |
|
WheelColor(String name,
int red,
int green,
int blue,
String type)
Construct this object with the given parameters. |
|
WheelColor(String name,
int red,
int green,
int blue,
String type,
String alternateName)
Construct this object with the given parameters. |
Method Summary | |
---|---|
static Iterator |
colorIterator()
Return an iterator over all the colors known to this class. |
int |
compareTo(Object obj)
Return -1,0, or 1 if this is less than, equal to, or greater than the given object. |
static WheelColor |
get(String name)
Return the color with the given name. |
String |
getAlternateName()
Return the alternate name. |
WheelColor[] |
getAnalogous()
Return the analogous colors. |
static WheelColor[] |
getColorSpectrumColors()
Return an array of colors representing the color spectrum. |
static WheelColor[] |
getColorWheelColors()
Return an array of colors representing the color wheel, starting with yellow. |
WheelColor |
getComplement()
Return the complementary color. |
static WheelColor[] |
getGrayscaleColors()
Return an array of grayscale colors, starting with black. |
String |
getName()
Return the name. |
static Map |
getPrimaryColors()
Return an array of primary colors. |
static Map |
getSecondaryColors()
Return an array of secondary colors. |
static Map |
getTertiaryColors()
Return an array of tertiary colors. |
String |
getType()
Return the type. |
void |
setAlternateName(String alternateName)
Set the alternate color name. |
void |
setAnalogous(WheelColor color0,
WheelColor color1)
Set the analogous colors. |
void |
setComplement(WheelColor color)
Set the complementary color. |
void |
setName(String name)
Set the color name. |
void |
setType(String type)
Set the color type. |
String |
toString()
Return a string representation of this object. |
Methods inherited from class java.awt.Color |
---|
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PRIMARY
public static final String SECONDARY
public static final String TERTIARY
public static final String GRAYSCALE
public static final WheelColor RED
public static final WheelColor YELLOW
public static final WheelColor BLUE
public static final WheelColor GREEN
public static final WheelColor ORANGE
public static final WheelColor PURPLE
public static final WheelColor YELLOW_ORANGE
public static final WheelColor RED_ORANGE
public static final WheelColor RED_PURPLE
public static final WheelColor BLUE_PURPLE
public static final WheelColor BLUE_GREEN
public static final WheelColor YELLOW_GREEN
public static final WheelColor CANTALOUPE
public static final WheelColor BURNT_ORANGE
public static final WheelColor RASPBERRY
public static final WheelColor BLUEBERRY
public static final WheelColor CYAN
public static final WheelColor LIME
public static final WheelColor BROWN
public static final WheelColor MAGENTA
public static final WheelColor MAROON
public static final WheelColor OLIVE
public static final WheelColor NAVY
public static final WheelColor TEAL
public static final WheelColor INDIGO
public static final WheelColor VIOLET
public static final WheelColor BLACK
public static final WheelColor LEAD
public static final WheelColor TUNGSTEN
public static final WheelColor IRON
public static final WheelColor STEEL
public static final WheelColor TIN
public static final WheelColor NICKEL
public static final WheelColor ALUMINUM
public static final WheelColor MAGNESIUM
public static final WheelColor SILVER
public static final WheelColor MERCURY
public static final WheelColor WHITE
public static final WheelColor TRANSPARENT
Constructor Detail |
---|
public WheelColor(String name, Color color, String type)
public WheelColor(String name, int red, int green, int blue)
public WheelColor(String name, Color color, String type, String alternateName)
public WheelColor(String name, int red, int green, int blue, String type)
public WheelColor(String name, int red, int green, int blue, String type, String alternateName)
public WheelColor(String name, int red, int green, int blue, int alpha, String type, String alternateName)
Method Detail |
---|
public static Iterator colorIterator()
public static WheelColor get(String name)
public static WheelColor[] getColorSpectrumColors()
public static WheelColor[] getColorWheelColors()
public static WheelColor[] getGrayscaleColors()
public static Map getPrimaryColors()
public static Map getSecondaryColors()
public static Map getTertiaryColors()
public int compareTo(Object obj)
compareTo
in interface Comparable
public String getAlternateName()
public WheelColor[] getAnalogous()
public WheelColor getComplement()
public String getName()
public String getType()
public void setAlternateName(String alternateName)
public void setAnalogous(WheelColor color0, WheelColor color1)
public void setComplement(WheelColor color)
public void setName(String name)
public void setType(String type)
type
- One of PRIMARY_COLOR, SECONDARY_COLOR, or TERTIARY_COLOR.public String toString()
toString
in class Color
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |