|
|||||||||||
| 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.PictureBlock
Grid Container Package:
A PictureBlock object encapsulates a picture (an image
read from a file) to be put in a cell in a grid.
Grid,
Location| Constructor Summary | |
PictureBlock(java.lang.String imageFilename,
java.lang.String description)
Constructs a picture block encapsulating the image in the specified file. |
|
PictureBlock(java.lang.String imageFilename,
java.lang.String description,
Grid grid,
Location loc)
Constructs a picture block encapsulating the image in the specified file. |
|
| Method Summary | |
javax.swing.ImageIcon |
pictureIcon()
Gets picture associated with this picture block. |
java.lang.String |
toString()
Returns the description of the picture provided to the constructor. |
| 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 PictureBlock(java.lang.String imageFilename,
java.lang.String description)
imageFilename - name of file containing imagedescription - description of this picture block object (used
by the toString method)
public PictureBlock(java.lang.String imageFilename,
java.lang.String description,
Grid grid,
Location loc)
imageFilename - name of file containing imagedescription - description of this picture block object (used
by the toString method)grid - the grid containing this picture blockloc - the location of the picture block in grid| Method Detail |
public javax.swing.ImageIcon pictureIcon()
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 | ||||||||||