cs015.SP
Class CoalMouth

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

public class CoalMouth
extends FilledEllipse
implements SnowMouth, SnowPersonConstants

Modified by Kalin Agrawal (kagrawal) to work with NGP on 7/1/1999


Field Summary
 
Fields inherited from class NGP.Graphics.Shape
_awtShape, _dpanel
 
Fields inherited from interface cs015.SP.SnowPersonConstants
DIMENSION, LOCATION
 
Fields inherited from interface NGP.Colorable
DEFAULT_GRAY
 
Constructor Summary
CoalMouth()
          The constructor initializes the mouth and positions it on the screen.
 
Method Summary
 void Close()
          This method closes the mouth.
 void Open()
          This method opens the mouth.
 void react()
           
 void StartAnimate()
          This method starts the animation that makes the mouth open and close at regular intervals.
 
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, setColor, setDrawingPanel, setRotation, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoalMouth

public CoalMouth()
The constructor initializes the mouth and positions it on the screen.

Method Detail

Open

public void Open()
This method opens the mouth.

Specified by:
Open in interface SnowMouth

Close

public void Close()
This method closes the mouth.

Specified by:
Close in interface SnowMouth

StartAnimate

public void StartAnimate()
This method starts the animation that makes the mouth open and close at regular intervals.

Specified by:
StartAnimate in interface SnowMouth

react

public void react()
Specified by:
react in interface Reactor