public class ColorBlockDisplay extends ScaledDisplay
ColorBlockDisplay object displays a
ColorBlock object, or any object with a
color method, as a color block in a grid.| Constructor and Description |
|---|
ColorBlockDisplay() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(GridObject obj,
java.awt.Component comp,
java.awt.Graphics2D g2)
Draw the given object as a block of color.
|
addDecorator, adjust, draw, removeDecoratorpublic void draw(GridObject obj, java.awt.Component comp, java.awt.Graphics2D g2)
obj has a color method.)draw in class ScaledDisplayobj - object we want to drawcomp - component on which to drawg2 - drawing surface