|
|||||||||||
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.TextCell
Grid Container Package:
A TextCell
object encapsulates text to go in a
cell in a grid.
Grid
,
Location
Constructor Summary | |
TextCell(java.lang.String text)
Constructs a text cell with the specified text and a default color of black. |
|
TextCell(java.lang.String text,
java.awt.Color textColor)
Constructs a text cell with the specified text and color. |
|
TextCell(java.lang.String text,
java.awt.Color textColor,
Grid grid,
Location loc)
Constructs a text cell at a given location of a grid with the specified text and color. |
|
TextCell(java.lang.String text,
Grid grid,
Location loc)
Constructs a text cell at a given location of a grid with the specified text and a default color of black. |
Method Summary | |
java.awt.Color |
color()
Gets color of text. |
java.lang.String |
text()
Gets text in this text cell. |
Methods inherited from class edu.kzoo.grid.GridObject |
act, addToGrid, changeLocation, grid, isInAGrid, location, removeFromGrid, theGridObjectInvariantHolds, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TextCell(java.lang.String text)
text
- the text to go in this cellpublic TextCell(java.lang.String text, java.awt.Color textColor)
text
- the text to go in this celltextColor
- the color of the textpublic TextCell(java.lang.String text, Grid grid, Location loc)
text
- the text to go in this cellgrid
- the grid containing this text cellloc
- the location of the text cell in grid
public TextCell(java.lang.String text, java.awt.Color textColor, Grid grid, Location loc)
text
- the text to go in this celltextColor
- the color of the textgrid
- the grid containing this text cellloc
- the location of the text cell in grid
Method Detail |
public java.lang.String text()
public java.awt.Color color()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |