acm.graphics
Interface GFillable

All Known Implementing Classes:
G3DRect, GArc, GOval, GPolygon, GRect, GRoundRect

public interface GFillable

Specifies the characteristics of a graphical object that supports filling.


Method Summary
 Color getFillColor()
          Returns the color used to display the filled region of this object.
 boolean isFilled()
          Returns whether this object is filled.
 void setFillColor(Color color)
          Sets the color used to display the filled region of this object.
 void setFilled(boolean fill)
          Sets whether this object is filled.
 

Method Detail

getFillColor

Color getFillColor()
Returns the color used to display the filled region of this object. If none has been set, getFillColor returns the color of the object.

Returns:
The color used to display the filled region of this object

isFilled

boolean isFilled()
Returns whether this object is filled.

Returns:
The color used to display the object

setFillColor

void setFillColor(Color color)
Sets the color used to display the filled region of this object.

Parameters:
color - The color used to display the filled region of this object

setFilled

void setFilled(boolean fill)
Sets whether this object is filled.

Parameters:
fill - true if the object should be filled, false for an outline