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

A

actionPerformed(java.awt.event.ActionEvent) - Method in class CSLib.ErrorBox
Listens for the button press.
actionPerformed(java.awt.event.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.DrawingBox
Clears the entire drawing box.
clear() - Method in class CSLib.OutputBox
Erases the text in the OutputBox.
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.
ClosableDialog - class CSLib.ClosableDialog
ClosableDialog is a base class that obeys the
windowClosing event.
ClosableDialog.DialogCloser - class CSLib.ClosableDialog.DialogCloser
DialogCloser is an inner class that implements the
windowClosing listener for ClosableDialog.
ClosableDialog() - Constructor for class CSLib.ClosableDialog
Constructs a non-modal dialog box in a new frame with a blank title;
this dialog box can respond to the "window closing" event.
ClosableDialog(boolean) - Constructor for class CSLib.ClosableDialog
Constructs a dialog box in a new frame with a blank title and a
specified modality; this dialog box can respond to the
"window closing" event.
ClosableDialog(java.awt.Frame,java.lang.String,boolean) - Constructor for class CSLib.ClosableDialog
Constructs a dialog box with a specified title and modality;
this dialog box can respond to the "window closing" event.
ClosableDialog(java.lang.String,boolean) - Constructor for class CSLib.ClosableDialog
Constructs a dialog box in a new frame with a specified title and
modality; this dialog box can respond to the "window closing" event.
ClosableDialog(java.lang.String) - Constructor for class CSLib.ClosableDialog
Constructs a non-modal dialog box in a new frame with a specified
title; this dialog box can respond to the "window closing" event.
ClosableFrame - class CSLib.ClosableFrame
ClosableFrame is a base class that obeys the
windowClosing event.
ClosableFrame() - Constructor for class CSLib.ClosableFrame
Class constructor, creating a frame that can respond to the
"window closing" event; the frame will have a blank title.
ClosableFrame(java.lang.String) - Constructor for class CSLib.ClosableFrame
Class constructor, creating a frame that can respond to the
"window closing" event; the frame will have a specific title.
CSLib - package CSLib
 
CSLib - Class Diagram in CSLib
 

D

drawCircle(int,int,int) - Method in class CSLib.DrawingBox
Draws the outline of a circle.
drawCircle(java.awt.Point,int) - Method in class CSLib.DrawingBox
Draws the outline of a circle.
drawImage(java.awt.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.DBMouseMotionAdapter - class CSLib.DrawingBox.DBMouseMotionAdapter
DBMouseMotionAdapter is an inner class that implements
the Mouse motion listener for DrawingBox.
DrawingBox() - Constructor for class CSLib.DrawingBox
Constructs a DrawingBox with the default title.
DrawingBox(java.lang.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.
drawRect(java.awt.Rectangle) - Method in class CSLib.DrawingBox
Draws the outline of the specified rectangle given a
Rectangle object.
drawString(java.lang.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
ErrorBox - class CSLib.ErrorBox
ErrorBox is a dialog box used for presenting error
messages.
ErrorBox() - Constructor for class CSLib.ErrorBox
Constructs a modal error box with a generic error message.
ErrorBox(java.lang.String) - Constructor for class CSLib.ErrorBox
Constructs a modal error box with a specific error message.

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(java.awt.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.
fillRect(java.awt.Rectangle) - Method in class CSLib.DrawingBox
Fills the specified rectangle given a Rectangle object.

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(java.lang.String) - Constructor for class CSLib.InputBox
Constructs an InputBox with a specific title.

M

mouseClicked(java.awt.event.MouseEvent) - Method in class CSLib.DrawingBox.DBMouseAdapter
 
mouseDragged(java.awt.event.MouseEvent) - Method in class CSLib.DrawingBox.DBMouseMotionAdapter
 
mouseEntered(java.awt.event.MouseEvent) - Method in class CSLib.DrawingBox.DBMouseAdapter
 
mouseExited(java.awt.event.MouseEvent) - Method in class CSLib.DrawingBox.DBMouseAdapter
 
mouseMoved(java.awt.event.MouseEvent) - Method in class CSLib.DrawingBox.DBMouseMotionAdapter
 
mousePressed(java.awt.event.MouseEvent) - Method in class CSLib.DrawingBox.DBMouseAdapter
 
mouseReleased(java.awt.event.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(java.lang.String) - Constructor for class CSLib.OutputBox
Constructs an OutputBox with a specific title.

P

paint(java.awt.Graphics) - Method in class CSLib.DrawingBox
Paints the drawing box.
paint(java.awt.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(java.lang.String) - Method in class CSLib.OutputBox
Prints a string.
print(java.lang.StringBuffer) - Method in class CSLib.OutputBox
Prints a string buffer.
print(long) - Method in class CSLib.OutputBox
Prints a long integer.
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(java.lang.String) - Method in class CSLib.OutputBox
Prints a String and then terminates the line.
println(java.lang.StringBuffer) - Method in class CSLib.OutputBox
Prints a string buffer and then terminates the line.
println(long) - Method in class CSLib.OutputBox
Prints a long 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

screenSize - Variable in class CSLib.DrawingBox
the size of the user's screen
setColor(java.awt.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(java.awt.Font) - Method in class CSLib.OutputBox
Changes the font for subsequent printing.
setPrompt(java.lang.String) - Method in class CSLib.InputBox
Sets the prompt to a particular string.
setTitle(java.lang.String) - Method in class CSLib.TrickMouse
Sets the title of the Trick Mouse
SFormat - class CSLib.SFormat
SFormat is a utility class for formatting numbers as
strings.
speak(java.lang.String) - Method in class CSLib.TrickMouse
Causes the Trick Mouse to display the "speak" image.
sprint(double) - Static method in class CSLib.SFormat
Stringifies a decimal with 2 decimal places to the right of
the point, in a field fitted to the number (as for currency).
sprint(int,double) - Static method in class CSLib.SFormat
Stringifies a decimal with r decimal places to the right
of the point, in a field fitted to the number.
sprintc(int,int,double) - Static method in class CSLib.SFormat
Stringifies a decimal with r decimal places to the right
of the point, centered in a field of width w.
sprintc(int,int) - Static method in class CSLib.SFormat
Stringifies an integer centered in a field of width w.
sprintc(int,java.lang.String) - Static method in class CSLib.SFormat
Centers a string in a field of width w.
sprintr(int,int,double) - Static method in class CSLib.SFormat
Stringifies a decimal with r decimal places to the right of
the point, right-justified in a field of width w.
sprintr(int,int) - Static method in class CSLib.SFormat
Stringifies an integer right-justified in a field of width w.
sprintr(int,java.lang.String) - Static method in class CSLib.SFormat
Right-justifies a String in a field of width w.
sprintzr(int,int) - Static method in class CSLib.SFormat
Stringifies an integer in a field of width w,
right-justified and zero-filled.

T

Timer - class CSLib.Timer
Timer is a utility class for causing a program to
pause for a specified period of time.
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

W

windowActivated(java.awt.event.WindowEvent) - Method in class CSLib.ClosableFrame
Vacuous implementation.
windowClosed(java.awt.event.WindowEvent) - Method in class CSLib.ClosableFrame
Vacuous implementation.
windowClosing(java.awt.event.WindowEvent) - Method in class CSLib.ClosableDialog.DialogCloser
Cleans up the window, and terminates the program.
windowClosing(java.awt.event.WindowEvent) - Method in class CSLib.ClosableFrame
Cleans up the window, and terminates the program.
windowDeactivated(java.awt.event.WindowEvent) - Method in class CSLib.ClosableFrame
Vacuous implementation.
windowDeiconified(java.awt.event.WindowEvent) - Method in class CSLib.ClosableFrame
Vacuous implementation.
windowIconified(java.awt.event.WindowEvent) - Method in class CSLib.ClosableFrame
Vacuous implementation.
windowOpened(java.awt.event.WindowEvent) - Method in class CSLib.ClosableFrame
Vacuous implementation.