CSE115.Faces
Class Eye

java.lang.Object
  extended by NGP.Graphics.Shape
      extended by NGP.Graphics.RectangularShape
          extended by NGP.Graphics.FilledRectangularShape
              extended by NGP.Graphics.FilledEllipse
                  extended by CSE115.Faces.Eye
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener, Colorable, Graphic, Locatable, Reactor, Rotatable, Sizeable

public class Eye
extends FilledEllipse


Field Summary
 
Fields inherited from interface NGP.Colorable
DEFAULT_GRAY
 
Constructor Summary
Eye(DrawingPanel dp)
           
 
Method Summary
 void close()
           
 void createLashes()
           
 void makeLarge()
           
 void makeNormal()
           
 void open()
           
 void openWide()
           
 void roll(int increment)
           
 void setDimension(Dimension d)
          Set the dimensions of this RectangularShape.
 void setLocation(Point p)
          Set the location of this RectangularShape
 
Methods inherited from class NGP.Graphics.FilledRectangularShape
actualPaint
 
Methods inherited from class NGP.Graphics.RectangularShape
getDimension, getLocation, setCenterLocation, unwrap, wrap
 
Methods inherited from class NGP.Graphics.Shape
contains, drag, getBounds, getCenterLocation, getColor, getDrawingPanel, getRotation, hide, intersects, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paint, react, setColor, setDrawingPanel, setRotation, show
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Eye

public Eye(DrawingPanel dp)
Method Detail

close

public void close()

makeNormal

public void makeNormal()

makeLarge

public void makeLarge()

createLashes

public void createLashes()

setDimension

public void setDimension(Dimension d)
Description copied from class: NGP.Graphics.RectangularShape
Set the dimensions of this RectangularShape.

Specified by:
setDimension in interface Sizeable
Overrides:
setDimension in class RectangularShape
Parameters:
d - the new Dimension of this RectangularShape
See Also:
getDimension

setLocation

public void setLocation(Point p)
Description copied from class: NGP.Graphics.RectangularShape
Set the location of this RectangularShape

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

open

public void open()

openWide

public void openWide()

roll

public void roll(int increment)