|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--background.Background | +--background.Tree
A background representing a tree
Field Summary |
Fields inherited from class background.Background |
externalName, height, width, xCoor, yCoor |
Constructor Summary | |
Tree(double x,
double y,
double w,
double h)
Initialize attributes for this Tree |
Method Summary | |
void |
draw(java.awt.Graphics2D g)
Use the graphics system to draw the shapes representing this Tree |
Methods inherited from class background.Background |
getHeight, getName, getWidth, getX, getY, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Tree(double x, double y, double w, double h)
x
- x-coordinate of this Tree (leftmost position of background)y
- y-coordinate of this Tree (uppermost position of background)w
- width of this Treeh
- height of this TreeMethod Detail |
public void draw(java.awt.Graphics2D g)
draw
in class Background
g
- the graphics system to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |