Class Foot

Class Foot

java.lang.Object
   |
   +----Foot

class Foot
extends Object
implements ImageObserver
Class foot implements the functions for drawing a foot and for getting the size of one foot.

Constructor Index

 o Foot(Dance)
Creates the object Foot.

Method Index

 o addToClipRect(Floor, Step)
Add the step s into the clipping rect for floor f.
 o drawFoot(Graphics, Floor, Step)
Draws the foot for step s on floor f within graphics context g.
 o imageUpdate(Image, int, int, int, int, int)
 o redrawFoot(Graphics, Floor, Step)
Redraw the foot for step s on floor f within graphics context g.
 o toString()
Returns a String object representing this Foot's value.

Constructors

 o Foot
  public Foot(Dance a)
Creates the object Foot. Only one object is needed.
Parameters:
a - pointer to the main applet.

Methods

 o imageUpdate
  public boolean imageUpdate(Image img,
                             int infoflags,
                             int x,
                             int y,
                             int width,
                             int height)
 o drawFoot
  public boolean drawFoot(Graphics g,
                          Floor f,
                          Step s)
Draws the foot for step s on floor f within graphics context g.
Returns:
Has some foot-state changed to IMG_DRAWN.
 o redrawFoot
  public boolean redrawFoot(Graphics g,
                            Floor f,
                            Step s)
Redraw the foot for step s on floor f within graphics context g. Draw the foot only, if the image isn't IMG_OK. If it's IMG_READY, set it to IMG_DRAWN.
 o addToClipRect
  public void addToClipRect(Floor f,
                            Step s)
Add the step s into the clipping rect for floor f.
See Also:
addToClipRect
 o toString
  public String toString()
Returns a String object representing this Foot's value.
Overrides:
toString in class Object