cs015.SP
Class RainDropShape

java.lang.Object
  extended byNGP.Graphics.Shape
      extended byNGP.Graphics.RectangularShape
          extended byNGP.Graphics.FilledRectangularShape
              extended byNGP.Graphics.FilledEllipse
                  extended bycs015.SP.RainDropShape
All Implemented Interfaces:
Colorable, java.util.EventListener, Graphic, Locatable, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, Reactor, Rotatable, Sizeable
Direct Known Subclasses:
CloudDrop

public class RainDropShape
extends FilledEllipse

A raindrop that has the capability of falling down the screen.

Author:
Matt Chotin (mhc), Michelle Neuringer

Field Summary
protected  RainUpdateBehavior _bhv
           
 
Fields inherited from class NGP.Graphics.Shape
_awtShape, _dpanel
 
Fields inherited from interface NGP.Colorable
DEFAULT_GRAY
 
Constructor Summary
RainDropShape()
           
 
Method Summary
 void fall()
          Causes the RainDropShape to fall a small amount down the screen.
 void update()
          Causes the RainDropShape to fall a small amount down the screen.
 
Methods inherited from class NGP.Graphics.FilledRectangularShape
actualPaint
 
Methods inherited from class NGP.Graphics.RectangularShape
getDimension, getLocation, setCenterLocation, setDimension, setLocation, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_bhv

protected RainUpdateBehavior _bhv
Constructor Detail

RainDropShape

public RainDropShape()
Method Detail

update

public void update()
Causes the RainDropShape to fall a small amount down the screen.


fall

public void fall()
Causes the RainDropShape to fall a small amount down the screen.