A D E F G H I J K L M N O P R S T U V

A

add(Shape) - Method in class GWindow
Add the given shape and paint it onto the screen.
AudioPlayer - class AudioPlayer.
A simple Audio player.
AudioPlayer() - Constructor for class AudioPlayer
 

D

display(Shape) - Method in class GWindow
Simply adds this shape to the to-be-displayed queue.
display(String) - Method in class Input
 
displayButtons() - Method in class Simon
 
displayPath() - Method in class Simon
 
doTurn() - Method in class Simon
Do one turn of the game.
down() - Method in class Pen
Set the pen's state to down.
drawFrame() - Static method in class House
Draw the frame of the house.
drawHouse() - Static method in class House
Draw the house.
drawTree() - Static method in class House
Draw the tree.
drawTree(double, double, double, double) - Static method in class House
Draw a fractal tree.
drawTree(int, int, int, int, int, int) - Static method in class House
Draw a tree provided the given dimensions.
drawWindow(int, int, int, int) - Static method in class House
Draw a window of the given size at the given location.

E

earthQuake() - Static method in class House
Simulate the earthquake.
eof() - Method in class Input
 
erase() - Method in class GWindow
Discards all of the shape objects and clears the screen.
erase() - Method in class Pen
Erase the window.

F

fileIn(String) - Static method in class JevaUW
Start a new read-eval-print-loop, with the initial statements coming from the given fromFile.
frame - Variable in class OBrowser
 

G

getBoundingBox() - Method in interface Shape
Answer the bounding box for this shape.
getClip() - Method in class Sound
Answer the AudioClip for this sound.
getColor() - Method in interface Shape
Answer the color of this shape.
getTimeInMillis() - Method in class SimpleDate
Answer the number of milliseconds this date is since Jan 1, 1970.
GWindow - class GWindow.
The GWindow class defines a simple graphics window.
GWindow() - Constructor for class GWindow
Create a new window, with default name and size.
GWindow(String) - Constructor for class GWindow
Create a new window of the default size.
GWindow(String, int, int) - Constructor for class GWindow
Create a new window of the given dimensions.
GWindowEventHandler - interface GWindowEventHandler.
Any object that wishes to handle GWindowEvents must implement this interface.

H

home() - Method in class Pen
Send the pen to the home position.
House - class House.
Contains methods for drawing a house, and simulating an earthquake...
House() - Constructor for class House
 

I

Input - class Input.
A simple I/O class.
Input() - Constructor for class Input
Create a new Input object.
Input(String) - Constructor for class Input
Create a new Input object that reads data from the file of the given name.
inspect(boolean) - Static method in class OBrowser
Convenience factory method that creates a new OBrowser to inspect the provided boolean value.
inspect(char) - Static method in class OBrowser
Convenience factory method that creates a new OBrowser to inspect the provided character.
inspect(double) - Static method in class OBrowser
Convenience factory method that creates a new OBrowser to inspect the provided double.
inspect(long) - Static method in class OBrowser
Convenience factory method that creates a new OBrowser to inspect the provided long.
inspect(Object) - Static method in class OBrowser
Convenience factory method that creates a new OBrowser to inspect the provided Object.
intersects(Rectangle) - Method in class Rectangle
This rectangle intersects the given rectangle if at least one of the other rectangle's verteces is contained within the bounds of this rectangle.
intersects(Rectangle) - Method in class TextShape
This shape intersects the given rectangle if at least one of the other rectangle's verteces is contained within the bounds of this rectangle.
intersects(Shape) - Method in interface Shape
Return true if and only if this shape interesects with the provided shape.

J

JevaUW - class JevaUW.
A simple wrapper around the JevaCLI to capture input and output and dump it to a file.
JevaUW(JevaUW) - Constructor for class JevaUW
Create a new Jeva wrapper, using the old Jeva wrapper's tracefile, and standard input and output.
JevaUW(String) - Constructor for class JevaUW
Create a new Jeva wrapper, using the provided fileName as a trace file.

K

keyPressed(GWindowEvent) - Method in interface GWindowEventHandler
 
keyReleased(GWindowEvent) - Method in interface GWindowEventHandler
 

L

Line - class Line.
A line class.
Line() - Constructor for class Line
Make a new line of the default size and position.
Line(int, int, int, int) - Constructor for class Line
A line between the points determined by the parameters.
Line(int, int, int, int, Color) - Constructor for class Line
Lines are never filled, but we can set the color.
loop(Sound) - Method in class AudioPlayer
 

M

main(String[]) - Static method in class GWindow
 
main(String[]) - Static method in class Input
 
main(String[]) - Static method in class OBrowser
 
main(String[]) - Static method in class Pen
Test the pen with the squiral method.
main(String[]) - Static method in class JevaUW
 
main(String[]) - Static method in class House
 
main(String[]) - Static method in class AudioPlayer
Test the audioplayer.
main(String[]) - Static method in class Simon
 
mousePressed(GWindowEvent) - Method in interface GWindowEventHandler
 
mouseReleased(GWindowEvent) - Method in interface GWindowEventHandler
 
move(int) - Method in class Pen
Move the pen the given distance.
move(int, int) - Method in interface Shape
Change this shape's position.
move(int, int) - Method in class Oval
Translate the oval by the given offsets.
move(int, int) - Method in class Rectangle
Translate this rectangle by the given amount.
move(int, int) - Method in class TextShape
Translate this shape by the given amount.

N

newInputFromString(String) - Static method in class Input
Create and return a new Input object that reads data from the provided string.

O

object - Variable in class OBrowser
 
OBrowser - class OBrowser.
A simple object browser.
OBrowser(Object, String) - Constructor for class OBrowser
Make a new OBrowser.
Oval - class Oval.
An oval class.
Oval() - Constructor for class Oval
Create a green oval.
Oval(int, int, int, int) - Constructor for class Oval
Create an unfilled oval bounded by the given dimensions.
Oval(int, int, int, int, Color, boolean) - Constructor for class Oval
Create a new oval bounded by the given dimensions.

P

paint(Graphics) - Method in interface Shape
Paint this shape onto the given graphics context.
paint(Graphics) - Method in class Oval
Paint the oval onto the given graphics context.
paint(Graphics) - Method in class Rectangle
Paint/draw this rectangle onto the given graphics context.
paint(Graphics) - Method in class TextShape
Paint/draw this shape onto the given graphics context.
paint(Graphics) - Method in class GWindow
Do a paint operation.
panel - Variable in class OBrowser
 
Pen - class Pen.
A simple Pen class which implements turtle style graphics.
Pen() - Constructor for class Pen
Create a new Pen.
picture() - Static method in class GWindow
Draws a poor approximation of Russian constructivist art :)
play(Sound) - Method in class AudioPlayer
Play the given sound.
press(int) - Method in class Simon
 
press(int, int) - Method in class Simon
 
print(String) - Method in class GWindow
 

R

readChar() - Method in class Input
Read a char without prompting.
readChar(String) - Method in class GWindow
Use a dialog box to prompt the user for a character.
readChar(String) - Method in class Input
Display the given prompt and read an char
readDouble() - Method in class Input
Read a double without prompting.
readDouble(String) - Method in class GWindow
Use a dialog box to prompt the user for a double.
readDouble(String) - Method in class Input
Display the given prompt and read an double.
readInt() - Method in class Input
Read an integer without prompting.
readInt(String) - Method in class GWindow
Use a dialog box to prompt the user for an integer.
readInt(String) - Method in class Input
Display the given prompt and read an int.
readString() - Method in class Input
Read a string without prompting.
readString(String) - Method in class GWindow
Use a dialog box to prompt the user for a String.
readString(String) - Method in class Input
Display the given prompt and read an string.
Rectangle - class Rectangle.
A rectangle shape.
Rectangle() - Constructor for class Rectangle
Create a new, filled rectangle, colored red.
Rectangle(int, int, int, int) - Constructor for class Rectangle
Create a new rectangle of the given size.
Rectangle(int, int, int, int, Color, boolean) - Constructor for class Rectangle
Create a new rectangle of the given size.
refresh() - Method in class OBrowser
 
remove(Shape) - Method in class GWindow
Remove the given shape and repaint the screen.
repl() - Method in class JevaUW
Start the read-eval-print-loop and go forever.
repl(String) - Method in class JevaUW
Start a read-eval-printloop, using the contents of the given file as initial statements.
root - Variable in class OBrowser
 

S

scrollPane - Variable in class OBrowser
 
setColor(Color) - Method in interface Shape
Set the color of this shape.
setWindow(GWindow) - Method in interface Shape
Tell the shape that it belongs to the given window.
Shape - interface Shape.
All shapes implement this interface.
showColorTable() - Static method in class GWindow
Opens a color picker application.
Simon - class Simon.
The game of Simon says.
Simon() - Constructor for class Simon
Create a new game.
SimpleDate - class SimpleDate.
A basic Date class.
SimpleDate() - Constructor for class SimpleDate
Create a date whose time is now.
SimpleDate(int, int, int, int, int) - Constructor for class SimpleDate
Create a date whose time is specified by these arguments.
sleep(int) - Method in class Simon
 
Sound - class Sound.
A simple sound class.
Sound(String) - Constructor for class Sound
Create a new sound, loading from the given filename.
squiral(int, int, int) - Method in class Pen
Draw a squiral.
stop(Sound) - Method in class AudioPlayer
 

T

TextShape - class TextShape.
TextShape is used for displaying text onto the GWindow.
TextShape(String, int, int) - Constructor for class TextShape
Create a new rectangle of the given size.
theWindow - Static variable in class House
The drawing window.
timerExpired(GWindowEvent) - Method in interface GWindowEventHandler
 
title - Variable in class OBrowser
 
toString() - Method in class Oval
 
toString() - Method in class Rectangle
 
toString() - Method in class Triangle
 
toString() - Method in class Line
 
toString() - Method in class TextShape
 
toString() - Method in class Pen
Return the pen's printed representation.
toString() - Method in class SimpleDate
Answer a nice representation of the date.
translate(int, int) - Method in class GWindow
Translate the position of every object by the given deltas, and repaint the screen.
tree - Variable in class OBrowser
 
treeModel - Variable in class OBrowser
 
Triangle - class Triangle.
A Triangle class.
Triangle() - Constructor for class Triangle
Create a new triangle of default size.
Triangle(int, int, int, int, int, int) - Constructor for class Triangle
Create a new triangle between these three vertices.
Triangle(int, int, int, int, int, int, Color, boolean) - Constructor for class Triangle
Create a new triangle between these three vertices.
turn(int) - Method in class Pen
Turn the pen this many degrees.

U

up() - Method in class Pen
Raise the pen.
update(Graphics) - Method in class GWindow
When we update the window, we just do a paint(g).

V

version() - Method in class GWindow
Answer the version number.

A D E F G H I J K L M N O P R S T U V