A C D E F G H I M O P R S T

A

actionPerformed(ActionEvent) - Method in class CSLib.InputBox
Catches the clicking of the OK button (presumably after text has been entered in the textfield.

C

clear() - Method in class CSLib.OutputBox
Erases the text in the OutputBox.
clear() - Method in class CSLib.DrawingBox
Clears the entire drawing box.
clearRect(int, int, int, int) - Method in class CSLib.DrawingBox
Clears the specified rectangle by filling it with the background color of the current drawing box.
CSLib - package CSLib
 

D

drawArc(int, int, int, int, int, int) - Method in class CSLib.DrawingBox
Draws the outline of a circular or elliptical arc covering the specified rectangle.
drawCircle(int, int, int) - Method in class CSLib.DrawingBox
Draws the outline of a circle.
drawCircle(Point, int) - Method in class CSLib.DrawingBox
Draws the outline of a circle.
drawImage(Image, int, int) - Method in class CSLib.DrawingBox
Draws the specified image with its top-left corner at (x,y) in this drawing box's coordinate system.
DrawingBox - class CSLib.DrawingBox.
DrawingBox is a frame upon which many of the java.awt.Graphics operations can be performed.
DrawingBox.DBMouseAdapter - class CSLib.DrawingBox.DBMouseAdapter.
DBMouseAdapter is an inner class that implements the Mouse listener for DrawingBox.
DrawingBox.DBMouseAdapter() - Constructor for class CSLib.DrawingBox.DBMouseAdapter
 
DrawingBox.DBMouseMotionAdapter - class CSLib.DrawingBox.DBMouseMotionAdapter.
DBMouseMotionAdapter is an inner class that implements the Mouse motion listener for DrawingBox.
DrawingBox.DBMouseMotionAdapter() - Constructor for class CSLib.DrawingBox.DBMouseMotionAdapter
 
DrawingBox() - Constructor for class CSLib.DrawingBox
Constructs a DrawingBox with the default title.
DrawingBox(String) - Constructor for class CSLib.DrawingBox
Constructs a DrawingBox with a specific title.
drawLine(int, int, int, int) - Method in class CSLib.DrawingBox
Draws a line, using the current color, between the points (x1,y1) and (x2,y2) in this drawing box's coordinate system.
drawOval(int, int, int, int) - Method in class CSLib.DrawingBox
Draws the outline of an oval.
drawRect(int, int, int, int) - Method in class CSLib.DrawingBox
Draws the outline of the specified rectangle.
drawString(String, int, int) - Method in class CSLib.DrawingBox
Draws the text given by the specified string, using this drawing box's current font and color.

E

eoi() - Method in class CSLib.InputBox
Returns the end-of-input status

F

fillCircle(int, int, int) - Method in class CSLib.DrawingBox
Fills a circle with center at (x,y) and with a given radius using this drawing box's current color.
fillCircle(Point, int) - Method in class CSLib.DrawingBox
Fills a circle with center at point p and with a given radius, using this drawing box's current color.
fillOval(int, int, int, int) - Method in class CSLib.DrawingBox
Fills an oval bounded by the specified rectangle with this drawing box's current color.
fillRect(int, int, int, int) - Method in class CSLib.DrawingBox
Fills the specified rectangle.

G

getColor() - Method in class CSLib.DrawingBox
Gets this drawing box's current color.
getDrawableHeight() - Method in class CSLib.DrawingBox
Returns the current drawable height (less insets) of this drawing box.
getDrawableWidth() - Method in class CSLib.DrawingBox
Returns the current drawable width (less insets) of this drawing box.

H

hitWall() - Method in class CSLib.TrickMouse
Causes the Trick Mouse to display the "hit wall" image.

I

InputBox - class CSLib.InputBox.
InputBox is a closable dialog box that can receive and translate textual keyword input into various Java types.
InputBox() - Constructor for class CSLib.InputBox
Constructs an InputBox with a default title.
InputBox(String) - Constructor for class CSLib.InputBox
Constructs an InputBox with a specific title.

M

mouseClicked(MouseEvent) - Method in class CSLib.DrawingBox.DBMouseAdapter
 
mouseDragged(MouseEvent) - Method in class CSLib.DrawingBox.DBMouseMotionAdapter
 
mouseEntered(MouseEvent) - Method in class CSLib.DrawingBox.DBMouseAdapter
 
mouseExited(MouseEvent) - Method in class CSLib.DrawingBox.DBMouseAdapter
 
mouseMoved(MouseEvent) - Method in class CSLib.DrawingBox.DBMouseMotionAdapter
 
mousePressed(MouseEvent) - Method in class CSLib.DrawingBox.DBMouseAdapter
 
mouseReleased(MouseEvent) - Method in class CSLib.DrawingBox.DBMouseAdapter
 

O

OutputBox - class CSLib.OutputBox.
OutputBox is a closable frame that holds textual output.
OutputBox() - Constructor for class CSLib.OutputBox
Constructs an OutputBox with a default title.
OutputBox(String) - Constructor for class CSLib.OutputBox
Constructs an OutputBox with a specific title.

P

paint(Graphics) - Method in class CSLib.DrawingBox
Paints the drawing box.
paint(Graphics) - Method in class CSLib.TrickMouse
Redraws the screen.
pause(long) - Static method in class CSLib.Timer
Pauses for a specific period of time.
print(boolean) - Method in class CSLib.OutputBox
Prints a boolean value.
print(char) - Method in class CSLib.OutputBox
Prints a character.
print(double) - Method in class CSLib.OutputBox
Prints a double-precision floating-point number.
print(float) - Method in class CSLib.OutputBox
Prints a floating-point number.
print(int) - Method in class CSLib.OutputBox
Prints an integer.
print(long) - Method in class CSLib.OutputBox
Prints a long integer.
print(String) - Method in class CSLib.OutputBox
Prints a string.
print(StringBuffer) - Method in class CSLib.OutputBox
Prints a string buffer.
println() - Method in class CSLib.OutputBox
Terminates the current line by writing a carriage return character followed by a newline character.
println(boolean) - Method in class CSLib.OutputBox
Prints a boolean and then terminates the line.
println(char) - Method in class CSLib.OutputBox
Print a character and then terminate the line.
println(double) - Method in class CSLib.OutputBox
Prints a double and then terminates the line.
println(float) - Method in class CSLib.OutputBox
Prints a float and then terminates the line.
println(int) - Method in class CSLib.OutputBox
Prints an integer and then terminates the line.
println(long) - Method in class CSLib.OutputBox
Prints a long and then terminates the line.
println(String) - Method in class CSLib.OutputBox
Prints a String and then terminates the line.
println(StringBuffer) - Method in class CSLib.OutputBox
Prints a string buffer and then terminates the line.

R

readChar() - Method in class CSLib.InputBox
Reads an Ascii character, and converts it to an char.
readDouble() - Method in class CSLib.InputBox
Reads an Ascii real number, and converts it to a double.
readInt() - Method in class CSLib.InputBox
Reads an Ascii integer, and converts it to an int.
readString() - Method in class CSLib.InputBox
Reads an Ascii string.

S

setColor(Color) - Method in class CSLib.DrawingBox
Sets this drawing box's color.
setDrawableSize(int, int) - Method in class CSLib.DrawingBox
Sets the drawable size of this drawing box by setting a smaller size, then increasing it by the amount of the insets.
setFont(Font) - Method in class CSLib.OutputBox
Changes the font for subsequent printing.
setPrompt(String) - Method in class CSLib.InputBox
Sets the prompt to a particular string.
setTitle(String) - Method in class CSLib.TrickMouse
Sets the title of the Trick Mouse
speak(String) - Method in class CSLib.TrickMouse
Causes the Trick Mouse to display the "speak" image.

T

Timer - class CSLib.Timer.
Timer is a utility class for causing a program to pause for a specified period of time.
Timer() - Constructor for class CSLib.Timer
 
TrickMouse - class CSLib.TrickMouse.
TrickMouse is a special class used as an example in the text.
TrickMouse() - Constructor for class CSLib.TrickMouse
Constructs a TrickMouse

A C D E F G H I M O P R S T