A B C D E F G H I K L M N P R S U _

A

actionPerformed(ActionEvent) - Method in class CSE115.KeyInteractor
Normal users need not deal with this method!
addBody(MovingBody) - Method in class CSE115.BallWorld.Animator
Add a body to the animator.
Animator - class CSE115.BallWorld.Animator.
Normal users can ignore this class. Tells MovingBody objects when to move.
appear() - Method in class CSE115.Dialogs.ColorDialog
Call this method to make the file dialog box appear.
Applet - class CSE115.Applet.
A simpler version of an Applet.
Applet - class CSE115.BallWorld.Applet.
An applet for the balls to bounce on.
Applet - class CSE115.BallWorld.Strategy.Applet.
An applet for strategy balls.
Applet - class CSE115.SP.Applet.
A simpler version of an Applet.
Applet() - Constructor for class CSE115.Applet
 
Applet() - Constructor for class CSE115.BallWorld.Applet
Creates a new Applet instance.
Applet() - Constructor for class CSE115.BallWorld.Strategy.Applet
Creates a new Applet instance.
Applet() - Constructor for class CSE115.SP.Applet
 
approvePressed(Color) - Method in class CSE115.Dialogs.ColorDialog
Called when the user chooses a color.

B

Ball - class CSE115.BallWorld.Ball.
A ball that moves when told to.
Ball() - Constructor for class CSE115.BallWorld.Ball
Creates a new Ball instance.
bobbleDeselected() - Method in interface CSE115.BallWorld.Strategy.MultiImageBehaviorMenuObserver
The bobble head radio button was deselected.
bobbleSelected() - Method in interface CSE115.BallWorld.Strategy.MultiImageBehaviorMenuObserver
The bobble head radio button was selected.
bobbleSelected() - Method in interface CSE115.BallWorld.Strategy.SingleImageBehaviorMenuObserver
The bobble head radio button was selected.
BounceFactory - interface CSE115.BallWorld.BounceFactory.
Specifies the required functionality so that the menu can talk to some class, written by you, to create the different kinds of balls/images.
BouncingPicture - class CSE115.BallWorld.BouncingPicture.
A GIF or JPEG that bounces on the screen.
BouncingPicture(String) - Constructor for class CSE115.BallWorld.BouncingPicture
Creates a new BouncingPicture from the given file.
BouncingPicture(URL) - Constructor for class CSE115.BallWorld.BouncingPicture
Creates a new BouncingPicture from the given URL.
breathingDeselected() - Method in interface CSE115.BallWorld.Strategy.MultiBallBehaviorMenuObserver
The breathing ball radio button was deselected.
breathingSelected() - Method in interface CSE115.BallWorld.Strategy.SingleBallBehaviorMenuObserver
The breathing ball radio button was selected.
breathingSelected() - Method in interface CSE115.BallWorld.Strategy.MultiBallBehaviorMenuObserver
The breathing ball radio button was selected.

C

cancelPressed() - Method in class CSE115.Dialogs.ColorDialog
Called when the Cancel button is pressed.
colorDeselected() - Method in interface CSE115.BallWorld.Strategy.MultiBallBehaviorMenuObserver
The color change ball radio button was deselected.
ColorDialog - class CSE115.Dialogs.ColorDialog.
A dialog for choosing a color.
ColorDialog(Container) - Constructor for class CSE115.Dialogs.ColorDialog
The constructor where no default directory is specified.
ColorDialog(Container, Color) - Constructor for class CSE115.Dialogs.ColorDialog
The constructor where no default directory is specified.
colorSelected() - Method in interface CSE115.BallWorld.Strategy.SingleBallBehaviorMenuObserver
The color change ball radio button was selected.
colorSelected() - Method in interface CSE115.BallWorld.Strategy.MultiBallBehaviorMenuObserver
The color change ball radio button was selected.
contains(Point) - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
createBall() - Method in interface CSE115.BallWorld.BounceFactory
Create a regular bouncing ball.
createBobbleHead() - Method in interface CSE115.BallWorld.BounceFactory
Create a bobble head.
createBreathingBall() - Method in interface CSE115.BallWorld.BounceFactory
Create a breathing ball.
createColorChangeBall() - Method in interface CSE115.BallWorld.BounceFactory
Create a color changing ball.
createCombination() - Method in interface CSE115.BallWorld.BounceFactory
Create a combination ball/head.
createGoogleyBall() - Method in interface CSE115.BallWorld.BounceFactory
Create a googley ball.
createMenu(BounceFactory) - Method in class CSE115.BallWorld.Applet
Creates the menu to allow the user to create different kinds of balls.
createMenu(SingleBallBehaviorMenuObserver, SingleImageBehaviorMenuObserver, MultiBallBehaviorMenuObserver, MultiImageBehaviorMenuObserver) - Method in class CSE115.BallWorld.Strategy.Applet
Create the menus.
createMultiBehaviorBall() - Method in interface CSE115.BallWorld.Strategy.MultiBallBehaviorMenuObserver
The create multi ball behavior menu option was selected.
createMultiBehaviorImage() - Method in interface CSE115.BallWorld.Strategy.MultiImageBehaviorMenuObserver
The create multi image behavior menu option was selected.
createRandomFloatingHead() - Method in interface CSE115.BallWorld.BounceFactory
Create a randomly floating head.
createSingleBehaviorBall() - Method in interface CSE115.BallWorld.Strategy.SingleBallBehaviorMenuObserver
The create single behavior ball menu option was selected.
createSingleBehaviorImage() - Method in interface CSE115.BallWorld.Strategy.SingleImageBehaviorMenuObserver
The create single behavior image menu option was selected.
createSpinningHead() - Method in interface CSE115.BallWorld.BounceFactory
Create a spinning head.
CSE115 - package CSE115
 
CSE115.BallWorld - package CSE115.BallWorld
This package contains the necessary classes for bouncing balls & pictures.
CSE115.BallWorld.Strategy - package CSE115.BallWorld.Strategy
 
CSE115.Containers - package CSE115.Containers
 
CSE115.Dialogs - package CSE115.Dialogs
 
CSE115.Graphics - package CSE115.Graphics
 
CSE115.SP - package CSE115.SP
 

D

deleteBodies() - Method in class CSE115.BallWorld.Animator
Remove all the bodies from the animator.
deleteBody(MovingBody) - Method in class CSE115.BallWorld.Animator
Remove a body from the animator.
disable() - Method in class CSE115.KeyInteractor
Turn the KeyInteractor off so that it will not call keyPressed.
DOWN_ARROW - Static variable in class CSE115.KeyInteractor
The code for the down arrow key.

E

enable() - Method in class CSE115.KeyInteractor
Turn the KeyInteractor on so that it will call keyPressed.

F

FilledFish - class CSE115.Graphics.FilledFish.
An NGP-style filled fish shape.
FilledFish(DrawingPanel) - Constructor for class CSE115.Graphics.FilledFish
Creates a new FilledFish with the specified DrawingPanel.
FilledTriangle - class CSE115.Graphics.FilledTriangle.
An NGP-style filled triangle.
FilledTriangle(DrawingPanel) - Constructor for class CSE115.Graphics.FilledTriangle
Creates a new FilledTriangle with the specified DrawingPanel.
floatingDeselected() - Method in interface CSE115.BallWorld.Strategy.MultiImageBehaviorMenuObserver
The random floating head radio button was deselected.
floatingSelected() - Method in interface CSE115.BallWorld.Strategy.MultiImageBehaviorMenuObserver
The random floating head radio button was selected.
floatingSelected() - Method in interface CSE115.BallWorld.Strategy.SingleImageBehaviorMenuObserver
The random floating head radio button was selected.
Frame - class CSE115.Frame.
A frame with a static Panel so that other classes can draw without needing parameters.
Frame - class CSE115.BallWorld.Frame.
Normal users can ignore this class. A frame for the balls and pictures to bounce on.
Frame() - Constructor for class CSE115.Frame
Create the Frame, set the size, and create the DrawingPanel for everything else to use.
FramedFish - class CSE115.Graphics.FramedFish.
An NGP-style framed fish shape.
FramedFish(DrawingPanel) - Constructor for class CSE115.Graphics.FramedFish
Creates a new FramedFish with the specified DrawingPanel.
FramedTriangle - class CSE115.Graphics.FramedTriangle.
An NGP-style framed triangle.
FramedTriangle(DrawingPanel) - Constructor for class CSE115.Graphics.FramedTriangle
Creates a new FramedTriangle with the specified DrawingPanel.

G

getBounds() - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
getCenterLocation() - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
getColor() - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
getDimension() - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
getDrawingPanel() - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
getDrawingPanel() - Static method in class CSE115.BallWorld.Frame
Returns the DrawingPanel for drawing.
getDx() - Method in class CSE115.BallWorld.MovingBodyAdapter
Get the change in x.
getDx() - Method in interface CSE115.BallWorld.MovingBody
Returns the horizontal velocity.
getDy() - Method in class CSE115.BallWorld.MovingBodyAdapter
Get the change in y.
getDy() - Method in interface CSE115.BallWorld.MovingBody
Returns the vertical velocity.
getEnabled() - Method in class CSE115.KeyInteractor
Is this KeyInteractor enabled or disabled?
getLocation() - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
getMenu() - Method in class CSE115.BallWorld.Applet
Get the ball creation menu.
getMenuBar() - Method in class CSE115.BallWorld.Applet
Get the menubar.
getMenuBar() - Method in class CSE115.BallWorld.Strategy.Applet
Get the menubar.
getMultiBallMenu() - Method in class CSE115.BallWorld.Strategy.Applet
Get the Multi Ball menu.
getMultiImageMenu() - Method in class CSE115.BallWorld.Strategy.Applet
Get the Multi Image menu.
getRotation() - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
getSingleBallMenu() - Method in class CSE115.BallWorld.Strategy.Applet
Get the Single Ball menu.
getSingleImageMenu() - Method in class CSE115.BallWorld.Strategy.Applet
Get the Single Image menu.
getSize() - Method in class CSE115.BallWorld.Ball
Returns the size of the ball.
googleyDeselected() - Method in interface CSE115.BallWorld.Strategy.MultiBallBehaviorMenuObserver
The googley ball radio button was deselected.
googleySelected() - Method in interface CSE115.BallWorld.Strategy.SingleBallBehaviorMenuObserver
The googley ball radio button was selected.
googleySelected() - Method in interface CSE115.BallWorld.Strategy.MultiBallBehaviorMenuObserver
The googley ball radio button was selected.

H

hide() - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.

I

intersects(Graphic) - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.

K

KeyInteractor - class CSE115.KeyInteractor.
A class for listening to any type of key press.
KeyInteractor(Panel, char) - Constructor for class CSE115.KeyInteractor
Create a KeyInteractor that will respond whenever the key with the passed in character is pressed.
KeyInteractor(Panel, int) - Constructor for class CSE115.KeyInteractor
Create a KeyInteractor that will respond whenever the key is pressed.
keyPressed() - Method in class CSE115.KeyInteractor
Subclasses should override to do something useful.

L

LEFT_ARROW - Static variable in class CSE115.KeyInteractor
The code for the left arrow key.

M

mouseClicked(MouseEvent) - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
mouseDown(Point) - Method in class CSE115.Containers.MouseSensitiveDrawingPanel
Called whenever the user presses the mouse button down on the panel.
mouseDragged(MouseEvent) - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
mouseDragTo(Point) - Method in class CSE115.Containers.MouseSensitiveDrawingPanel
Called whenever the user moves the mouse across the panel while holding the mouse button down.
mouseEntered(MouseEvent) - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
mouseExited(MouseEvent) - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
mouseMoved(MouseEvent) - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
mousePressed(MouseEvent) - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
mouseReleased(MouseEvent) - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
MouseSensitiveDrawingPanel - class CSE115.Containers.MouseSensitiveDrawingPanel.
MouseSensitiveDrawingPanel.java Created: Tue Mar 06 17:48:49 2001
MouseSensitiveDrawingPanel(Container) - Constructor for class CSE115.Containers.MouseSensitiveDrawingPanel
Creates a new MouseSensitiveDrawingPanel on the specified container.
mouseUp(Point) - Method in class CSE115.Containers.MouseSensitiveDrawingPanel
Called whenever the user releases the mouse button on the panel.
MovingBody - interface CSE115.BallWorld.MovingBody.
Normal users can ignore this interface. Methods needed for body that can be animated and moved.
MovingBodyAdapter - class CSE115.BallWorld.MovingBodyAdapter.
Normal users can ignore this class. A class that implements many of the methods of MovingBody by delegating the work to Shape objects.
MovingBodyAdapter(Shape) - Constructor for class CSE115.BallWorld.MovingBodyAdapter
Creates a new MovingBodyAdapter instance.
MultiBallBehaviorMenuObserver - interface CSE115.BallWorld.Strategy.MultiBallBehaviorMenuObserver.
Methods called auto-magically when the user clicks an option from the Multi Ball behavior menu of Applet.
MultiImageBehaviorMenuObserver - interface CSE115.BallWorld.Strategy.MultiImageBehaviorMenuObserver.
Methods called auto-magically when the user clicks an option from the Multi Image behavior menu of Applet.

N

next() - Method in class CSE115.BallWorld.SineMaker
Returns the next value of the sine wave oscillation.

P

paint(Graphics2D) - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.

R

react() - Method in class CSE115.BallWorld.MovingBodyAdapter
 
regularSelected() - Method in interface CSE115.BallWorld.Strategy.SingleBallBehaviorMenuObserver
The regular ball radio button was selected.
regularSelected() - Method in interface CSE115.BallWorld.Strategy.SingleImageBehaviorMenuObserver
The regular image radio button was selected.
RIGHT_ARROW - Static variable in class CSE115.KeyInteractor
The code for the right arrow key.

S

setBackgroundColor(Color) - Method in class CSE115.BallWorld.MovingBodyAdapter
Set the color of the background.
setColor(Color) - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
setDelay(int) - Method in class CSE115.BallWorld.Animator
Set the delay between moving the balls.
setDimension(Dimension) - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
setDrawingPanel(DrawingPanel) - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
setFrameDelay(int) - Method in class CSE115.BallWorld.MovingBodyAdapter
Sets the delay in milliseconds between calls to move().
setLocation(Point) - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
setRotation(int) - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
setSize(int) - Method in class CSE115.BallWorld.Ball
Sets the size of the ball.
setVelocity(int, int) - Method in class CSE115.BallWorld.MovingBodyAdapter
Sets the velocity, in the x and y directions of the ball.
setVelocity(int, int) - Method in interface CSE115.BallWorld.MovingBody
Sets the horizontal and vertical velocity.
Shape - interface CSE115.BallWorld.Shape.
Normal users can ignore this interface. An entity that implements all of NGP.Graphic, NGP.Locatable, and NGP.Sizeable.
show() - Method in class CSE115.BallWorld.MovingBodyAdapter
Delegated to the shape.
SineMaker - class CSE115.BallWorld.SineMaker.
This class is used to create a sine wave oscillation of an integer value between specified minimum and maximum values.
SineMaker(int, int, double) - Constructor for class CSE115.BallWorld.SineMaker
The constructor for SineMaker.
SingleBallBehaviorMenuObserver - interface CSE115.BallWorld.Strategy.SingleBallBehaviorMenuObserver.
Methods called auto-magically when the user clicks an option from the Single Ball behavior menu of Applet.
SingleImageBehaviorMenuObserver - interface CSE115.BallWorld.Strategy.SingleImageBehaviorMenuObserver.
Methods called auto-magically when the user clicks an option from the Single Image behavior menu of Applet.
singleton() - Static method in class CSE115.BallWorld.Animator
Get the Animator.
spinningDeselected() - Method in interface CSE115.BallWorld.Strategy.MultiImageBehaviorMenuObserver
The spinning head radio button was deselected.
spinningSelected() - Method in interface CSE115.BallWorld.Strategy.MultiImageBehaviorMenuObserver
The spinning head radio button was selected.
spinningSelected() - Method in interface CSE115.BallWorld.Strategy.SingleImageBehaviorMenuObserver
The spinning head radio button was selected.
start() - Method in class CSE115.BallWorld.Animator
Start animation.
startBouncing() - Method in class CSE115.BallWorld.MovingBodyAdapter
Start (global) bouncing behavior.
stop() - Method in class CSE115.BallWorld.Animator
Stop animating.
stopBouncing() - Method in class CSE115.BallWorld.MovingBodyAdapter
Stop (global) bouncing behavior.

U

UP_ARROW - Static variable in class CSE115.KeyInteractor
The code for the up arrow key.
update() - Method in class CSE115.BallWorld.MovingBodyAdapter
Update the position of the ball based on the velocity, if the ball hits a wall, reverses velocity in the appropriate direction.
update() - Method in interface CSE115.BallWorld.MovingBody
Called frequently to update the body's position on the screen.

_

_panel - Static variable in class CSE115.Frame
Other CSE115 classes should use this for creating themselves.
_panel - Static variable in class CSE115.Applet
 
_panel - Static variable in class CSE115.SP.Applet
 

A B C D E F G H I K L M N P R S U _