|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcse115.graphics.AbstractGraphic
cse115.graphics.AbstractColorableGraphic
cse115.graphics.Ellipse
lab3lib.faces.Eye
public class Eye
An eye that can be put on a face. Based on the Eye written by Carl Alphonce - ask him about the behaviors.
| Constructor Summary | |
|---|---|
Eye(Face myFace)
Creates a new instance of Eye |
|
| Method Summary | |
|---|---|
void |
close()
Tell the eye to close |
void |
open()
Tell the eye to open |
void |
openWide()
Tell the eye to open wide (become larger). |
void |
roll(int increment)
Tell this eye to roll. |
void |
setDimension(Dimension d)
Changes the Dimension of this Graphic |
void |
setLocation(Point p)
Changes the location of this graphic |
| Methods inherited from class cse115.graphics.Ellipse |
|---|
actualPaint, getShape |
| Methods inherited from class cse115.graphics.AbstractColorableGraphic |
|---|
getColor, paint, setColor |
| Methods inherited from class cse115.graphics.AbstractGraphic |
|---|
addMouseListener, addMouseMotionListener, contains, getBounds, getCenterLocation, getContainer, getDimension, getLocation, getMouseListeners, getMouseMotionListeners, getRotation, intersects, move, rotate, setCenterLocation, setContainer, setRotation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface cse115.graphics.Graphic |
|---|
addMouseListener, addMouseMotionListener, contains, getBounds, getMouseListeners, getMouseMotionListeners, intersects, setContainer |
| Methods inherited from interface cse115.graphics.Sizeable |
|---|
getDimension |
| Methods inherited from interface cse115.graphics.CenterLocatable |
|---|
getCenterLocation, setCenterLocation |
| Methods inherited from interface cse115.graphics.Locatable |
|---|
getLocation, move |
| Methods inherited from interface cse115.graphics.Rotatable |
|---|
getRotation, rotate, setRotation |
| Constructor Detail |
|---|
public Eye(Face myFace)
myFace - The face the eye belongs to.| Method Detail |
|---|
public void setDimension(Dimension d)
AbstractGraphic
setDimension in interface SizeablesetDimension in class AbstractGraphicd - The new dimension for the eye.AbstractGraphic.setDimension(java.awt.Dimension)public void setLocation(Point p)
AbstractGraphic
setLocation in interface LocatablesetLocation in class AbstractGraphicp - The new point for the eye.AbstractGraphic.setLocation(java.awt.Point)public void roll(int increment)
increment - The amount in pixels the eye should roll for each animation.public void openWide()
public void close()
public void open()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||