CSE115.Scarecrow
Class FallingLeaf
java.lang.Object
NGP.Graphics.Shape
CSE115.Scarecrow.LeafShape
CSE115.Scarecrow.FallingLeaf
- All Implemented Interfaces:
- Colorable, EventListener, Graphic, Locatable, MouseListener, MouseMotionListener, Reactor, Rotatable
- public class FallingLeaf
- extends CSE115.Scarecrow.LeafShape
FallingLeaf.java
Created: Thu Sep 14 14:59:33 2000
- Author:
- Philip R Ventura
|
Constructor Summary |
FallingLeaf()
Creates a new FallingLeaf instance. |
| 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 LeafFallingBehavior _bhv
FallingLeaf
public FallingLeaf()
- Creates a new
FallingLeaf instance.
fall
public void fall()
- Make the leaf fall to the bottom of the screen.
setColor
public void setColor(LeafColor color)
- Set the color of the leaf.
- Parameters:
color - the color of the leaf.
actualPaint
public void actualPaint(Graphics2D g)
setLocation
public void setLocation(Point pt)
- Specified by:
setLocation in interface Locatable
getLocation
public Point getLocation()
- Specified by:
getLocation in interface Locatable