cs015.SP
Class CloudDrop

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

public class CloudDrop
extends RainDropShape

This class represents a single raindrop that falls from a cloud. Its color can be changed and it can be told to fall.

Author:
Michelle Neuringer (mjn)

Field Summary
 
Fields inherited from class cs015.SP.RainDropShape
_bhv
 
Fields inherited from class NGP.Graphics.Shape
_awtShape, _dpanel
 
Fields inherited from interface NGP.Colorable
DEFAULT_GRAY
 
Constructor Summary
CloudDrop()
          Create a CloudDrop and position it on the screen.
 
Method Summary
 void rain()
          Tell the CloudDrop to fall down the screen.
 void setColor(CloudColor newColor)
          Change the color of a CloudDrop.
 
Methods inherited from class cs015.SP.RainDropShape
fall, update
 
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
 

Constructor Detail

CloudDrop

public CloudDrop()
Create a CloudDrop and position it on the screen.

Method Detail

setColor

public void setColor(CloudColor newColor)
Change the color of a CloudDrop.

Parameters:
newColor - the new CloudColor for this CloudDrop

rain

public void rain()
Tell the CloudDrop to fall down the screen.