|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlab3lib.faces.Face
public class Face
A face that can react when clicked upon.
| Constructor Summary | |
|---|---|
Face()
Creates a new instance of Face |
|
| Method Summary | |
|---|---|
void |
closeEyes()
Tell the face to close its eyes. |
Dimension |
getDimension()
Get the current dimension of the face. |
Point |
getLocation()
Get the location where the face is. |
void |
openEyes()
Tell the face to open its eyes. |
void |
rollEyes()
Tell the face to roll its eyes. |
void |
setColor(Color newColor)
Sets the color of the face. |
void |
setDimension(Dimension d)
Change the dimension of the face. |
void |
setLocation(Point p)
Change the location of the face. |
void |
surprise()
Tell the face to look surprised. |
void |
yawn()
Tell the face to yawn. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Face()
| Method Detail |
|---|
public void setColor(Color newColor)
newColor - The color to set the face to.public void rollEyes()
public void surprise()
public void yawn()
public void closeEyes()
public void openEyes()
public void setLocation(Point p)
p - The upper left hand corner of where the face should be.public Point getLocation()
public void setDimension(Dimension d)
d - The new dimension for the face.public Dimension getDimension()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||