javax.swing.plaf.synth
public class ColorType extends Object
Since: 1.5
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.
|
Color
color type with the specified
description.
Parameters: desc the textual description of the color type
Returns: the unique ID of the color type
Returns: the textual description of the color type