A B C D E F G H I J L M O P R S T U V W X Z

A

ALTO_SAX - Static variable in class MidiPlayer
 
APPLAUSE - Static variable in class MidiPlayer
 
AnimationPanel - class AnimationPanel.
Class to show a frame-based animation
AnimationPanel() - Constructor for class AnimationPanel
Constructor that takes no parameters
AnimationPanel(List) - Constructor for class AnimationPanel
Constructor that takes a list of pictures
AnimationPanel(String) - Constructor for class AnimationPanel
 
act() - Method in class Deer
Method to act during a time step pick a random direction and move some random amount up to top speed
act() - Method in class Wolf
Method to act during a time step pick a random direction and move some random amount up to top speed
actionPerformed(ActionEvent) - Method in class PictureExplorer
Controls the zoom menu bar
actionPerformed(ActionEvent) - Method in class SoundExplorer
Method to handle an action event
add(Picture) - Method in class AnimationPanel
Method to add a picture
addFrame(Picture) - Method in class FrameSequence
Method to add a picture to the frame sequence
addFrame(Picture) - Method in class FrameSequencer
Method to add a picture to the frame sequence
addMessage(String, int, int) - Method in class SimplePicture
Method to draw a message as a string on the buffered image
addModel(Object) - Method in interface ModelDisplay
method to add the model to the world
addModel(Object) - Method in class World
Method to add a model to this model displayer
addMove(int, int, int, int) - Method in class Pen
Method to add a path segment if the pen is down
addNewLines(String) - Static method in class SimpleOutput
Method to add new line character if the message is too long
addPicture(Picture) - Method in class MoviePlayer
Method to add a picture to the movie
addWordBalloon(String, int, int) - Method in class Cartoon
Method to add a word balloon that contians the message
alaw2linear(byte) - Static method in class TConversionTool
 
asArray() - Method in class SimpleSound
Method to return the byte array

B

BASS - Static variable in class MidiPlayer
 
BIRD - Static variable in class MidiPlayer
 
ButtonPanel - class ButtonPanel.
Class that holds the buttons for the movie player
ButtonPanel(MoviePlayer) - Constructor for class ButtonPanel
Constructor that doesn't take any parameters
backward() - Method in class SimpleTurtle
Method to go backward by 100 pixels
backward(int) - Method in class SimpleTurtle
Method to go backward a given number of pixels
blockingPlay() - Method in class SimpleSound
Plays the sound, then sleeps for how long the sound SHOULD last.
blockingPlayAtRateDur(double, double) - Method in class SimpleSound
First, checks the value of durInFrames to make sure that it is not larger than Integer.MAX_VALUE to guarrantee safe casting.
blockingPlayAtRateInRange(float, int, int) - Method in class SimpleSound
Calls playAtRateInRange(rate, startFrame, endFrame, true) .
blockingPlayOld() - Method in class SimpleSound
Creates a new Playback thread, starts it, then waits for the entire sound to finish playing before it returns.
bytesToInt16(byte[], int, boolean) - Static method in class TConversionTool
Converts 2 successive bytes starting at byteOffset in buffer to a signed integer sample with 16bit range.
bytesToInt24(byte[], int, boolean) - Static method in class TConversionTool
Converts 3 successive bytes starting at byteOffset in buffer to a signed integer sample with 24bit range.
bytesToInt32(byte[], int, boolean) - Static method in class TConversionTool
Converts a 4 successive bytes starting at byteOffset in buffer to a signed 32bit integer sample.

C

CELLO - Static variable in class MidiPlayer
 
CLARINET - Static variable in class MidiPlayer
 
Cartoon - class Cartoon.
Class to create a cartoon out of a picture
Cartoon(Picture) - Constructor for class Cartoon
Constructor that takes the picture
ColorChooser - class ColorChooser.
A class to make working with a color chooser easier for students.
ColorChooser() - Constructor for class ColorChooser
 
ColorSquares - class ColorSquares.
Class that demonstrates creating buttons with different colors in a panel
ColorSquares() - Constructor for class ColorSquares
Constructor that takes no arguments
changeToBaseOne() - Method in class PictureExplorer
Changes the number system to start at one
checkScroll() - Method in class PictureExplorer
Method to check that the current position is in the viewing area and if not scroll to center the current position if possible
checkScroll() - Method in class SoundExplorer
Method to check that the current position is in the viewing area and if not scroll to center the current position if possible
cleanUp() - Method in class MidiPlayer
Method to clean up the midi player
clearBackground() - Method in interface ModelDisplay
Method to clear the background
clearBackground() - Method in class World
Method to clear the background picture
clearPath() - Method in class Pen
Method to clear the path stored for this pen
clearPath() - Method in class SimpleTurtle
Method to clear the path (history of where the turtle has been)
close() - Method in class MidiPlayer
Method to close the midi player
close() - Method in class PictureFrame
A method to close a picture frame
colorArray - Variable in class ColorSquares
 
colorDistance(Color) - Method in class Pixel
Method to get the distance between this pixel's color and the passed color
colorDistance(Color, Color) - Static method in class Pixel
Method to compute the color distances between two color objects
computeNetPay(double) - Method in class HourlyWorker
 
containsTurtle(Turtle) - Method in class World
Method to check if this world contains the passed turtle
convert(String, String) - Static method in class SimpleSound
Method to convert a mp3 sound into a wav sound
copyPicture(SimplePicture) - Method in class SimplePicture
Method that will copy all of the passed source picture into the current picture object
createGraphics() - Method in class SimplePicture
Method to get a Graphics2D object for this picture which can be used to do 2D drawing on the picture
createLocationPanel(Font) - Method in class PictureExplorer
Create the pixel location panel

D

DatabaseManager - class DatabaseManager.
Class that handles the connection with the database
DatabaseManager(String, String) - Constructor for class DatabaseManager
Constructor that takes the driver name and url
Deer - class Deer.
Class that represents a deer.
Deer(ModelDisplay) - Constructor for class Deer
Constructor that takes the model display (the original position will be randomally assigned
Deer(int, int, ModelDisplay) - Constructor for class Deer
Constructor that takes the x and y and a model display to draw it on
DigitalPicture - interface DigitalPicture.
Interface to describe a digital picture.
die() - Method in class Deer
Method that handles when a deer dies
displayImage() - Method in class PictureFrame
A method to make sure the frame is displayed
displayPixelInformation(String, String) - Method in class PictureExplorer
Method to display the pixel information from the passed x and y but also converts x and y from strings
draw(Graphics) - Method in class AnimationPanel
Method to paint the frames
drawInfoString(Graphics) - Method in class SimpleTurtle
Method to draw the information string
drop(Picture) - Method in class SimpleTurtle
Method to draw a passed picture at the current turtle location and rotation in a picture or model display

E

explore() - Method in class SimplePicture
Method to open a picture explorer on a copy of this simple picture
explore() - Method in class SimpleSound
Method to open a sound viewer on a copy of this sound

F

FLUTE - Static variable in class MidiPlayer
 
FRENCH_HORN - Static variable in class MidiPlayer
 
FileChooser - class FileChooser.
A class to make working with a file chooser easier for students.
FileChooser() - Constructor for class FileChooser
 
FrameSequence - class FrameSequence.
Class to save frames in a movie to a directory.
FrameSequence(String) - Constructor for class FrameSequence
Constructor that takes a directory name
FrameSequence(String, String) - Constructor for class FrameSequence
Constructor that takes a directory name and a base file name
FrameSequencer - class FrameSequencer.
Class used to save frames in a movie to a directory and show frames from a movie.
FrameSequencer(String) - Constructor for class FrameSequencer
Constructor that takes a directory name
FrameSequencer(String, String) - Constructor for class FrameSequencer
Constructor that takes a directory name and a base file name
find(String, String[]) - Static method in class SearchMethods
Implement a simple binary search through the list
forward() - Method in class SimpleTurtle
Method to move the turtle foward 100 pixels
forward(int) - Method in class SimpleTurtle
Method to move the turtle forward the given number of pixels
frame - Variable in class PictureFrame
Main window used as the frame

G

GUITAR - Static variable in class MidiPlayer
 
Greeter - class Greeter.
Class to show how to define a very simple class.
Greeter() - Constructor for class Greeter
 
getAlpha() - Method in class Pixel
Method to get the amount of alpha (transparency) at this pixel.
getAudioFileFormat() - Method in class SimpleSound
Method that returns the AudioFileFormat describing this simple sound.
getAverage() - Method in class Pixel
Method to get the average of the colors of this pixel
getAverage() - Method in class Student
 
getBaseName() - Method in class FrameSequence
Method to get the base name
getBaseName() - Method in class FrameSequencer
Method to get the base name
getBasicPixel(int, int) - Method in interface DigitalPicture
 
getBasicPixel(int, int) - Method in class SimplePicture
Method to return the pixel value as an int for the given x and y location
getBlue() - Method in class Pixel
Method to get the amount of blue at this pixel.
getBlue(int) - Static method in class Pixel
Method to get the blue value from a pixel represented as an int
getBodyColor() - Method in class SimpleTurtle
Method to get the body color
getBuffer() - Method in class SimpleSound
Method that returns the byte array representation of this simple sound.
getBufferedImage() - Method in interface DigitalPicture
 
getBufferedImage() - Method in class SimplePicture
Method to get the buffered image
getChannels() - Method in class SimpleSound
Obtains the number of channels of this sound.
getClosestDeer(double) - Method in class Wolf
Method to get the closest deer within the passed distance to this wolf
getColor() - Method in class Pen
Method to get the pen (ink) color
getColor() - Method in class Pixel
Method to get a color object that represents the color at this pixel.
getCurrIndex() - Method in class AnimationPanel
Method to get the current index
getCurrentX() - Method in class ImageDisplay
Method to get the current x
getCurrentY() - Method in class ImageDisplay
Method to get the current y
getDEBUG() - Method in class SimpleSound
Method to get the value of the debug flag
getDirectory() - Method in class FrameSequence
Method to get the directory to write the frames to
getDirectory() - Method in class FrameSequencer
Method to get the directory to write the frames to
getDistance(int, int) - Method in class SimpleTurtle
Get the distance from the passed x and y location
getExtension() - Method in class SimplePicture
Method to get the extension for this picture
getFileName() - Method in interface DigitalPicture
 
getFileName() - Method in class SimplePicture
Method to get the file name associated with the picture
getFileName() - Method in class SimpleSound
Method that returns the name of the file this sound came from.
getFrame(int) - Method in class SimpleSound
Returns an array containing all of the bytes in the specified frame.
getFrameNumber() - Method in class FrameSequence
Method to get the frame number
getFrameNumber() - Method in class FrameSequencer
Method to get the frame number
getFramesPerSec() - Method in class AnimationPanel
Method to get the frames per second
getGraphics() - Method in interface ModelDisplay
Method that returns the graphics context for this model display
getGraphics() - Method in class SimplePicture
Method to get a graphics object for this picture to use to draw on
getGraphics() - Method in class World
Method to get the graphics context for drawing on
getGreen() - Method in class Pixel
Method to get the amount of green at this pixel.
getGreen(int) - Static method in class Pixel
Method to get the green value from a pixel represented as an int
getHead() - Static method in class Deer
Method to get the head of the linked list of deer
getHead() - Static method in class Wolf
Method to get the head of the linked list of wolves
getHeading() - Method in class SimpleTurtle
Method to get the current heading
getHeight() - Method in interface DigitalPicture
 
getHeight() - Method in interface ModelDisplay
Method to get the height of the display
getHeight() - Method in class SimplePicture
Method to get the height of the picture in pixels
getHeight() - Method in class SimpleTurtle
Method to return the height of this object
getHeight() - Method in class World
Method to get the height in pixels
getImage() - Method in interface DigitalPicture
 
getImage() - Method in class ImageDisplay
Method to get the image
getImage() - Method in class SimplePicture
Method to get an image from the picture
getInfoColor() - Method in class SimpleTurtle
Method to get the information color
getInstrumentNames() - Method in class MidiPlayer
Method to get the map of index number to instrument names
getIntNumber(String) - Static method in class SimpleInput
Method to allow the user to input an integer.
getIntNumber(String, int, int) - Static method in class SimpleInput
Method to get an integer between a minimum and maximum (inclusive)
getLastTurtle() - Method in class World
Metod to get the last turtle in this world
getLeftSample(int) - Method in class SimpleSound
Obtains the left sample of the audio data contained at the specified frame.
getLength() - Method in class SimpleSound
Method to return the length of the sound as the number of samples
getLengthInBytes() - Method in class SimpleSound
Obtains the length of this sound in bytes.
getLengthInFrames() - Method in class SimpleSound
Obtains the length of the audio data contained in the file, expressed in sample frames.
getListForQuery(String) - Method in class DatabaseManager
Method to execute a query and return a list of strings for the first returned row
getMediaDirectory() - Static method in class FileChooser
Method to get the directory for the media
getMediaPath(String) - Static method in class FileChooser
Method to get the full path for the passed file name
getMediaPath(String) - Static method in class SimplePicture
Method to get the directory for the media
getModelDisplay() - Method in class SimpleTurtle
Method to get the model display for this simple turtle
getMoviePlayer() - Method in class FrameSequencer
Method to get the movie player to use to show this sequence
getName() - Method in class SimpleTurtle
Method to get the name of the turtle
getNext() - Method in class Deer
Method to get the next Deer in the linked list
getNext() - Method in class Wolf
Method to get the next Wolf in the linked list
getNumFrames() - Method in class FrameSequence
Method to get the number of frames in this sequence
getNumFrames() - Method in class FrameSequencer
Method to get the number of frames in this sequence
getNumSamples() - Method in class SimpleSound
Returns the number of samples in this sound
getNumber(String) - Static method in class SimpleInput
Method to allow the user to input a number.
getPen() - Method in class SimpleTurtle
Method to get the pen
getPenColor() - Method in class SimpleTurtle
Method to get the pen color
getPenWidth() - Method in class SimpleTurtle
Method to get the pen width
getPicture() - Method in class SimpleTurtle
Method to get the picture for this simple turtle
getPicture() - Method in class World
Method to get the background picture
getPictureFrame() - Method in class FrameSequence
Method to get the picture frame to use to show this sequence
getPictureFrame() - Method in class SimplePicture
Method to get the picture frame for the picture
getPictureWithHeight(int) - Method in class SimplePicture
Method to create a new picture of the passed height.
getPixel(int, int) - Method in interface DigitalPicture
 
getPixel(int, int) - Method in class SimplePicture
Method to get a pixel object for the given x and y location
getPixels() - Method in class SimplePicture
Method to get a one-dimensional array of Pixels for this simple picture
getPlaybacks() - Method in class SimpleSound
Method that returns the vector of playback threads currently active on this sound.
getPlaying() - Method in class Playback
Method to return true if this playback thread is playing and false otherwise
getPreferredScrollableViewportSize() - Method in class ImageDisplay
Method to return the preferred size
getRed() - Method in class Pixel
Method to get the amount of red at this pixel.
getRed(int) - Static method in class Pixel
Method to get the red value from a pixel represented as an int
getRightSample(int) - Method in class SimpleSound
Obtains the right sample of the audio data contained at the specified frame.
getSample(int) - Method in class SimpleSound
Method to create and return a SoundSample object for the given frame number
getSampleValue(int) - Method in class SimpleSound
If this is a mono sound, obtains the single sample contained within this frame, else obtains the first (left) sample contained in the specified frame.
getSampleValueAt(int) - Method in class SimpleSound
Method to get the sample at the passed index and handle any SoundExceptions
getSamples() - Method in class SimpleSound
Method to create and return an array of SoundSample objects
getSamplingRate() - Method in class SimpleSound
Method to get the sampling rate of this sound
getScrollableBlockIncrement(Rectangle, int, int) - Method in class ImageDisplay
Method to return the block increment for scrolling
getScrollableTracksViewportHeight() - Method in class ImageDisplay
Method to check if the viewport height is the source height
getScrollableTracksViewportWidth() - Method in class ImageDisplay
Method to check if the viewport width is the source width
getScrollableUnitIncrement(Rectangle, int, int) - Method in class ImageDisplay
Method to return the unit increment for scrolling
getShellColor() - Method in class SimpleTurtle
Method to get the shell color
getShowInfo() - Method in class SimpleTurtle
Method to get value of show info
getSoundExplorer() - Method in class SimpleSound
Method that returns the SoundExplorer
getString(String) - Static method in class SimpleInput
Method to get a string input by the user.
getStringForQuery(String) - Method in class DatabaseManager
Method to execute a query and return a string of the first result
getSynthesizer() - Method in class MidiPlayer
Method to return the synthesizer
getTitle() - Method in interface DigitalPicture
 
getTitle() - Method in class SimplePicture
Method to get the title of the picture
getTransformEnclosingRect(AffineTransform) - Method in class SimplePicture
Method to get the coordinates of the enclosing rectangle after this transformation is applied to the current picture
getTurtleIterator() - Method in class World
Method to get an iterator on the list of turtles
getTurtleList() - Method in class World
Method to get the list of turtles in the world
getValue() - Method in class SoundSample
Method to get the value of this sample as in int and handle the possible sound exception
getWidth() - Method in interface DigitalPicture
 
getWidth() - Method in interface ModelDisplay
Method to get the width of the display
getWidth() - Method in class Pen
Method to get the width of the pen
getWidth() - Method in class SimplePicture
Method to get the width of the picture in pixels
getWidth() - Method in class SimpleTurtle
Method to return the width of this object
getWidth() - Method in class World
Method to get the width in pixels
getX() - Method in class Pixel
Method to get the x location of this pixel.
getXPos() - Method in class SimpleTurtle
Method to get the current x position
getY() - Method in class Pixel
Method to get the y location of this pixel.
getYPos() - Method in class SimpleTurtle
Method to get the current y position

H

HARMONICA - Static variable in class MidiPlayer
 
HARP - Static variable in class MidiPlayer
 
HELICOPTER - Static variable in class MidiPlayer
 
HourlyWorker - class HourlyWorker.
 
HourlyWorker(String, String, double) - Constructor for class HourlyWorker
 
hide() - Method in class PictureFrame
A method to hide the frame
hide() - Method in class SimplePicture
Method to hide the picture
hide() - Method in class SimpleTurtle
Method to hide the turtle (stop showing it) This doesn't affect the pen status
hide() - Method in class World
Method to hide the frame

I

ICE_CUBE - Static variable in class MidiPlayer
 
ImageDisplay - class ImageDisplay.
Class to display an image and the current location with a + sign Copyright Georgia Institute of Technology 2004
ImageDisplay(Image) - Constructor for class ImageDisplay
Constructor that takes the image to display
ImageDisplay(Image, int, int) - Constructor for class ImageDisplay
Constructor that takes the image and current x and y
imageIcon - Variable in class PictureFrame
ImageIcon used to display the picture in the label
init() - Method in class ColorSquares
Method to initialize the panel
init() - Method in class Deer
Method to initialize the new deer object
init() - Method in class Wolf
Method to initialize the new wolf object
intToBytes16(int, byte[], int, boolean) - Static method in class TConversionTool
Converts a 16 bit sample of type int to 2 bytes in an array.
intToBytes24(int, byte[], int, boolean) - Static method in class TConversionTool
Converts a 24 bit sample of type int to 3 bytes in an array.
intToBytes32(int, byte[], int, boolean) - Static method in class TConversionTool
Converts a 32 bit sample of type int to 4 bytes in an array.
intToUnsignedByte(int) - Static method in class TConversionTool
 
intToUnsignedBytes16(int, byte[], int, boolean) - Static method in class TConversionTool
 
intToUnsignedBytes24(int, byte[], int, boolean) - Static method in class TConversionTool
 
intToUnsignedBytes32(int, byte[], int, boolean) - Static method in class TConversionTool
 
isPenDown() - Method in class Pen
Method to get pen down status
isPenDown() - Method in class SimpleTurtle
Method to check if the pen is down
isShown() - Method in class FrameSequence
Method to check if the frame sequence is being shown
isShown() - Method in class FrameSequencer
Method to check if the frame sequence is being shown
isStereo() - Method in class SimpleSound
Method to check if a sound is stereo (2 channels) or not
isVisible() - Method in class SimpleTurtle
Method to get the value of the visible flag

J

JAZZ_GUITAR - Static variable in class MidiPlayer
 

L

lfind(String, String[]) - Static method in class SearchMethods
Implement a linear search through the list
linear2alaw(short) - Static method in class TConversionTool
 
linear2ulaw(int) - Static method in class TConversionTool
Converts a linear signed 16bit sample to a uLaw byte.
load(Image) - Method in interface DigitalPicture
 
load(String) - Method in interface DigitalPicture
 
load(Image) - Method in class SimplePicture
Method to load the buffered image with the passed image
load(String) - Method in class SimplePicture
Method to load the picture from the passed file name
loadFromFile(String) - Method in class SimpleSound
Resets the fields of this sound so that it now represents the sound in the specified file.
loadPictureAndShowIt(String) - Method in class SimplePicture
Method to load a picture from a file name and show it in a picture frame

M

MUSIC_BOX - Static variable in class MidiPlayer
 
MidiPlayer - class MidiPlayer.
Class that knows how to play notes using the midi standard Copyright 2004 Georgia Institute of Technology
MidiPlayer() - Constructor for class MidiPlayer
Constructor that takes no arguments
ModelDisplay - interface ModelDisplay.
Interface to used to communicate between a model and its display Copyright Georgia Institute of Technology 2004
MoviePlayer - class MoviePlayer.
Class that can play movies from multiple frames
MoviePlayer(List) - Constructor for class MoviePlayer
Constructor that takes a list of pictures
MoviePlayer(String) - Constructor for class MoviePlayer
Constructor that takes a directory and shows a movie from it
main(String[]) - Static method in class AnimationPanel
Method to test
main(String[]) - Static method in class Cartoon
 
main(String[]) - Static method in class ColorSquares
 
main(String[]) - Static method in class DatabaseManager
 
main(String[]) - Static method in class Deer
main method for testing
main(String[]) - Static method in class FrameSequencer
 
main(String[]) - Static method in class Greeter
 
main(String[]) - Static method in class HourlyWorker
Main method for testing
main(String[]) - Static method in class MoviePlayer
 
main(String[]) - Static method in class PictureExplorer
Test Main.
main(String[]) - Static method in class SearchMethods
 
main(String[]) - Static method in class Student
 
main(String[]) - Static method in class Test
 
main(String[]) - Static method in class TurtleTest
 
main(String[]) - Static method in class Wolf
main method for testing
makeAIS() - Method in class SimpleSound
Creates an AudioInputStream for this sound from the buffer and the audioFileFormat.
modelChanged() - Method in interface ModelDisplay
method to notify the thing that displays that the model has changed
modelChanged() - Method in class World
Method that allows the model to notify the display
mouseClicked(MouseEvent) - Method in class PictureExplorer
Method called when the mouse is clicked
mouseClicked(MouseEvent) - Method in class SoundExplorer
Handle a mouse click event
mouseDragged(MouseEvent) - Method in class PictureExplorer
Called when the mouse is dragged (button held down and moved)
mouseDragged(MouseEvent) - Method in class SoundExplorer
Method to handle a mouse dragged event
mouseEntered(MouseEvent) - Method in class PictureExplorer
Method called when the component is entered (mouse moves over it)
mouseEntered(MouseEvent) - Method in class SoundExplorer
Method to handle a mouse entered event
mouseExited(MouseEvent) - Method in class PictureExplorer
Method called when the mouse moves over the component
mouseExited(MouseEvent) - Method in class SoundExplorer
Method to handle a mouse exited event
mouseMoved(MouseEvent) - Method in class PictureExplorer
Method called when the mouse is moved with no buttons down
mouseMoved(MouseEvent) - Method in class SoundExplorer
Method to handle a mouse move event
mousePressed(MouseEvent) - Method in class PictureExplorer
Method called when the mouse button is pushed down
mousePressed(MouseEvent) - Method in class SoundExplorer
Method to handle a mouse press
mouseReleased(MouseEvent) - Method in class PictureExplorer
Method called when the mouse button is released
mouseReleased(MouseEvent) - Method in class SoundExplorer
Method to handle a mouse release
moveTo(int, int) - Method in class SimpleTurtle
Method to move to turtle to the given x and y location

O

OBOE - Static variable in class MidiPlayer
 

P

PIANO - Static variable in class MidiPlayer
 
PICCOLO - Static variable in class MidiPlayer
 
PathSegment - class PathSegment.
This class represents a displayable path segment it has a color, width, and a Line2D object Copyright Georgia Institute of Technology 2005
PathSegment(Color, int, Line2D.Float) - Constructor for class PathSegment
Constructor that takes the color, width, and line
Pen - class Pen.
Class to represent a pen which has a color, width, and a list of path segments that it should draw.
Pen() - Constructor for class Pen
Constructor that takes no arguments
Pen(Color, int) - Constructor for class Pen
Constructor that takes all the ink color, and width
Pen(Color, int, boolean) - Constructor for class Pen
Constructor that takes the ink color, width, and penDown flag
Picture - class Picture.
A class that represents a picture.
Picture() - Constructor for class Picture
Constructor that takes no arguments
Picture(String) - Constructor for class Picture
Constructor that takes a file name and creates the picture
Picture(int, int) - Constructor for class Picture
Constructor that takes the width and height
Picture(Picture) - Constructor for class Picture
Constructor that takes a picture and creates a copy of that picture
PictureExplorer - class PictureExplorer.
Displays a picture and lets you explore the picture by displaying the x, y, red, green, and blue values of the pixel at the cursor when you click a mouse button or press and hold a mouse button while moving the cursor.
PictureExplorer(DigitalPicture) - Constructor for class PictureExplorer
Public constructor
PictureFrame - class PictureFrame.
Class that holds a digital picture and displays it.
PictureFrame() - Constructor for class PictureFrame
A constructor that takes no arguments.
PictureFrame(DigitalPicture) - Constructor for class PictureFrame
A constructor that takes a picture to display
Pixel - class Pixel.
Class that references a pixel in a picture.
Pixel(DigitalPicture, int, int) - Constructor for class Pixel
A constructor that take the x and y location for the pixel and the picture the pixel is coming from
Playback - class Playback.
The class Playback extends from Thread and allows for playback of a simple sound.
Playback(SimpleSound) - Constructor for class Playback
Constructor that takes the simple sound to be played
paintComponent(Graphics) - Method in class AnimationPanel
Method to paint the component
paintComponent(Graphics) - Method in class ImageDisplay
Method to handle displaying this object
paintComponent(Graphics) - Method in class PathSegment
Method to paint this path segment
paintComponent(Graphics) - Method in class Pen
Metod to paint the pen path
paintComponent(Graphics) - Method in class SimpleTurtle
Method to paint the turtle
paintComponent(Graphics) - Method in class World
Method to paint this component
penDown() - Method in class SimpleTurtle
Method to set the pen down
penUp() - Method in class SimpleTurtle
Method to lift the pen up
pickAColor() - Static method in class ColorChooser
Method to let the user pick a color and return the color object.
pickAFile() - Static method in class FileChooser
Method to let the user pick a file and return the full file name as a string.
play(int) - Method in class FrameSequencer
Method to play the frames (pictures) added so far
play() - Method in class SimpleSound
Creates a new Playback thread and starts it.
playAtRateDur(double, double) - Method in class SimpleSound
Checks the value of durInFrames to make sure that it is not larger than Integer.MAX_VALUE to guarrantee safe casting.
playAtRateInRange(float, int, int) - Method in class SimpleSound
Calls playAtRateInRange(rate, startFrame, endFrame, false) .
playAtRateInRange(float, int, int, boolean) - Method in class SimpleSound
Plays the specified segment of this sound at the given sample rate.
playJingleBells() - Method in class MidiPlayer
Method to play Jingle Bells
playJingleBells4() - Method in class MidiPlayer
Method to play the first 4 measures of jingle bells with each measure taking 1000 milliseconds (1 second)
playJingleBellsV1V2() - Method in class MidiPlayer
Method to play the first verse of jingle bells with each measure taking 1000 milliseconds (1 second) It is in 2/4 time
playMovie() - Method in class MoviePlayer
Method to play the movie from the beginning
playMovie(int) - Method in class MoviePlayer
Method to play the movie from the beginning
playNote(int, int, int) - Method in class MidiPlayer
Method to play a note
playNote(int, int) - Method in class MidiPlayer
Method to play a note
playNote(int, int, int) - Static method in class SimpleSound
Method to play a note using MIDI
playNotesOnChannel(int, int[], int[], int[]) - Method in class MidiPlayer
Method to play an array of notes with the given durations and intensities
printError(String) - Method in class SimpleSound
Invokes printError(message, null)
printError(String, Exception) - Method in class SimpleSound
Prints the given String to the "standard" error output stream, then prints a stack trace on the exception, and then exits the program.

R

remove(Object) - Method in interface ModelDisplay
Method to remove the model from the world
remove(Object) - Method in class World
Method to remove the passed object from the world
removePlayback(Playback) - Method in class SimpleSound
Deletes the specified playback object from the Vector.
repaint() - Method in class PictureExplorer
Repaints the image on the scrollpane.
repaint() - Method in class PictureFrame
Method to force the picture frame to repaint (redraw)
repaint() - Method in class SimplePicture
Method to force the picture to redraw itself.
replay(int) - Method in class FrameSequence
Method to replay the frames (pictures) added so far
rest(int) - Method in class MidiPlayer
Method to rest for a specified number of milliseconds
run() - Method in class Playback
Starts this thread.

S

STEEL_GUITAR - Static variable in class MidiPlayer
 
SearchMethods - class SearchMethods.
Demonstrate search algorithms
SearchMethods() - Constructor for class SearchMethods
 
SimpleInput - class SimpleInput.
Class to make it easy to get input from a user using JOptionPane Copyright Georgia Institute of Technology 2004
SimpleInput() - Constructor for class SimpleInput
 
SimpleOutput - class SimpleOutput.
Class to make it easy to do output to the user using JOptionPane Copyright Georgia Institute of Technology 2004
SimpleOutput() - Constructor for class SimpleOutput
 
SimplePicture - class SimplePicture.
A class that represents a simple picture.
SimplePicture() - Constructor for class SimplePicture
A Constructor that takes no arguments.
SimplePicture(String) - Constructor for class SimplePicture
A Constructor that takes a file name and uses the file to create a picture
SimplePicture(int, int) - Constructor for class SimplePicture
A constructor that takes the width and height desired for a picture and creates a buffered image of that size.
SimplePicture(SimplePicture) - Constructor for class SimplePicture
A Constructor that takes a picture to copy information from
SimpleSound - class SimpleSound.
The SimpleSound class is an implementation of the Java Sound API specifically designed for use with students.
SimpleSound() - Constructor for class SimpleSound
Constructs a SimpleSound of 3 seconds long.
SimpleSound(int) - Constructor for class SimpleSound
Constructs a SimpleSound of the specified length.
SimpleSound(int, boolean) - Constructor for class SimpleSound
Constructs a simple sound with the given sample size in bits and type of endian (big or little)
SimpleSound(String) - Constructor for class SimpleSound
Constructs a new SimpleSound from the given file.
SimpleSound(SimpleSound) - Constructor for class SimpleSound
Constructor that creates a new SimpleSound by copying a passed SimpleSound
SimpleTurtle - class SimpleTurtle.
Class that represents a Logo-style turtle.
SimpleTurtle(int, int) - Constructor for class SimpleTurtle
Constructor that takes the x and y position for the turtle
SimpleTurtle(int, int, ModelDisplay) - Constructor for class SimpleTurtle
Constructor that takes the x and y position and the model displayer
SimpleTurtle(ModelDisplay) - Constructor for class SimpleTurtle
Constructor that takes a model display and adds a turtle in the middle of it
SimpleTurtle(int, int, Picture) - Constructor for class SimpleTurtle
Constructor that takes the x and y position and the picture to draw on
SimpleTurtle(Picture) - Constructor for class SimpleTurtle
Constructor that takes the picture to draw on and will appear in the middle
Sound - class Sound.
Class that represents a sound.
Sound(String) - Constructor for class Sound
Constructor that takes a file name
Sound(int) - Constructor for class Sound
Constructor that takes the number of seconds that this sound will have
Sound(Sound) - Constructor for class Sound
Constructor that takes a sound to copy
SoundException - exception SoundException.
Class to use to report a sound exception Copyright Georgia Institute of Technology 2004
SoundException(String) - Constructor for class SoundException
 
SoundExplorer - class SoundExplorer.
This class allows you to explore a Sound.
SoundExplorer(SimpleSound, boolean) - Constructor for class SoundExplorer
Constructor that takes a sound and a boolean flag
SoundSample - class SoundSample.
Class that represents a sample of a sound.
SoundSample(SimpleSound, int) - Constructor for class SoundSample
Constructor that takes a sound and valueArray
SoundTest - class SoundTest.
A JUnit test case class.
SoundTest() - Constructor for class SoundTest
 
Student - class Student.
 
Student(String, double, double, double) - Constructor for class Student
 
Student(String) - Constructor for class Student
 
setAllPixelsToAColor(Color) - Method in class SimplePicture
Method to set the color in the picture to the passed color
setAlpha(int) - Method in class Pixel
Method to set the alpha (transparency) to a new alpha value
setAudioFileFormat(AudioFileFormat) - Method in class SimpleSound
Changes the AudioFileFormat of this sound.
setAutoRepaint(boolean) - Method in class World
Method to set the automatically repaint flag
setBase(int) - Method in class SoundExplorer
Method to set the base for the index.
setBaseName(String) - Method in class FrameSequence
Method to set the base name
setBaseName(String) - Method in class FrameSequencer
Method to set the base name
setBasicPixel(int, int, int) - Method in interface DigitalPicture
 
setBasicPixel(int, int, int) - Method in class SimplePicture
Method to set the value of a pixel in the picture from an int
setBlue(int) - Method in class Pixel
Method to set the blue to a new blue value
setBodyColor(Color) - Method in class SimpleTurtle
Method to set the body color which will also set the pen color
setBuffer(byte[]) - Method in class SimpleSound
Changes the byte array that represents this sound.
setChannel(int) - Method in class MidiPlayer
Method to change the current channel
setColor(Color) - Method in class Pen
Method to set the pen (ink) color
setColor(Color) - Method in class Pixel
Method to set the pixel color to the passed in color object.
setColor(Color) - Method in class SimpleTurtle
Method to set the color of the turtle.
setCurrentX(int) - Method in class ImageDisplay
Method to set the current x
setCurrentY(int) - Method in class ImageDisplay
Method to set the current y
setDirectory(String) - Method in class FrameSequence
Method to set the directory to write the frames to
setDirectory(String) - Method in class FrameSequencer
Method to set the directory to write the frames to
setFrame(int, byte[]) - Method in class SimpleSound
Changes the value of each byte of the specified frame.
setFramesPerSec(int) - Method in class AnimationPanel
Method to set the frames per second to show the movie
setGrade1(double) - Method in class Student
 
setGrade2(double) - Method in class Student
 
setGrade3(double) - Method in class Student
 
setGreen(int) - Method in class Pixel
Method to set the green to a new green value
setHeading(double) - Method in class SimpleTurtle
Method to set the heading
setHeight(int) - Method in class SimpleTurtle
Method to set the height of this object
setImage(Image) - Method in class ImageDisplay
Method to set the image
setInfoColor(Color) - Method in class SimpleTurtle
Method to set the information color
setInstrument(int) - Method in class MidiPlayer
Method to set the instrument to play
setLeftSample(int, int) - Method in class SimpleSound
 
setMediaPath(String) - Static method in class FileChooser
Method to set the media path by setting the directory to use
setMediaPath(String) - Static method in class SimplePicture
Method to set the media path by setting the directory to use
setModelDisplay(ModelDisplay) - Method in class SimpleTurtle
Method to set the model display for this simple turtle
setName(String) - Method in class SimpleTurtle
Method to set the name of the turtle
setPen(Pen) - Method in class SimpleTurtle
Method to set the pen
setPenColor(Color) - Method in class SimpleTurtle
Method to set the pen color
setPenDown(boolean) - Method in class Pen
Method to set the pen down value
setPenDown(boolean) - Method in class SimpleTurtle
Method to set the pen down boolean variable
setPenWidth(int) - Method in class SimpleTurtle
Method to set the pen width
setPicture(Picture) - Method in class PictureFrame
Method to set the picture to show in this picture frame
setPicture(Picture) - Method in class SimpleTurtle
Method to set the picture for this simple turtle
setPicture(Picture) - Method in class World
Method to set the background picture
setPictureFrame(PictureFrame) - Method in class FrameSequence
Method to set the picture frame to use to shown this
setPictureFrame(PictureFrame) - Method in class SimplePicture
Method to set the picture frame for this picture
setRed(int) - Method in class Pixel
Method to set the red to a new red value
setRightSample(int, int) - Method in class SimpleSound
 
setSampleValue(int, int) - Method in class SimpleSound
Changes the value of the sample found at the specified frame.
setSampleValueAt(int, int) - Method in class SimpleSound
Method to set the sample value at the passed index to the passed value
setShellColor(Color) - Method in class SimpleTurtle
Method to set the shell color
setShowInfo(boolean) - Method in class SimpleTurtle
Method to show the turtle information string
setShown(boolean) - Method in class FrameSequence
Method to set the shown flag
setShown(boolean) - Method in class FrameSequencer
Method to set the shown flag
setSoundExplorer(SoundExplorer) - Method in class SimpleSound
Changes the explorer of this object.
setTitle(String) - Method in interface DigitalPicture
 
setTitle(String) - Method in class PictureExplorer
Set the title of the frame
setTitle(String) - Method in class PictureFrame
Method to set the title for the picture frame
setTitle(String) - Method in class SimplePicture
Method to set the title for the picture
setTitle(String) - Method in class SoundExplorer
Method to set the title on the main window
setValue(int) - Method in class SoundSample
Method to set the value of this sample and handle the sound exception
setVisible(boolean) - Method in class MoviePlayer
Method to set the visibility of the frame
setVisible(boolean) - Method in class PictureFrame
A method to set the visible flag on the frame
setVisible(boolean) - Method in class SimplePicture
Method to make this picture visible or not
setVisible(boolean) - Method in class SimpleTurtle
Method to set the visible flag
setWidth(int) - Method in class Pen
Method to set the width of the pen
setWidth(int) - Method in class SimpleTurtle
Method to set the width of this object
show() - Method in interface DigitalPicture
 
show() - Method in class FrameSequence
Method to show the frame sequence
show() - Method in class FrameSequencer
Method to show the frame sequence
show() - Method in class SimplePicture
Method to show the picture in a picture frame
show() - Method in class SimpleTurtle
Method to show the turtle (doesn't affect the pen status
show() - Method in class World
Method to show the frame
showAll() - Method in class AnimationPanel
show all frames starting at 0
showAllFromCurrent() - Method in class AnimationPanel
show animation from current index
showError(String) - Static method in class SimpleOutput
Method to show an error to a user
showInformation(String) - Static method in class SimpleOutput
Method to show information to the user
showNext() - Method in class AnimationPanel
Method to show just the next frame
showNext() - Method in class MoviePlayer
Method to show the next image
showPrev() - Method in class AnimationPanel
Method to show the previous frame
showPrevious() - Method in class MoviePlayer
Method to show the previous image
showWarning(String) - Static method in class SimpleOutput
Method to show a warning to a user
stopPlaying() - Method in class Playback
Stops this thread by breaking the while loop in the run method.

T

TConversionTool - class TConversionTool.
 
TConversionTool() - Constructor for class TConversionTool
 
TELEPHONE - Static variable in class MidiPlayer
 
TENOR_SAX - Static variable in class MidiPlayer
 
TIMPANI - Static variable in class MidiPlayer
 
TROMBONE - Static variable in class MidiPlayer
 
TRUMPET - Static variable in class MidiPlayer
 
TUBA - Static variable in class MidiPlayer
 
Test - class Test.
Class for simple testing Copyright Georgia Institute of Technology 2004
Test() - Constructor for class Test
 
Turtle - class Turtle.
Class that represents a turtle which is similar to a Logo turtle.
Turtle(int, int, Picture) - Constructor for class Turtle
Constructor that takes the x and y and a picture to draw on
Turtle(int, int, ModelDisplay) - Constructor for class Turtle
Constructor that takes the x and y and a model display to draw it on
Turtle(ModelDisplay) - Constructor for class Turtle
Constructor that takes the model display
Turtle(Picture) - Constructor for class Turtle
Constructor that takes a picture to draw on
TurtleTest - class TurtleTest.
 
TurtleTest() - Constructor for class TurtleTest
 
testConnection() - Method in class DatabaseManager
Method for testing the connection
testPickAndPlay() - Method in class SoundTest
A test method.
testQuery(String, int) - Method in class DatabaseManager
Method to test a query and print the results
toString() - Method in class Picture
Method to return a string with information about this picture.
toString() - Method in class Pixel
Method to return a string with information about this pixel
toString() - Method in class SimplePicture
Method to return a string with information about this picture
toString() - Method in class SimpleSound
Obtains a string representation of this JavaSound.
toString() - Method in class SimpleTurtle
Method to return a string with informaiton about this turtle
toString() - Method in class Sound
Method to return the string representation of this sound
toString() - Method in class SoundSample
Method to return a string with the information about this object
toString() - Method in class Student
 
toString() - Method in class World
Method that returns information about this world in the form of a string
turn(int) - Method in class SimpleTurtle
Method to turn the turtle the passed degrees use negative to turn left and pos to turn right
turnLeft() - Method in class SimpleTurtle
Method to turn left
turnRight() - Method in class SimpleTurtle
Method to turn right
turnToFace(SimpleTurtle) - Method in class SimpleTurtle
Method to turn to face another simple turtle
turnToFace(int, int) - Method in class SimpleTurtle
Method to turn towards the given x and y

U

ulaw2linear(byte) - Static method in class TConversionTool
 
unsignedByteToInt(byte) - Static method in class TConversionTool
 
unsignedByteToInt16(byte[], int, boolean) - Static method in class TConversionTool
 
unsignedByteToInt24(byte[], int, boolean) - Static method in class TConversionTool
 
unsignedByteToInt32(byte[], int, boolean) - Static method in class TConversionTool
 
update(LineEvent) - Method in class SoundExplorer
Method to handle the line event update
updateDisplay() - Method in class SimpleTurtle
Method to update the display of this turtle and also check that the turtle is in the bounds
updateImage() - Method in class PictureFrame
A method to update the picture frame image with the image in the picture
updateImageAndShowIt() - Method in class PictureFrame
A method to update the picture frame image with the image in the picture and show it
updatePicture(int, int, int, int) - Method in class Pixel
Method to update the picture based on the passed color values for this pixel

V

VIOLIN - Static variable in class MidiPlayer
 

W

WHISTLE - Static variable in class MidiPlayer
 
Wolf - class Wolf.
Class that represents a wolf.
Wolf(ModelDisplay) - Constructor for class Wolf
Constructor that takes the model display (the original position will be randomly assigned)
Wolf(int, int, ModelDisplay) - Constructor for class Wolf
Constructor that takes the x and y and a model display to draw it on
World - class World.
Class to represent a 2d world that can hold turtles and display them Copyright Georgia Institute of Technology 2004
World() - Constructor for class World
Constructor that takes no arguments
World(boolean) - Constructor for class World
Constructor that takes a boolean to say if this world should be visible or not
World(int, int) - Constructor for class World
Constructor that takes a width and height for this world
write(String) - Method in class SimplePicture
Method to write the contents of the picture to a file with the passed name
write(String) - Method in class SimpleSound
Method to write this sound to a file
writeToFile(String) - Method in class SimpleSound
Creates an audioInputStream from this sound, and then writes this stream out to the file with the specified name.

X

XYLOPHONE - Static variable in class MidiPlayer
 

Z

zoom(double) - Method in class PictureExplorer
Zooms in the on picture by scaling the image.

A B C D E F G H I J L M O P R S T U V W X Z