csa120.shape
Interface FillableShapeOrGroup

All Superinterfaces:
Drawable, ShapeOrGroup
All Known Implementing Classes:
FillableShape, Group

public interface FillableShapeOrGroup
extends ShapeOrGroup

This interface includes behavior allowed for either FillableShapes or Groups


Method Summary
 void setFillColor(Color c)
          Sets the current color for the interior.
 void setFillColor(String cName)
          Sets the current color for the interior based upon a list of several known color names from java.awt.Color.
 void setFilled(boolean fill)
          Sets the current state of fillable flag
 
Methods inherited from interface csa120.shape.ShapeOrGroup
move, setBorderColor, setBorderColor, setBorderThickness, setDepth
 
Methods inherited from interface csa120.shape.Drawable
draw, draw, getDepth
 

Method Detail

setFilled

public void setFilled(boolean fill)
Sets the current state of fillable flag

Parameters:
fill - the new desired setting

setFillColor

public void setFillColor(Color c)
Sets the current color for the interior. Note that this setting effects the drawing of the shape only when the 'filled' flag is true.

Parameters:
c - the new color

setFillColor

public void setFillColor(String cName)
Sets the current color for the interior based upon a list of several known color names from java.awt.Color. (e.g., "black", "blue", "cyan", ...) Note that this setting effects the drawing only when the 'filled' flag is true

Parameters:
cName - the name of the desired new color