NGP
Interface Colorable

All Known Subinterfaces:
Container
All Known Implementing Classes:
Applet, Frame, Panel, Shape, Text

public interface Colorable

Specifies that all classes implementing it can have their color set and accessed. It also contains the constant for the default gray that a Java component uses.

Author:
Matt Chotin (mhc)
See Also:
java.awt.Color

Field Summary
static Color DEFAULT_GRAY
          The default color of Java components.
 
Method Summary
 Color getColor()
          Get the color of the implementing object.
 void setColor(Color c)
          Set the color of the implementing object.
 

Field Detail

DEFAULT_GRAY

public static final Color DEFAULT_GRAY
The default color of Java components.

Method Detail

setColor

public void setColor(Color c)
Set the color of the implementing object.

Parameters:
c - the color to set the Colorable
See Also:
getColor

getColor

public Color getColor()
Get the color of the implementing object.

Returns:
the color of the Colorable
See Also:
setColor