|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--edu.kzoo.grid.display.ScaledDisplay
|
+--edu.kzoo.grid.display.ScaledImageDisplay
|
+--edu.kzoo.grid.display.PictureBlockDisplay
Grid Display Package:
A PictureBlockDisplay object displays a
PictureBlock object, or any object with a
pictureIcon method, as a picture in a grid.
| Constructor Summary | |
PictureBlockDisplay()
Constructs a display object that can display grid objects that have a pictureIcon method. |
|
| Method Summary | |
void |
draw(GridObject obj,
java.awt.Component comp,
java.awt.Graphics2D g2)
Draws a unit-length object using an image. |
| Methods inherited from class edu.kzoo.grid.display.ScaledImageDisplay |
getIcon, imageLoadedOK, setIcon |
| Methods inherited from class edu.kzoo.grid.display.ScaledDisplay |
addDecorator, adjust, draw, removeDecorator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PictureBlockDisplay()
pictureIcon method.
| Method Detail |
public void draw(GridObject obj,
java.awt.Component comp,
java.awt.Graphics2D g2)
adjust method to make further
adjustments (for example, rotating and tinting
the image) as appropriate.
(Precondition: obj has a pictureIcon method.)
draw in class ScaledImageDisplayobj - object we want to drawcomp - component on which to drawg2 - drawing surface
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||