gshute.gadgets
Class StandardColors
java.lang.Object
|
+--gshute.gadgets.StandardColors
- public class StandardColors
- extends java.lang.Object
Field Summary |
protected static java.util.Vector |
standardColorNames
standardColorNames is the vector of standard colors defined by the
Color class. |
protected static java.util.Hashtable |
standardColors
standardColors is the table for standard colors defined by the
Color class, keyed by name. |
Method Summary |
static java.awt.Color |
getColor(java.lang.String cName)
StandardColors.getColor(cName) returns the Color named by cName. |
static int |
getCount()
StandardColors.getCount() returns the number of standard color
defined by the Color class. |
static java.util.Enumeration |
getNames()
StandardColors.getNames() returns an Enumeration for the names of
the standard colors in the Color class. |
static void |
main(java.lang.String[] args)
main(args) displays the names of the colors defined by the Color
class and the value of toString() for each color. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
standardColorNames
protected static java.util.Vector standardColorNames
- standardColorNames is the vector of standard colors defined by the
Color class.
standardColors
protected static java.util.Hashtable standardColors
- standardColors is the table for standard colors defined by the
Color class, keyed by name.
StandardColors
public StandardColors()
getNames
public static java.util.Enumeration getNames()
- StandardColors.getNames() returns an Enumeration for the names of
the standard colors in the Color class. The iterated values need
to be coerced to type String.
getColor
public static java.awt.Color getColor(java.lang.String cName)
- StandardColors.getColor(cName) returns the Color named by cName.
If cName is not the name of a standard color in the Color class
then null is returned.
getCount
public static int getCount()
- StandardColors.getCount() returns the number of standard color
defined by the Color class.
main
public static void main(java.lang.String[] args)
- main(args) displays the names of the colors defined by the Color
class and the value of toString() for each color. The arguments
are ignored.