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

A

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
add(Sound) - Method in class Sound
Method to add the passed sound to this sound
addBox() - Method in class Picture
Method to add a solid red rectangle to the current picture
addBoxToBeach() - Static method in class Picture
Method to add a solid red rectangle to the beach picture
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
addStringToPictures(String, String) - Method in class DirectoryWorker
Method to add a string to every picture in directory
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
 
ALTO_SAX - Static variable in class MidiPlayer
 
AnimationPanel - Class in <Unnamed>
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
 
APPLAUSE - Static variable in class MidiPlayer
 
asArray() - Method in class SimpleSound
Method to return the byte array

B

backward(int) - Method in class OppositeTurtle
Method to go backward by a passed amount (actually will go forward)
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
BASS - Static variable in class MidiPlayer
 
binaryFind(String, String[]) - Static method in class Searcher
Method to use a binary search to find a target string in a sorted array of strings
BIRD - Static variable in class MidiPlayer
 
blendPictures() - Method in class Picture
Method to blend two sisters together onto the current picture
blendPictures(Picture, double) - Method in class Picture
Method to blend two pictures, the current picture object and the passed sourcePict object.
blendSounds() - Method in class Sound
Method to overlap or blend two sounds.
blendSoundsS() - Static method in class Sound
Method to overlap or blend two sounds.
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.
blueChange() - Method in class Picture
Method to set all blue values to 100 in the picture
blueOneHundred() - Method in class Picture
Method to set the blue values to 100 in a rectangle of 100 pixels with x and y starting at 0 and ending at 99
blur(int) - Method in class Picture
Method to blur the pixels
ButtonPanel - Class in <Unnamed>
Class that holds the buttons for the movie player
ButtonPanel(MoviePlayer) - Constructor for class ButtonPanel
Constructor that doesn't take any parameters
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

Cartoon - Class in <Unnamed>
Class to create a cartoon out of a picture
Cartoon(Picture) - Constructor for class Cartoon
Constructor that takes the picture
CELLO - Static variable in class MidiPlayer
 
changeColors(double, double, double) - Method in class Picture
Method to change the color of each pixel in the picture object by passed in amounts.
changeFreq(double) - Method in class Sound
Method to change the frequency of a sound by the passed factor
changeFreq2(double) - Method in class Sound
Method to change the frequency of a sound by the passed factor
changePixelsWithinDistance(Color, double, double, double, double, int, int, int, int) - Method in class Picture
Method to change all the pixels within a passed distance of a passed color in a range specified by a startX, startY, endX, and endY by passed red, green, and blue factors.
changeRed(double) - Method in class Picture
Method to change the red by an amount
changeRedAndGreen(double, double) - Method in class Picture
Method to change the red and green values in the current picture
changeToBaseOne() - Method in class PictureExplorer
Changes the number system to start at one
changeVolume(double) - Method in class Sound
Method to change the volume (amplitude) of the sound by multiplying the current values in the sound by the passed factor.
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
chromakey(Picture, Color, double) - Method in class Picture
Method to do chromakey using the passed background color and the distance to the color
chromakey(Picture) - Method in class Picture
Method to do chromakey using a blue background
chromakeyBlue(Picture) - Method in class Picture
Method to do chromakey using a blue background
chromakeyRed(Picture) - Method in class Picture
Method to do chromakey using a red background
CLARINET - Static variable in class MidiPlayer
 
ClassPeriod - Class in <Unnamed>
ClassPeriod represents a class period which has a teacher, a period number, and an array of students (max 35)
ClassPeriod() - Constructor for class ClassPeriod
No-argument constructor.
ClassPeriod(String) - Constructor for class ClassPeriod
Constructor that takes just the teacher's name
ClassPeriod(String, int) - Constructor for class ClassPeriod
Constructor that takes the teacher's name and period number
ClassPeriod(String, int, String) - Constructor for class ClassPeriod
Constructor that takes the teacher's name, period number, and a file name that contains the student information
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
clearBlue() - Method in class Picture
Method to clear the blue from the picture (set the blue to 0 for all pixels)
clearBlue2() - Method in class Picture
Method to clear the blue from the picture (set the blue to 0 for all pixels)
clearBlue3() - Method in class Picture
Method to clear the blue from the picture (set the blue to 0 for all pixels)
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)
clearSomeBlue() - Method in class Picture
Method to set the blue to zero if the distance from this color to blue is greater than 100
clip(int, int) - Method in class Sound
Method to create a new sound by copying just part of the current sound to a new sound
clipToEllipse() - Method in class Picture
Method to clip the picture to an ellipse
clipToMessage(String) - Method in class Picture
Method to create a new picture from this picture that shows the part of the current picture that is inside a text message
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
 
ColorChooser - Class in <Unnamed>
A class to make working with a color chooser easier for students.
ColorChooser() - Constructor for class ColorChooser
 
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
ColorSquares - Class in <Unnamed>
 
ColorSquares() - Constructor for class ColorSquares
Constructor that takes no arguments
compileCommands(String) - Method in class GraphicsCompiler
Method to compile the commands in the given file
ConfusedTurtle - Class in <Unnamed>
Class for a confused turtle.
ConfusedTurtle(ModelDisplay) - Constructor for class ConfusedTurtle
A constructor that takes a ModelDisplay object
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
copy(Picture, int, int, int, int, int, int) - Method in class Picture
Method to copy from the passed source picture to the current picture object The copying will start at startX, startY, and end at endX-1 and endY-1 The copy will be placed starting at targetStartX, targetStartY
copy(Picture, int, int) - Method in class Picture
Method to copy the passed picture into the current picture at the given x and y position in the current picture
copy2D(Picture, int, int) - Method in class Picture
Method to copy the passed picture into the current picture at the given x and y position in the current picture
copyFlowerLarger() - Method in class Picture
Method to copy a flower but scaled to 2x normal size onto the current picture
copyFlowers() - Method in class Picture
Method to copy flower pictures to create a collage.
copyFlowersBetter() - Method in class Picture
Method to copy two flowers in a pattern to the bottom (5 pixels from bottom) of the current picture
copyFlowerSmaller() - Method in class Picture
Method to copy the flower but smaller (half as big) on to the current picture
copyJakitaSmaller() - Method in class Picture
Method to copy the picture of Jakita but smaller (half as big) to the current picture
copyKatie() - Method in class Picture
Method to copy the picture of Katie to the upper left corner of the current picture
copyKatieLeftRotation() - Method in class Picture
Method to copy the picture of Katie but rotate her left 90 degrees on the current picture
copyKatieMidway() - Method in class Picture
Method to copy the picture of Katie to (100,100) in the current picture
copyKatiesFace() - Method in class Picture
Method to copy just Katie's face to the current picture
copyNonWhitePixels(Picture, int, int, int, int, int, int) - Method in class Picture
Method to copy from the passed source picture to the current picture object The copying will start at startX, startY, and end at endX-1 and endY-1 The copy will be placed starting at targetStartX, targetStartY
copyPicture(Picture, Rectangle, Rectangle, Composite) - Method in class Picture
Method to copy a picture into the current picture using the passed composite rule
copyPicture(SimplePicture) - Method in class SimplePicture
Method that will copy all of the passed source picture into the current picture object
copyPictureTo(Picture, int) - Method in class Picture
Method that will copy all of the passed source picture into the current picture object starting with the left corner given by xStart.
copyPictureTo(Picture, int, int) - Method in class Picture
Method that will copy all of the passed source picture into the current picture object starting with the left corner given by xStart, yStart
copyRobot() - Method in class Picture
Method to copy the picture of a robot to the 100,100 of the current picture
copySineWave(int, int) - Method in class Sound
Method to copy a sine wave with the given frequency and maximum amplitude to the current sound
countWhitePixels() - Method in class Picture
Method to count the number of white pixels in a picture
createComposite() - Static method in class Picture
Method to try different composite rules in a picture with a gradient painted rectangle and a texture painted ellipse
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
createImagePage(String) - Method in class WebPageWriter
Method to create a page with thumbnails of all the images in a directory
createLocationPanel(Font) - Method in class PictureExplorer
Create the pixel location panel
createPicture() - Method in class Sound
Method to turn a sound into a picture
createSineWave(int, int) - Static method in class Sound
Method to create a one second sine wave sound with the given frequency and maximum amplitude
createSoundFromTextFile(String) - Static method in class Sound
Method to create a sound from a text file
createSoundPage(String) - Method in class WebPageWriter
Method to create a page with links to the sound files in the passed directory
createSquareWave(int, int) - Static method in class Sound
Method to generate a 1 second sound with square waves with the passed frequency and maximum amplitude.
createTriangleWave(int, int) - Static method in class Sound
Method to create a one second triangle wave sound with the given frequency and maximum amplitude

D

darken() - Method in class Picture
Method to darken the color in the picture
DatabaseManager - Class in <Unnamed>
Class that handles the connection with the database
DatabaseManager(String, String) - Constructor for class DatabaseManager
Constructor that takes the driver name and url
decreaseBlue() - Method in class Picture
Method to decrease the blue in the picture by 30%
decreaseGreen() - Method in class Picture
Method to decrease the green in the picture by 30%
decreaseRed() - Method in class Picture
Method to decrease the red by half in the current picture
decreaseRedI() - Method in class Picture
Method to decrease the red by half in a copy of the current picture
decreaseVolume() - Method in class Sound
Method to halve the volume (amplitude) of the sound.
decreaseVolume2() - Method in class Sound
Method to halve the volume (amplitude) of the sound.
Deer - Class in <Unnamed>
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
die() - Method in class Deer
Method that handles when a deer dies
DigitalPicture - Interface in <Unnamed>
Interface to describe a digital picture.
DirectoryWorker - Class in <Unnamed>
Class to work with files in a directory
DirectoryWorker() - Constructor for class DirectoryWorker
 
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
doNothing() - Method in class Sound
Method that just shows how to get each sample value and set it again
doubleFreq() - Method in class Sound
Method to double the frequency of a sound by taking every second sample.
doubleRedInRange(int, int, int, int, double, Color) - Method in class Picture
Method to double the red in a picture in a rectangular area if it is less than the passed distance to the passed color
draw(Graphics) - Method in class AnimationPanel
Method to paint the frames
drawBox(Color, int, int, int, int) - Method in class Picture
Method to draw a filled box on the current picture
drawExample() - Method in class Picture
Method to show different drawing capabilities.
drawFace() - Method in class Picture
Method to draw a face to demonstrate drawing ovals and arcs
drawFilledRectangles() - Method in class Picture
Method to draw a picture with a succession of filled rectangles with the top left corner the darkest and the bottom right the lightest on the current picture
drawGrayEffect() - Method in class Picture
Method to draw a gray effect picture on the current picture
drawGrid() - Method in class Picture
Method to draw a grid on a picture
drawHorizontalCenteredString(String, int) - Method in class Picture
Method to draw a horizontally centered string on the current picture
drawInfoString(Graphics) - Method in class SimpleTurtle
Method to draw the information string
drawRectangles() - Method in class Picture
Method to draw a picture with a succession of rectangles on the current picture
drawSquare() - Method in class Turtle
Method to draw a square with a width and height of 30
drawSquare(int) - Method in class Turtle
Method to draw a square with a width and height of some passed amount.
drawSquare2() - Method in class Turtle
Method to draw a square with a width and height of 30.
drawString(String, int, int) - Method in class Picture
Method to draw a string on the current picture
drawSun(int, int, int, int) - Method in class Picture
Method to add a gradient painted sun to the current picture
drawWideX(Color, float) - Method in class Picture
Method to add two crossed lines to a picture.
drawX(Color) - Method in class Picture
Method to add two crossed lines to a picture.
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

echo(int) - Method in class Sound
Method to add an echo to a sound
echo(int, int) - Method in class Sound
Method to create multiple echoes of the current sound
edgeDetection(double) - Method in class Picture
Method to do a simple edge detection by comparing the absolute value of the difference between the color intensities (average of the color values) between a pixel and the pixel below it.
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

FileChooser - Class in <Unnamed>
A class to make working with a file chooser easier for students.
FileChooser() - Constructor for class FileChooser
 
FileModifier - Class in <Unnamed>
Class to demonstrate using a program to modify another program
FileModifier() - Constructor for class FileModifier
 
FLUTE - Static variable in class MidiPlayer
 
forceToExtremes() - Method in class Sound
Method to set all the sample values to the maximum positive value if they were positive (including 0) and the minimum negative value if they were negative.
FormLetterGenerator - Class in <Unnamed>
Class used to generate form letters
FormLetterGenerator() - Constructor for class FormLetterGenerator
 
forward() - Method in class OppositeTurtle
Method to go forward (actually go backward)
forward(int) - Method in class OppositeTurtle
Method to go forward by the passed amount (actually will go backward)
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
FrameSequencer - Class in <Unnamed>
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
FRENCH_HORN - Static variable in class MidiPlayer
 

G

GeneratedDrawing - Class in <Unnamed>
 
GeneratedDrawing() - Constructor for class GeneratedDrawing
 
generateRandomSentence() - Method in class SentenceGenerator
Method to generate a random sentence
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
Method to return the average of the grades for this student
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.
getCurrentX() - Method in class ImageDisplay
Method to get the current x
getCurrentY() - Method in class ImageDisplay
Method to get the current y
getCurrIndex() - Method in class AnimationPanel
Method to get the current index
getDEBUG() - Method in class SimpleSound
Method to get the value of the debug flag
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 FrameSequencer
Method to get the frame number
getFramesPerSec() - Method in class AnimationPanel
Method to get the frames per second
getGrade(int) - Method in class Student
Method to get the grade in the grade array at the passed index
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
getName() - Method in class Student
Method to return the name of this student
getNameForSequence(String, String) - Method in class SequenceSearcher
Method to search for a given sequence and then report on the name
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
getNumber(String) - Static method in class SimpleInput
Method to allow the user to input a number.
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
getNumStudents() - Method in class ClassPeriod
Method to return the number of students in the period
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
getPeriodNumber() - Method in class ClassPeriod
Method to get the period number
getPhoneNumber(String) - Method in class PhoneBook
Get the phone number for the passed name
getPicture() - Method in class SimpleTurtle
Method to get the picture for this simple turtle
getPicture() - Method in class Student
Method to get the picture for this student
getPicture() - Method in class World
Method to get the background picture
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
getSamples() - Method in class SimpleSound
Method to create and return an array of SoundSample objects
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
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
getStudent(int) - Method in class ClassPeriod
Method to get a student based on the index
getSynthesizer() - Method in class MidiPlayer
Method to return the synthesizer
getTeacherName() - Method in class ClassPeriod
Method to get the teacher's name
getTemp(String) - Method in class TempFinder
Method to find the temperature in the passed file
getTempFromNetwork(String) - Method in class TempFinder
Method to get the temperature from a network
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
GraphicsCompiler - Class in <Unnamed>
Class that reads in a file of graphics instructions, and then generates a NEW Java Program that does the same thing as the instructions.
GraphicsCompiler() - Constructor for class GraphicsCompiler
 
GraphicsInterpreter - Class in <Unnamed>
Class that reads in a file of graphics instructions, and executes them, showing the result.
GraphicsInterpreter() - Constructor for class GraphicsInterpreter
 
grayscale() - Method in class Picture
Method to change the picture to gray scale
grayscaleWithLuminance() - Method in class Picture
Method to change the picture to gray scale with luminance
Greeter - Class in <Unnamed>
Class to show how to define a very simple class.
Greeter() - Constructor for class Greeter
 
GUITAR - Static variable in class MidiPlayer
 

H

halveFreq() - Method in class Sound
Method to halve the frequency of a sound by taking each sample twice.
HARMONICA - Static variable in class MidiPlayer
 
HARP - Static variable in class MidiPlayer
 
HELICOPTER - Static variable in class MidiPlayer
 
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
highlightLightAndDark(double, Color) - Method in class Picture
Method to replace the pixel colors in the current picture object that have a color distance less than the passed amount to white or black with the passed replacement color

I

ICE_CUBE - Static variable in class MidiPlayer
 
ImageDisplay - Class in <Unnamed>
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
increaseHalfDecreaseHalf() - Method in class Sound
Method to increase the first half of the sound (double it) and then decrease the second half (half it).
increaseRed() - Method in class Picture
Method to increase the amount of red by 30%
increaseRed2() - Method in class Picture
Method to increase the amount of red by 1.3 in the current picture
increaseRed3() - Method in class Picture
Method to increase the amount of red by 1.3 in the current picture
increaseVolume() - Method in class Sound
Method to double the volume (amplitude) of the sound
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
interpretCommands(String) - Method in class GraphicsInterpreter
Method to interpret the commands in the given file
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 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

lighten() - Method in class Picture
Method to lighten the colors in the picture
lighten(Color, double, int) - Method in class Picture
Method to lighten the colors in the picture if the distance to the passed color is within the passed distance
linear2alaw(short) - Static method in class TConversionTool
 
linear2ulaw(int) - Static method in class TConversionTool
Converts a linear signed 16bit sample to a uLaw byte.
linearFind(String, String[]) - Static method in class Searcher
Implement a linear search through the list
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

main(String[]) - Static method in class AnimationPanel
Method to test
main(String[]) - Static method in class Cartoon
 
main(String[]) - Static method in class ClassPeriod
Main method
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 DirectoryWorker
 
main(String[]) - Static method in class FileModifier
 
main(String[]) - Static method in class FormLetterGenerator
 
main(String[]) - Static method in class FrameSequencer
 
main(String[]) - Static method in class GeneratedDrawing
 
main(String[]) - Static method in class GraphicsCompiler
 
main(String[]) - Static method in class GraphicsInterpreter
 
main(String[]) - Static method in class Greeter
 
main(String[]) - Static method in class MovieMaker
 
main(String[]) - Static method in class MoviePlayer
 
main(String[]) - Static method in class PhoneBook
 
main(String[]) - Static method in class PictureExplorer
Test Main.
main(String[]) - Static method in class Searcher
Main for testing binary find
main(String[]) - Static method in class SentenceGenerator
 
main(String[]) - Static method in class SequenceSearcher
 
main(String[]) - Static method in class SillyWriter
 
main(String[]) - Static method in class SimpleReader
 
main(String[]) - Static method in class SimpleWriter
 
main(String[]) - Static method in class Sound
 
main(String[]) - Static method in class Student
 
main(String[]) - Static method in class TempFinder
 
main(String[]) - Static method in class Test
 
main(String[]) - Static method in class TurtleTest
 
main(String[]) - Static method in class WebPageWriter
 
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.
makeFadeOutMovie(String) - Method in class MovieMaker
Method to create a movie that fades out the person from one background to another.
makeFishMovie(String) - Method in class MovieMaker
Method to change the red and green values in the frames
makeKidsOnMoonMovie(String) - Method in class MovieMaker
Method to make a movie of the kids crawling on the moon
makeLighterMovie(String) - Method in class MovieMaker
Method to lighten the pixels that are near black in a movie
makeMommyWatchingMovie(String) - Method in class MovieMaker
Method to make a movie of barb's head moving and katie dancing
makeRectangleMovie(String) - Method in class MovieMaker
Method to make a movie that has a rectangle moving around
makeSunset() - Method in class Picture
Method to simulate a sunset by decreasing the green and blue
makeSunset(double) - Method in class Picture
Method to simulate a sunset by decreasing the green and blue
makeSunset2() - Method in class Picture
Method to make a picture look like it was taken at sunset by reducing the blue and green to make it look more red
makeSunsetMovie(String) - Method in class MovieMaker
Method to slowly create a sunset
makeTickerTapeMovie(String, String) - Method in class MovieMaker
Method to create a tickertape movie
makeTurtleMovie() - Static method in class Picture
Method to show a turtle crawling across the beach
makeTwoRectangleMovie(String) - Method in class MovieMaker
Method to make a movie that has a two rectangles moving around
MidiPlayer - Class in <Unnamed>
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
mirrorFrontToBack() - Method in class Sound
Method to mirror a sound front to back
mirrorHorizontal() - Method in class Picture
Method to mirror around a horizontal line in the middle based on the height.
mirrorHorizontalBottomToTop() - Method in class Picture
Method to mirror around a horiztonal line in the middle based on the height of the picture.
mirrorTemple() - Method in class Picture
Method to mirror part of the temple picture around a vertical line at a mirror point
mirrorTempleS3() - Static method in class Picture
Method to mirror the piedmont of the temple
mirrorVertical() - Method in class Picture
Method to mirror around a vertical line in the middle of the picture based on the width
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
ModelDisplay - Interface in <Unnamed>
Interface to used to communicate between a model and its display Copyright Georgia Institute of Technology 2004
modifyFile(String, String, String) - Method in class FileModifier
Method to modfiy the first string in a method to be the passed changed text
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
moveMarksHead(String) - Method in class MovieMaker
Method to move Mark's head around
moveTo(int, int) - Method in class SimpleTurtle
Method to move to turtle to the given x and y location
MovieMaker - Class in <Unnamed>
Class to create frames for a movie
MovieMaker() - Constructor for class MovieMaker
 
MoviePlayer - Class in <Unnamed>
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
MUSIC_BOX - Static variable in class MidiPlayer
 

N

negate() - Method in class Picture
Method to negate the picture
normalize() - Method in class Sound
Method to normalize (make as loud as possible) a sound.

O

OBOE - Static variable in class MidiPlayer
 
OppositeTurtle - Class in <Unnamed>
Class for an opposite turtle.
OppositeTurtle(ModelDisplay) - Constructor for class OppositeTurtle
A constructor that takes a ModelDisplay object
overlapPictures(Picture, Picture, int) - Method in class Picture
Method to overlap one picture with another horizontally on top of the current picture.

P

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
PathSegment - Class in <Unnamed>
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 in <Unnamed>
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
penDown() - Method in class SimpleTurtle
Method to set the pen down
penUp() - Method in class SimpleTurtle
Method to lift the pen up
Person - Class in <Unnamed>
Class that represents information about a person
Person() - Constructor for class Person
No-arg constructor.
Person(String, String) - Constructor for class Person
Constructor that takes a person's first and last name
Person(int, String, String, Picture, int) - Constructor for class Person
Constructor that takes the first name, last name, picture and age
PhoneBook - Class in <Unnamed>
A class that represents a phone book.
PhoneBook(String) - Constructor for class PhoneBook
Constructor that takes a file name and reads in the names and phone numbers from a file
PIANO - Static variable in class MidiPlayer
 
PICCOLO - Static variable in class MidiPlayer
 
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.
pickAndPlay() - Static method in class Sound
Method to pick a sound file, create the sound object, play the sound object, and return the sound object
pickAndShow() - Static method in class Picture
Method to allow the user to pick a file name and show a picture.
Picture - Class in <Unnamed>
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 in <Unnamed>
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 in <Unnamed>
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 in <Unnamed>
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
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.
play5Freq() - Method in class Sound
Method to play a sound 5 times and each time increase the frequency.
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.
Playback - Class in <Unnamed>
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
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
playNamed(String) - Static method in class Sound
Method to create a sound object from the given file name and play the sound.
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
playSpecificSound() - Static method in class Sound
Method to play a specific sound.
posterize() - Method in class Picture
Method to posterize (reduce the number of colors) in the picture.
posterize(int) - Method in class Picture
Method to posterize (reduce the number of colors) in the picture
printBook() - Method in class PhoneBook
Method to print out the contents of the phone book
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

readAndPrintFile(String) - Method in class SimpleReader
Method to read a file and print out the contents
readInfoFromFile() - Method in class PhoneBook
Method to read the phone information from a file and use it to fill the map
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.
removeRedEye(int, int, int, int, Color) - Method in class Picture
Method to remove red eye from the current picture object in the rectangle defined by startX, startY, endX, endY.
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.
rest(int) - Method in class MidiPlayer
Method to rest for a specified number of milliseconds
reverse() - Method in class Sound
Method to reverse the current sound.
reverseS(String) - Static method in class Sound
Method to reverse the sound with the passed file name
rotate(int) - Method in class Picture
Method to create a new picture by rotating the current picture by the given degrees
run() - Method in class Playback
Starts this thread.

S

scale(double, double) - Method in class Picture
Method to create a new picture by scaling the current picture by the given x and y factors
scaleUp(int) - Method in class Picture
Method to create a new picture that is scaled up by the passed number of times.
Searcher - Class in <Unnamed>
Class that demonstrates search algorithms
Searcher() - Constructor for class Searcher
 
SentenceGenerator - Class in <Unnamed>
Class to generate sentences
SentenceGenerator() - Constructor for class SentenceGenerator
 
sepiaTint() - Method in class Picture
Method to change the current picture to a sepia tint (modify the middle colors to a light brown and the light colors to a light yellow and make the shadows darker)
SequenceSearcher - Class in <Unnamed>
Class that searches a file for a given sequence and reports on the name where that sequence was found
SequenceSearcher() - Constructor for class SequenceSearcher
 
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 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() - Method in class Picture
Method to set the blue to zero if the current blue value is greater than 100
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 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
setGrade(int, double) - Method in class Student
Method to set a grade at an index
setGradeArray(double[]) - Method in class Student
Method to replace the array of grades
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
setName(String) - Method in class Student
Method to set the name for this student
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
setPeriodNumber(int) - Method in class ClassPeriod
Method to set the period number (if it hasn't been set)
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 Student
Method to set the picture for this student
setPicture(Picture) - Method in class World
Method to set the background picture
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
setRedToBlue() - Method in class Picture
Method to set the red to the blue 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 FrameSequencer
Method to set the shown flag
setSoundExplorer(SoundExplorer) - Method in class SimpleSound
Changes the explorer of this object.
setStudent(Student, int) - Method in class ClassPeriod
Method to set the student at an index
setTeacherName(String) - Method in class ClassPeriod
Method to set the teacher's name
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
shear(double, double) - Method in class Picture
Method to create a new picture by shearing the current picture by the given x and y factors
show() - Method in interface DigitalPicture
 
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 Student
Method to show this student It will display the picture if there is one else just print the student name
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
showNamed(String) - Static method in class Picture
Method to show a picture created from a passed file name
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
showSpecificPicture() - Static method in class Picture
Method to show a specific picture where the file name to show is specified in the method.
showTurtleMovie() - Static method in class Picture
Method to show a turtle crawling across the beach
showWarning(String) - Static method in class SimpleOutput
Method to show a warning to a user
SillyWriter - Class in <Unnamed>
Class that shows how to write to a file
SillyWriter() - Constructor for class SillyWriter
 
SimpleInput - Class in <Unnamed>
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 in <Unnamed>
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 in <Unnamed>
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
SimpleReader - Class in <Unnamed>
Class that allows you to easily read and print out the contents of a file
SimpleReader() - Constructor for class SimpleReader
 
SimpleSound - Class in <Unnamed>
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 in <Unnamed>
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
SimpleWriter - Class in <Unnamed>
Class that shows how to write to a file
SimpleWriter() - Constructor for class SimpleWriter
 
Sound - Class in <Unnamed>
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 in <Unnamed>
Class to use to report a sound exception Copyright Georgia Institute of Technology 2004
SoundException(String) - Constructor for exception SoundException
 
SoundExplorer - Class in <Unnamed>
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 in <Unnamed>
Class that represents a sample of a sound.
SoundSample(SimpleSound, int) - Constructor for class SoundSample
Constructor that takes a sound and valueArray
SoundTest - Class in <Unnamed>
A JUnit test case class.
SoundTest() - Constructor for class SoundTest
 
splice() - Method in class Sound
Method to splice two sounds together with some silence between them into the current sound
splice(Sound, int, int, int) - Method in class Sound
Method to copy part of the passed sound into this sound at the given start index
splicePreamble() - Method in class Sound
Method to splice "We the " then "United" then "people of the United States" into the current sound
splicePreamble2() - Method in class Sound
Method to splice the preamble into the current sound so that it says We the United people of the United States
splicePreambleS() - Static method in class Sound
Method to splice "United" into "We the people of the United States" by adding it after the "the"
spliceS() - Static method in class Sound
Method to splice two sounds together with some silence between them into the current sound
STEEL_GUITAR - Static variable in class MidiPlayer
 
stopPlaying() - Method in class Playback
Stops this thread by breaking the while loop in the run method.
Student - Class in <Unnamed>
Class that describes a student.
Student() - Constructor for class Student
No argument constructor.
Student(String) - Constructor for class Student
Constructor that takes the name
Student(String, double[]) - Constructor for class Student
Constructor that takes the name and an array of grades
Student(String, String, String) - Constructor for class Student
Constructor that takes a delimited string, the name delimiter, and the grade delimiter.
swapBackground(Picture, Picture) - Method in class Picture
Method to replace the background in the current picture with the background from another picture
swapBackground(Picture, Picture, double) - Method in class Picture
Method to replace the background in the current picture with the background from another picture

T

TConversionTool - Class in <Unnamed>
 
TConversionTool() - Constructor for class TConversionTool
 
TELEPHONE - Static variable in class MidiPlayer
 
TempFinder - Class in <Unnamed>
Class to find the temperature in a web page.
TempFinder() - Constructor for class TempFinder
 
TENOR_SAX - Static variable in class MidiPlayer
 
Test - Class in <Unnamed>
Class for simple testing Copyright Georgia Institute of Technology 2004
Test() - Constructor for class Test
 
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
TIMPANI - Static variable in class MidiPlayer
 
toString() - Method in class ClassPeriod
Method to return a string of information about this class period
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
Method to return a string with information about this student
toString() - Method in class World
Method that returns information about this world in the form of a string
TROMBONE - Static variable in class MidiPlayer
 
TRUMPET - Static variable in class MidiPlayer
 
TUBA - Static variable in class MidiPlayer
 
turn(int) - Method in class ConfusedTurtle
Method to turn by the passed degrees (a confused turtle will turn by 360- the passed degrees)
turn(int) - Method in class OppositeTurtle
Method to turn by a given amount (actually will turn 360-amount)
turn(int) - Method in class SimpleTurtle
Method to turn the turtle the passed degrees use negative to turn left and pos to turn right
turnBrownIntoRed() - Method in class Picture
Method to turn the brown in a picture into red
turnBrownToRedInRectangle() - Method in class Picture
Method to turn brown to red inside of a rectangular area
turnBrownToRedInRectangle(int, int, int, int) - Method in class Picture
Method to turn brown to red in a rectangular area specifed by startX, endX-1, startY, endY-1
turnBrownToRedInRectangle(int, int, int, int, double) - Method in class Picture
Method to turn brown to red in a rectangular area specifed by startX, endX-1, startY, endY-1
turnLeft() - Method in class ConfusedTurtle
Method to turn left (but a confused turtle will actually turn right)
turnLeft() - Method in class OppositeTurtle
Method to turn left (but a dance turtle will actually turn right)
turnLeft() - Method in class SimpleTurtle
Method to turn left
turnRight() - Method in class ConfusedTurtle
Method to turn right (but a confused turtle will actually turn left)
turnRight() - Method in class OppositeTurtle
Method to turn right (but a dance turtle will actually 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
Turtle - Class in <Unnamed>
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 in <Unnamed>
 
TurtleTest() - Constructor for class TurtleTest
 

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

WebPageWriter - Class in <Unnamed>
Class used to write web (HTML) pages
WebPageWriter() - Constructor for class WebPageWriter
 
WHISTLE - Static variable in class MidiPlayer
 
Wolf - Class in <Unnamed>
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 in <Unnamed>
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
writeEpilogue(BufferedWriter) - Method in class GraphicsCompiler
Method to write out the epilog for the new program: Show the picture.
writeExamplePage(String) - Method in class WebPageWriter
Method to write an example web (HTML) page
writeHomepage(String, String) - Method in class WebPageWriter
Method that will write out a homepage for a person with the passed name
writeHomepageV2(String, String) - Method in class WebPageWriter
Method for writing a homepage for the passed name
writeHomepageV3(String, String) - Method in class WebPageWriter
Method for writing a homepage for the passed name that displays the current weather
writeHomepageV4(String, String) - Method in class WebPageWriter
Method for writing a homepage for the passed name that displays the current weather and a random sentence
writeHomepageV5(String, String) - Method in class WebPageWriter
Method for writing a homepage for the passed first name that displays her/his interests and age
writeLetter(String, String, String, String) - Method in class FormLetterGenerator
Method to generate a form letter
writePrologue(BufferedWriter) - Method in class GraphicsCompiler
Method to write out the prolog for the new program: All the imports, the class definition, main, etc.
writeSamplesAsText(String) - Method in class Sound
Method to write out the values in the sound to a file as text
writeSillyFile() - Method in class SillyWriter
Method to write a silly file
writeSillyFile() - Method in class SimpleWriter
Method to write a silly 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 N O P R S T U V W X Z