moka.x
Interface Colored

All Known Implementing Classes:
Bevel, Label

public interface Colored

The Colored interface provides methods used to deal with colored components.

Since:
MDK1.0a

Field Summary
static short bgColor
          The background color for this component.
static short fgColor
          The foreground color for this component.
 
Method Summary
 void setBgColor(short color)
          Sets the background color of the component.
 void setFgColor(short color)
          Sets the foreground color of the component.
 

Field Detail

bgColor

public static final short bgColor
The background color for this component. Should be only read.

See Also:
Constant Field Values

fgColor

public static final short fgColor
The foreground color for this component. Should be only read.

See Also:
Constant Field Values
Method Detail

setBgColor

public void setBgColor(short color)
Sets the background color of the component.

Parameters:
color - The background color of the component.

setFgColor

public void setFgColor(short color)
Sets the foreground color of the component.

Parameters:
color - The foreground color of the component.