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

A

actionPerformed(ActionEvent) - Method in class PictureExplorer
Controls the zoom menu bar
actionPerformed(ActionEvent) - Method in class SoundExplorer
Method to handle an action event
add(Sound) - Method in class Sound
Method to add the passed sound to this sound
addBoxToBeach() - Static method in class Picture
Method to add a solid red rectangle to the beach picture
addFrame(Picture) - Method in class FrameSequence
Method to add a picture to the frame sequence
addLine(int, int, int, int) - Method in class Pen
Method to add a line segment if the pen is down
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 TurtleWorld
Method to add a model to this model displayer
addNewLines(String) - Static method in class SimpleOutput
Method to add new line character if the message is too long
alaw2linear(byte) - Static method in class TConversionTool
 
asArray() - Method in class SimpleSound
Method to return the byte array

B

blendPictures() - Static method in class Picture
Method to blend pictures of Katie and Jenny
blendPictures(Picture, double) - Method in class Picture
Method to blend two pictures, the current picture object and the passed sourcePict object.
blendSounds() - Static method in class Sound
Method to overlap or blend two sounds.
blockingPlay() - Method in class SimpleSound
Creates a new Playback thread, starts it, then waits for the entire sound to finish playing before it returns.
blockingPlayAtRateDur(double, double) - Method in class SimpleSound
Calls playAtRateInRange((float)rate, 0, (int)durInFrames-1, true) .
blockingPlayAtRateInRange(float, int, int) - Method in class SimpleSound
Calls playAtRateInRange(rate, startFrame, endFrame, true) .
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
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

changeColors(double, double, double) - Method in class Picture
Method to change the color of each pixel in a copy of the current picture object by the passed amounts.
changeFreq(double) - Method in class Sound
Method to change the frequency of a sound by the passed factor
changeFreq1(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
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) - 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
clearBlue() - Method in class Picture
Method to clear the blue from a copy of the current picture (set the blue to 0 for all pixels)
clearBlue2() - Method in class Picture
Method to clear the blue from a copy of the current picture (set the blue to 0 for all pixels)
clearBlue3() - Method in class Picture
Method to clear the blue from a copy of the current picture (set the blue to 0 for all pixels)
clearLines() - Method in class Pen
Method to clear all the lines stored for this pen
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
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>
Class for showing the default colors.
ColorSquares() - Constructor for class ColorSquares
Constructor that takes no arguments
containsTurtle(Turtle) - Method in class TurtleWorld
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 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() - Static method in class Picture
Method to copy a flower but scaled to 2x normal size
copyFlowerSmaller() - Static method in class Picture
Method to copy the flower but smaller (half as big)
copyKatie() - Static method in class Picture
Method to copy the picture of Katie to the canvas
copyKatieLeftRotation() - Static method in class Picture
Method to copy the picture of Katie but rotate her left 90 degrees on the resulting picture
copyKatieMidway() - Static method in class Picture
Method to copy the picture of Katie to 100, 100 in the canvas
copyKatiesFace() - Static method in class Picture
Method to copy just Katie's face to the canvas
copyNonWhitePixels(Picture, int, int, int, int, int, int) - Method in class Picture
Method to copy from the passed source picture to 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
countWhitePixels() - Method in class Picture
Method to count the number of white pixels in a picture
createCollage() - Static method in class Picture
Method to create a collage from the flower pictures.
createCollageBetter() - Static method in class Picture
Method to create a collage of flowers
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
createLocationPanel(Font) - Method in class PictureExplorer
Create the pixel location panel
createSineWave(int, int) - Static method in class Sound
Method to create a one second sine wave sound with the given frequency and maximum amplitude
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 a copy of the current picture
decreaseBlue() - Method in class Picture
Method to decrease the blue in a copy of the current picture by 30%
decreaseGreen() - Method in class Picture
Method to decrease the green in a copy of the current picture by 30%
decreaseRed() - 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.
DigitalPicture - Interface in <Unnamed>
Interface to describe a digital picture.
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 to go through each sound sample and set the sample value to the original value.
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
drawBox(Color, int, int, int, int) - Method in class Picture
Method to draw a filled box on the current picture
drawExample() - Static method in class Picture
Method to show using drawing on a picture
drawFace() - Static method in class Picture
Method to draw a face to demonstrate drawing ovals and arcs
drawFilledRectangles() - Static 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
drawGrayEffect() - Static method in class Picture
Method to draw a gray effect 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() - Static method in class Picture
Method to draw a picture with a succession of rectangles
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

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 echos
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
 
forceToExtremes() - Method in class Sound
Method to set all the sample values to the maximum positive value it they were positive (including 0) and the minimum negative value if they were negative.
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
FrameSequence - Class in <Unnamed>
Class to save frames in a movie to a directory.
FrameSequence(String) - Constructor for class FrameSequence
Constructor that takes a directory name

G

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
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.
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
getDEBUG() - Method in class SimpleSound
Method to get the value of the debug flag
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.
getGraphics() - Method in class SimplePicture
Method to get a graphics object for this picture to use to draw 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
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 TurtleWorld
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
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 TurtleWorld
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.
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
getName() - Method in class SimpleTurtle
Method to get the name of the turtle
getNumber(String) - Static method in class SimpleInput
Method to allow the user to input a number.
getNumSamples() - Method in class SimpleSound
Returns the number of samples in this sound
getPen() - Method in class SimpleTurtle
Method to get the pen from the turtle
getPenColor() - Method in class SimpleTurtle
Method to get the pen color
getPenWidth() - Method in class SimpleTurtle
Method to get the pen width
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.
getTitle() - Method in interface DigitalPicture
 
getTitle() - Method in class SimplePicture
Method to get the title of the picture
getTranslationEnclosingRectangle(AffineTransform) - Method in class SimplePicture
Method to get the coordinates of the enclosing rectangle after this transformation is applied to the current picture
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 TurtleWorld
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
grayscale() - Method in class Picture
Method to change a copy of the current picture to grayscale
grayscaleWithLuminance() - Method in class Picture
Method to change a copy of the current 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
 

H

halveFreq() - Method in class Sound
Method to halve the frequency of a sound by taking each sample twice.
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

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% in a copy of the current picture
increaseRed2() - Method in class Picture
Method to increase the amount of red by 1.3 in a copy of the current picture
increaseRed3() - Method in class Picture
Method to increase the amount of red by 1.3 in a copy of 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
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
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

L

lighten() - Method in class Picture
Method to lighten the colors in a copy of the current picture
lighten2() - Method in class Picture
Method to lighten the colors in a copy of the current picture
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

main(String[]) - Static method in class ColorSquares
 
main(String[]) - Static method in class Greeter
 
main(String[]) - Static method in class PictureExplorer
Test Main.
main(String[]) - Static method in class Test
 
makeAIS() - Method in class SimpleSound
Creates an AudioInputStream for this sound from the buffer and the audioFileFormat.
makeSunset() - Method in class Picture
Method to simulate a sunset by decreasing the green and blue in a copy of the current picture
makeSunset2() - Method in class Picture
Method to make a copy of the current picture that looks like it was taken at sunset by reducing the blue and green to make it look more red
makeTurtleMovie(String) - Static method in class Picture
Method to show a turtle crawling across the beach
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() - Static method in class Picture
Method to mirror the piedmont of the temple
mirrorTemple2() - Static method in class Picture
Method to mirror the piedmont of the temple
mirrorTemple3() - 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 TurtleWorld
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
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

N

negate() - Method in class Picture
Method to negate a copy of the current picture
normalize() - Method in class Sound
Method to normalize (make as loud as possible) a sound.
numberFormat - Variable in class FrameSequence
Use this to format the number for the frame

O

overlapPictures(Picture, Picture, int) - Static method in class Picture
Method to create a new picture by overlapping one picture with another horizontally.

P

paintComponent(Graphics) - Method in class ImageDisplay
Method to handle displaying this object
paintComponent(Graphics) - Method in class Pen
Metod to paint the lines
paintComponent(Graphics) - Method in class SimpleTurtle
Method to paint the turtle
paintComponent(Graphics) - Method in class TurtleWorld
Method to paint this component
Pen - Class in <Unnamed>
Class to represent a pen which has a color, width, and a list of lines 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
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
pictureList - Variable in class FrameSequence
List of all the pictures so far
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() - 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
Calls playAtRateInRange((float)rate, 0, (int)durInFrames-1, false) .
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
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) - Static method in class SimpleSound
Method to play a note using MIDI
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 The number of reds, greens, and blues will be 4
posterize(int) - Method in class Picture
Method to posterize (reduce the number of colors) in the picture
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

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.
replay() - Method in class FrameSequence
Method to replay the frames (pictures) added so far
reverse(String) - Static method in class Sound
Method to reverse the sound with the passed file name
reverse() - Method in class Sound
Method to reverse the current sound.
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.
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
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.
setBase(int) - Method in class SoundExplorer
Method to set the base for the index.
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
setBuffer(byte[]) - Method in class SimpleSound
Changes the byte array that represents this sound.
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.
setCurrentX(int) - Method in class ImageDisplay
Method to set the current x
setCurrentY(int) - Method in class ImageDisplay
Method to set the current y
setFrame(int, byte[]) - Method in class SimpleSound
Changes the value of each byte of the specified frame.
setGreen(int) - Method in class Pixel
Method to set the green to a new green value
setHeading(int) - Method in class SimpleTurtle
Method to set the heading
setImage(Image) - Method in class ImageDisplay
Method to set the image
setInfoColor(Color) - Method in class SimpleTurtle
Method to set the information color
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
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 for this turtle
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
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
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 SimpleTurtle
Method to set the visible flag
setWidth(int) - Method in class Pen
Method to set the width of the pen
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 FrameSequence
Method to show the frame sequence
show() - Method in class SimplePicture
Method to show the picture in a picture frame
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
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
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
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
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() - Static method in class Sound
Method to splice two sounds together with some silence between them
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() - Static method in class Sound
Method to splice "United" into "We the people of the United States" by adding it after the "the"
spliceSimpler() - Static method in class Sound
Method to splice "United" into "We the people of the United States" by adding it after the "the"
stopPlaying() - Method in class Playback
Stops this thread by breaking the while loop in the run method.
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
 
Test - Class in <Unnamed>
Class for simple testing Copyright Georgia Institute of Technology 2004
Test() - Constructor for class Test
 
testPickAndPlay() - Method in class SoundTest
A test method.
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
turn(int) - Method in class SimpleTurtle
Method to turn the turtle the passed degrees use negative to turn left and pos to turn right
turnKatieRedHead() - Static method in class Picture
Method to turn to turn Katie into a red head
turnKatieRedHeadInRange() - Static method in class Picture
Method to turn to turn Katie into a red head using a range
turnLeft() - Method in class SimpleTurtle
Method to turn left
turnRight() - Method in class SimpleTurtle
Method to turn right
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
TurtleWorld - Class in <Unnamed>
Class to represent a 2d world that can hold turtles and display them Copyright Georgia Institute of Technology 2004
TurtleWorld() - Constructor for class TurtleWorld
Constructor that takes no arguments

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
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

W

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.

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 L M N O P R S T U W Z