|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Framework.Drawable
Simple interface used for all drawable classes. Every drawable object
requires a method to draw to a given BufferedImage, and a
method returning the background color used.
| Field Summary | |
|---|---|
static java.awt.Color |
bgColor
|
static java.awt.Color |
fgColor
|
static java.awt.Color[] |
palette
|
static java.util.Random |
random
|
| Method Summary | |
|---|---|
void |
draw(java.awt.image.BufferedImage drawTo)
Draws itself to the parameterized BufferedImage. |
boolean |
finished()
Sets the status of the rendering to completed. |
java.awt.Color |
getBackgroundColor()
Merely returns the background color for this Drawable. |
void |
setCompleted()
Sets the status of the rendering to completed. |
void |
setMouseEvent(java.awt.event.MouseEvent e)
Allows all implementers to react to mouse events passed from the content class. |
| Field Detail |
|---|
static final java.awt.Color fgColor
static final java.awt.Color bgColor
static final java.awt.Color[] palette
static final java.util.Random random
| Method Detail |
|---|
void draw(java.awt.image.BufferedImage drawTo)
BufferedImage.
drawTo - a BufferedImage to draw to.java.awt.Color getBackgroundColor()
this Drawable.
Color of the background for
this Drawable.void setMouseEvent(java.awt.event.MouseEvent e)
e - The MouseEvent that the object is to respond
to.boolean finished()
void setCompleted()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||