CSE115.Gumball
Class Gumball
java.lang.Object
NGP.Graphics.Shape
NGP.Graphics.RectangularShape
NGP.Graphics.FilledRectangularShape
NGP.Graphics.FilledEllipse
CSE115.Gumball.Gumball
- All Implemented Interfaces:
- Colorable, EventListener, Graphic, Locatable, MouseListener, MouseMotionListener, Reactor, Rotatable, Sizeable
- public class Gumball
- extends FilledEllipse
A gumball that has the capability of falling down and across the
screen.
- Author:
- Carl Alphonce (alphonce)
Based heavily on the RainDropShape class, authored by:, Matt Chotin (mhc), Michelle Neuringer
|
Method Summary |
void |
fall()
Causes the Gumball to fall a small amount down and across the screen. |
void |
setSize(GumballSize size)
|
void |
update()
Causes the Gumball to fall a small amount down and across the screen. |
| 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_bhv
protected GumballFallingBehavior _bhv
Gumball
public Gumball()
setSize
public void setSize(GumballSize size)
update
public void update()
- Causes the Gumball to fall a small amount down and across the screen.
fall
public void fall()
- Causes the Gumball to fall a small amount down and across the screen.