D E G H I M P S W

D

draw(Graphics, boolean) - Method in class Ele
Instance method; Draws the elephant head described by this instance of Ele in the graphics area described by Graphics gr.

E

Ele - class Ele.
Draws an elephant head at a user given x & y position with a user given width & height.
Ele() - Constructor for class Ele
Default constructor; Creates an Ele instance with starting x & y at 0,0; width=105 and height=75.
Ele(int, int, int, int) - Constructor for class Ele
Constructor; xp & yp are the starting x & y positions; wd is the width and ht is the height; These four arguments describe a rectangle just large enough to encompass the head.
Elehead - class Elehead.
Applet to use Ele.class conveniently.
Elehead() - Constructor for class Elehead
 
eleinit(int, int, int, int) - Method in class Ele
Instance method; This method is called by the constuctors to create and initialize all the polygons and polylines necessary to draw the elephant head.
Eletest - class Eletest.
Eletest.class; A Demo for Ele.class.
Eletest() - Constructor for class Eletest
 

G

getAspHt(int) - Static method in class Ele
Class method; Static method returning the corresponding height, for the argument width, to keep the elephant head in aspect.
getAspWth(int) - Static method in class Ele
Class method; Static method returning the corresponding width, for the argument height, to keep the elephant head in aspect.

H

hd - Variable in class Elehead
an instance of Ele.class
height() - Method in class Ele
Instance method; returns the height.

I

init() - Method in class Eletest
 
init() - Method in class Elehead
Initializes applet; Calls processparam() to process the HTML parameters.

M

main(String[]) - Static method in class Eletest
 
main(String[]) - Static method in class Elehead
 

P

paint(Graphics) - Method in class Eletest
 
paint(Graphics) - Method in class Elehead
Draws a filled Ele hd on the applet with a white background
processparam() - Method in class Elehead
Processes the param tags from the HTML that contains this applet.

S

startx() - Method in class Ele
Instance method; returns the x coordinate.
starty() - Method in class Ele
Instance method; returns the y coordinate.

W

width() - Method in class Ele
Instance method; returns the width.

D E G H I M P S W