|
|||||||||||
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.ColorBlockDisplay
Grid Display Package:
A ColorBlockDisplay
object displays a
ColorBlock
object, or any object with a
color
method, as a color block in a grid.
Constructor Summary | |
ColorBlockDisplay()
|
Method Summary | |
void |
draw(GridObject obj,
java.awt.Component comp,
java.awt.Graphics2D g2)
Draw the given object as a block of color. |
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 ColorBlockDisplay()
Method Detail |
public void draw(GridObject obj, java.awt.Component comp, java.awt.Graphics2D g2)
obj
has a color
method.)
draw
in class ScaledDisplay
obj
- 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 |