|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.darwinsys.graphics.ColorName
public class ColorName
A simple class for looking up Java AWT Color Names; I got tired
of including this code in every program that needed it!
(yes, this IS a hint to JavaSoft.).
TODO: Rewrite XColor from javasrc as a subclass of this.
| Field Summary | |
|---|---|
static java.awt.Color |
FALLBACK_COLOR
|
| Constructor Summary | |
|---|---|
ColorName()
|
|
| Method Summary | |
|---|---|
static java.awt.Color |
getColor(java.lang.String name)
Lookup a given string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.awt.Color FALLBACK_COLOR
| Constructor Detail |
|---|
public ColorName()
| Method Detail |
|---|
public static java.awt.Color getColor(java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||