|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.synth.ColorType
public class ColorType
A typesafe enumeration of color types.
Field Summary | |
---|---|
static ColorType |
BACKGROUND
A constant used to identify the background color of a component. |
static ColorType |
FOCUS
A constant used to identify the focus color of a component. |
static ColorType |
FOREGROUND
A constant used to identify the foreground color of a component. |
static int |
MAX_COUNT
The maximum number of color types. |
static ColorType |
TEXT_BACKGROUND
A constant used to identify the background color of text of a component. |
static ColorType |
TEXT_FOREGROUND
A constant used to identify the foreground color of text of a component. |
Constructor Summary | |
---|---|
protected |
ColorType(String desc)
Creates a new Color color type with the specified
description. |
Method Summary | |
---|---|
int |
getID()
Returns the unique ID of the color type. |
String |
toString()
Returns the textual description of the color type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ColorType FOREGROUND
public static final ColorType BACKGROUND
public static final ColorType TEXT_FOREGROUND
public static final ColorType TEXT_BACKGROUND
public static final ColorType FOCUS
public static final int MAX_COUNT
Constructor Detail |
---|
protected ColorType(String desc)
Color
color type with the specified
description.
desc
- the textual description of the color typeMethod Detail |
---|
public final int getID()
public String toString()
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |