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

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.

 
Usage: Color color = gobj.getFillColor(); 
Returns: The color used to display the filled region of this object
 


boolean isFilled()

Returns whether this object is filled.

 
Usage: if (gobj.isFilled()) . . . 
Returns: The color used to display the object
 


void setFillColor(Color color)

Sets the color used to display the filled region of this object.

 
Usage: gobj.setFillColor(color); 
Parameter: 
color  The color used to display the filled region of this object
 


void setFilled(boolean fill)

Sets whether this object is filled.

 
Usage: gobj.setFilled(fill); 
Parameter: 
fill  true if the object should be filled, false for an outline