|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.kzoo.grid.GridObject | +--edu.kzoo.grid.ColorBlock
Grid Container Package:
A ColorBlock
object encapsulates a color for a colored
cell in a grid.
Grid
,
Location
Constructor Summary | |
ColorBlock(java.awt.Color colorValue)
Constructs a color block with the specified color. |
|
ColorBlock(java.awt.Color colorValue,
Grid grid,
Location loc)
Constructs a color block with the specified color. |
Method Summary | |
java.awt.Color |
color()
Gets color value for color block. |
java.lang.String |
toString()
Returns a string representation of the color. |
Methods inherited from class edu.kzoo.grid.GridObject |
act, addToGrid, changeLocation, grid, isInAGrid, location, removeFromGrid, theGridObjectInvariantHolds |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ColorBlock(java.awt.Color colorValue)
colorValue
- the color that fills this color blockpublic ColorBlock(java.awt.Color colorValue, Grid grid, Location loc)
colorValue
- the color that fills this color blockgrid
- the grid containing this color blockloc
- the location of the color block in grid
Method Detail |
public java.awt.Color color()
public java.lang.String toString()
toString
in class GridObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |