|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectEyeBall
public class EyeBall
An EyeBall is intended to be inside an Eye.
| Field Summary | |
|---|---|
protected Color |
eyeBallColor
Color of this eyeball. |
protected Point |
eyeBallPosition
Position of this eyeball, relative to the eye (in pixels). |
protected int |
eyeBallRadius
Radius of this eyeball. |
| Constructor Summary | |
|---|---|
EyeBall(Color eyeBallColor)
Construct an eyeball with the given color. |
|
| Method Summary | |
|---|---|
void |
draw(Graphics graphics)
Draw this eyeball at its current position. |
int |
getRadius()
Return the radius of this EyeBall. |
void |
look(int x,
int y)
Move the eyeball to the given position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Color eyeBallColor
protected Point eyeBallPosition
protected int eyeBallRadius
| Constructor Detail |
|---|
public EyeBall(Color eyeBallColor)
eyeBallColor - Color to which to set the eyeBall.| Method Detail |
|---|
public void draw(Graphics graphics)
graphics - Graphics object onto which to draw.
public void look(int x,
int y)
x - x-position to which to move the center of the eyeball, relative to the eye.y - y-position to which to move the center of the eyeball, relative to the eye.public int getRadius()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||