CSE115.Faces
Class YawningFace

java.lang.Object
  extended by CSE115.Faces.YawningFace
All Implemented Interfaces:
Face, Locatable, Sizeable

public class YawningFace
extends Object
implements Locatable, Sizeable, Face


Constructor Summary
YawningFace()
           
 
Method Summary
 void closeEyes()
           
 Dimension getDimension()
          Get the dimensions of this Sizeable.
 Point getLocation()
          Get the location of this Locatable.
 void openEyes()
           
 void setDimension(Dimension d)
          Set the dimensions of this Sizeable.
 void setLocation(Point p)
          Set the location of this Locatable to the passed in Point.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YawningFace

public YawningFace()
Method Detail

setLocation

public void setLocation(Point p)
Description copied from interface: NGP.Locatable
Set the location of this Locatable to the passed in Point.

Specified by:
setLocation in interface Face
Specified by:
setLocation in interface Locatable
Parameters:
p - the new Point for this Locatable
See Also:
getLocation

getLocation

public Point getLocation()
Description copied from interface: NGP.Locatable
Get the location of this Locatable.

Specified by:
getLocation in interface Face
Specified by:
getLocation in interface Locatable
Returns:
the Point for this Locatable
See Also:
setLocation

setDimension

public void setDimension(Dimension d)
Description copied from interface: NGP.Sizeable
Set the dimensions of this Sizeable.

Specified by:
setDimension in interface Face
Specified by:
setDimension in interface Sizeable
Parameters:
d - the user-preferred Dimension of this Sizeable
See Also:
getDimension

getDimension

public Dimension getDimension()
Description copied from interface: NGP.Sizeable
Get the dimensions of this Sizeable.

Specified by:
getDimension in interface Face
Specified by:
getDimension in interface Sizeable
Returns:
the Dimension of this Sizeable
See Also:
setDimension

closeEyes

public void closeEyes()
Specified by:
closeEyes in interface Face

openEyes

public void openEyes()
Specified by:
openEyes in interface Face