|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNGP.Graphics.Shape
NGP.Graphics.RectangularShape
NGP.Graphics.FilledRectangularShape
NGP.Graphics.FilledEllipse
cs015.SP.RainDropShape
cs015.SP.CloudDrop
This class represents a single raindrop that falls from a cloud. Its color can be changed and it can be told to fall.
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 |
public CloudDrop()
Method Detail |
public void setColor(CloudColor newColor)
newColor
- the new CloudColor for this CloudDroppublic void rain()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |