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

A

addMessage(String, int, int) - Method in class turtleClasses.SimplePicture
Method to draw a message as a string on the buffered image
addModel(Object) - Method in interface turtleClasses.ModelDisplay
method to add the model to the world
addModel(Object) - Method in class turtleClasses.World
Method to add a model to this model displayer
addMove(int, int, int, int) - Method in class turtleClasses.Pen
Method to add a path segment if the pen is down
addNewLines(String) - Static method in class turtleClasses.SimpleOutput
Method to add new line character if the message is too long

B

backward() - Method in class turtleClasses.SimpleTurtle
Method to go backward by 100 pixels
backward(int) - Method in class turtleClasses.SimpleTurtle
Method to go backward a given number of pixels

C

clearBackground() - Method in interface turtleClasses.ModelDisplay
Method to clear the background
clearBackground() - Method in class turtleClasses.World
Method to clear the background picture
clearPath() - Method in class turtleClasses.Pen
Method to clear the path stored for this pen
clearPath() - Method in class turtleClasses.SimpleTurtle
Method to clear the path (history of where the turtle has been)
close() - Method in class turtleClasses.PictureFrame
A method to close a picture frame
colorDistance(Color) - Method in class turtleClasses.Pixel
Method to get the distance between this pixel's color and the passed color
colorDistance(Color, Color) - Static method in class turtleClasses.Pixel
Method to compute the color distances between two color objects
containsTurtle(Turtle) - Method in class turtleClasses.World
Method to check if this world contains the passed turtle
copyPicture(SimplePicture) - Method in class turtleClasses.SimplePicture
Method that will copy all of the passed source picture into the current picture object
createGraphics() - Method in class turtleClasses.SimplePicture
Method to get a Graphics2D object for this picture which can be used to do 2D drawing on the picture

D

DigitalPicture - Interface in turtleClasses
Interface to describe a digital picture.
displayImage() - Method in class turtleClasses.PictureFrame
A method to make sure the frame is displayed
drawInfoString(Graphics) - Method in class turtleClasses.SimpleTurtle
Method to draw the information string
drawString(String, int, int) - Method in class turtleClasses.SimplePicture
Method to draw a string at the given location on the picture
drop(Picture) - Method in class turtleClasses.SimpleTurtle
Method to draw a passed picture at the current turtle location and rotation in a picture or model display

F

forward() - Method in class turtleClasses.SimpleTurtle
Method to move the turtle foward 100 pixels
forward(int) - Method in class turtleClasses.SimpleTurtle
Method to move the turtle forward the given number of pixels

G

getAlpha() - Method in class turtleClasses.Pixel
Method to get the amount of alpha (transparency) at this pixel.
getAverage() - Method in class turtleClasses.Pixel
Method to get the average of the colors of this pixel
getBasicPixel(int, int) - Method in interface turtleClasses.DigitalPicture
 
getBasicPixel(int, int) - Method in class turtleClasses.SimplePicture
Method to return the pixel value as an int for the given x and y location
getBlue() - Method in class turtleClasses.Pixel
Method to get the amount of blue at this pixel.
getBlue(int) - Static method in class turtleClasses.Pixel
Method to get the blue value from a pixel represented as an int
getBodyColor() - Method in class turtleClasses.SimpleTurtle
Method to get the body color
getBufferedImage() - Method in interface turtleClasses.DigitalPicture
 
getBufferedImage() - Method in class turtleClasses.SimplePicture
Method to get the buffered image
getColor() - Method in class turtleClasses.Pen
Method to get the pen (ink) color
getColor() - Method in class turtleClasses.Pixel
Method to get a color object that represents the color at this pixel.
getCurrentX() - Method in class turtleClasses.ImageDisplay
Method to get the current x
getCurrentY() - Method in class turtleClasses.ImageDisplay
Method to get the current y
getDistance(int, int) - Method in class turtleClasses.SimpleTurtle
Get the distance from the passed x and y location
getExtension() - Method in class turtleClasses.SimplePicture
Method to get the extension for this picture
getFileName() - Method in interface turtleClasses.DigitalPicture
 
getFileName() - Method in class turtleClasses.SimplePicture
Method to get the file name associated with the picture
getGraphics() - Method in interface turtleClasses.ModelDisplay
Method that returns the graphics context for this model display
getGraphics() - Method in class turtleClasses.SimplePicture
Method to get a graphics object for this picture to use to draw on
getGraphics() - Method in class turtleClasses.World
Method to get the graphics context for drawing on
getGreen() - Method in class turtleClasses.Pixel
Method to get the amount of green at this pixel.
getGreen(int) - Static method in class turtleClasses.Pixel
Method to get the green value from a pixel represented as an int
getHeading() - Method in class turtleClasses.SimpleTurtle
Method to get the current heading
getHeight() - Method in interface turtleClasses.DigitalPicture
 
getHeight() - Method in interface turtleClasses.ModelDisplay
Method to get the height of the display
getHeight() - Method in class turtleClasses.SimplePicture
Method to get the height of the picture in pixels
getHeight() - Method in class turtleClasses.SimpleTurtle
Method to return the height of this object
getHeight() - Method in class turtleClasses.World
Method to get the height in pixels
getImage() - Method in interface turtleClasses.DigitalPicture
 
getImage() - Method in class turtleClasses.ImageDisplay
Method to get the image
getImage() - Method in class turtleClasses.SimplePicture
Method to get an image from the picture
getInfoColor() - Method in class turtleClasses.SimpleTurtle
Method to get the information color
getLastTurtle() - Method in class turtleClasses.World
Metod to get the last turtle in this world
getModelDisplay() - Method in class turtleClasses.SimpleTurtle
Method to get the model display for this simple turtle
getName() - Method in class turtleClasses.SimpleTurtle
Method to get the name of the turtle
getPen() - Method in class turtleClasses.SimpleTurtle
Method to get the pen
getPenColor() - Method in class turtleClasses.SimpleTurtle
Method to get the pen color
getPenWidth() - Method in class turtleClasses.SimpleTurtle
Method to get the pen width
getPicture() - Method in class turtleClasses.SimpleTurtle
Method to get the picture for this simple turtle
getPicture() - Method in class turtleClasses.World
Method to get the background picture
getPictureFrame() - Method in class turtleClasses.SimplePicture
Method to get the picture frame for the picture
getPictureWithHeight(int) - Method in class turtleClasses.SimplePicture
Method to create a new picture of the passed height.
getPictureWithWidth(int) - Method in class turtleClasses.SimplePicture
Method to create a new picture of the passed width.
getPixel(int, int) - Method in interface turtleClasses.DigitalPicture
 
getPixel(int, int) - Method in class turtleClasses.SimplePicture
Method to get a pixel object for the given x and y location
getPixels() - Method in class turtleClasses.SimplePicture
Method to get a one-dimensional array of Pixels for this simple picture
getPreferredScrollableViewportSize() - Method in class turtleClasses.ImageDisplay
Method to return the preferred size
getRed() - Method in class turtleClasses.Pixel
Method to get the amount of red at this pixel.
getRed(int) - Static method in class turtleClasses.Pixel
Method to get the red value from a pixel represented as an int
getScrollableBlockIncrement(Rectangle, int, int) - Method in class turtleClasses.ImageDisplay
Method to return the block increment for scrolling
getScrollableTracksViewportHeight() - Method in class turtleClasses.ImageDisplay
Method to check if the viewport height is the source height
getScrollableTracksViewportWidth() - Method in class turtleClasses.ImageDisplay
Method to check if the viewport width is the source width
getScrollableUnitIncrement(Rectangle, int, int) - Method in class turtleClasses.ImageDisplay
Method to return the unit increment for scrolling
getShellColor() - Method in class turtleClasses.SimpleTurtle
Method to get the shell color
getShowInfo() - Method in class turtleClasses.SimpleTurtle
Method to get value of show info
getTitle() - Method in interface turtleClasses.DigitalPicture
 
getTitle() - Method in class turtleClasses.SimplePicture
Method to get the title of the picture
getTransformEnclosingRect(AffineTransform) - Method in class turtleClasses.SimplePicture
Method to get the coordinates of the enclosing rectangle after this transformation is applied to the current picture
getTranslationEnclosingRect(AffineTransform) - Method in class turtleClasses.SimplePicture
Method to get the coordinates of the enclosing rectangle after this transformation is applied to the current picture
getTurtleIterator() - Method in class turtleClasses.World
Method to get an iterator on the list of turtles
getTurtleList() - Method in class turtleClasses.World
Method to get the list of turtles in the world
getWidth() - Method in interface turtleClasses.DigitalPicture
 
getWidth() - Method in interface turtleClasses.ModelDisplay
Method to get the width of the display
getWidth() - Method in class turtleClasses.Pen
Method to get the width of the pen
getWidth() - Method in class turtleClasses.SimplePicture
Method to get the width of the picture in pixels
getWidth() - Method in class turtleClasses.SimpleTurtle
Method to return the width of this object
getWidth() - Method in class turtleClasses.World
Method to get the width in pixels
getX() - Method in class turtleClasses.Pixel
Method to get the x location of this pixel.
getXPos() - Method in class turtleClasses.SimpleTurtle
Method to get the current x position
getY() - Method in class turtleClasses.Pixel
Method to get the y location of this pixel.
getYPos() - Method in class turtleClasses.SimpleTurtle
Method to get the current y position

H

hide() - Method in class turtleClasses.PictureFrame
A method to hide the frame
hide() - Method in class turtleClasses.SimplePicture
Method to hide the picture
hide() - Method in class turtleClasses.SimpleTurtle
Method to hide the turtle (stop showing it) This doesn't affect the pen status

I

ImageDisplay - Class in turtleClasses
Class to display an image and the current location with a + sign Copyright Georgia Institute of Technology 2004
ImageDisplay(Image) - Constructor for class turtleClasses.ImageDisplay
Constructor that takes the image to display
ImageDisplay(Image, int, int) - Constructor for class turtleClasses.ImageDisplay
Constructor that takes the image and current x and y
isPenDown() - Method in class turtleClasses.Pen
Method to get pen down status
isPenDown() - Method in class turtleClasses.SimpleTurtle
Method to check if the pen is down
isVisible() - Method in class turtleClasses.SimpleTurtle
Method to get the value of the visible flag

L

load(Image) - Method in interface turtleClasses.DigitalPicture
 
load(String) - Method in interface turtleClasses.DigitalPicture
 
load(Image) - Method in class turtleClasses.SimplePicture
Method to load the buffered image with the passed image
load(String) - Method in class turtleClasses.SimplePicture
Method to write the contents of the picture to a file with the passed name without throwing errors
loadImage(String) - Method in class turtleClasses.SimplePicture
Method to load the picture from the passed file name this just calls load(fileName) and is for name compatibility
loadOrFail(String) - Method in class turtleClasses.SimplePicture
Method to load the picture from the passed file name
loadPictureAndShowIt(String) - Method in class turtleClasses.SimplePicture
Method to load a picture from a file name and show it in a picture frame

M

main(String[]) - Static method in class turtleClasses.Turtle
 
modelChanged() - Method in interface turtleClasses.ModelDisplay
method to notify the thing that displays that the model has changed
modelChanged() - Method in class turtleClasses.World
Method that allows the model to notify the display
ModelDisplay - Interface in turtleClasses
Interface to used to communicate between a model and its display Copyright Georgia Institute of Technology 2004
moveTo(int, int) - Method in class turtleClasses.SimpleTurtle
Method to move to turtle to the given x and y location

P

paintComponent(Graphics) - Method in class turtleClasses.ImageDisplay
Method to handle displaying this object
paintComponent(Graphics) - Method in class turtleClasses.PathSegment
Method to paint this path segment
paintComponent(Graphics) - Method in class turtleClasses.Pen
Metod to paint the pen path
paintComponent(Graphics) - Method in class turtleClasses.SimpleTurtle
Method to paint the turtle
paintComponent(Graphics) - Method in class turtleClasses.World
Method to paint this component
PathSegment - Class in turtleClasses
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 turtleClasses.PathSegment
Constructor that takes the color, width, and line
Pen - Class in turtleClasses
Class to represent a pen which has a color, width, and a list of path segments that it should draw.
Pen() - Constructor for class turtleClasses.Pen
Constructor that takes no arguments
Pen(Color, int) - Constructor for class turtleClasses.Pen
Constructor that takes all the ink color, and width
Pen(Color, int, boolean) - Constructor for class turtleClasses.Pen
Constructor that takes the ink color, width, and penDown flag
penDown() - Method in class turtleClasses.SimpleTurtle
Method to set the pen down
penUp() - Method in class turtleClasses.SimpleTurtle
Method to lift the pen up
Picture - Class in turtleClasses
A class that represents a picture.
Picture() - Constructor for class turtleClasses.Picture
Constructor that takes no arguments
Picture(String) - Constructor for class turtleClasses.Picture
Constructor that takes a file name and creates the picture
Picture(int, int) - Constructor for class turtleClasses.Picture
Constructor that takes the width and height
Picture(Picture) - Constructor for class turtleClasses.Picture
Constructor that takes a picture and creates a copy of that picture
Picture(BufferedImage) - Constructor for class turtleClasses.Picture
Constructor that takes a buffered image
PictureFrame - Class in turtleClasses
Class that holds a digital picture and displays it.
PictureFrame() - Constructor for class turtleClasses.PictureFrame
A constructor that takes no arguments.
PictureFrame(DigitalPicture) - Constructor for class turtleClasses.PictureFrame
A constructor that takes a picture to display
Pixel - Class in turtleClasses
Class that references a pixel in a picture.
Pixel(DigitalPicture, int, int) - Constructor for class turtleClasses.Pixel
A constructor that take the x and y location for the pixel and the picture the pixel is coming from

R

remove(Object) - Method in interface turtleClasses.ModelDisplay
Method to remove the model from the world
remove(Object) - Method in class turtleClasses.World
Method to remove the passed object from the world
repaint() - Method in class turtleClasses.PictureFrame
Method to force the picture frame to repaint (redraw)
repaint() - Method in class turtleClasses.SimplePicture
Method to force the picture to redraw itself.

S

scale(double, double) - Method in class turtleClasses.SimplePicture
Method to create a new picture by scaling the current picture by the given x and y factors
setAllPixelsToAColor(Color) - Method in class turtleClasses.SimplePicture
Method to set the color in the picture to the passed color
setAlpha(int) - Method in class turtleClasses.Pixel
Method to set the alpha (transparency) to a new alpha value
setAutoRepaint(boolean) - Method in class turtleClasses.World
Method to set the automatically repaint flag
setBasicPixel(int, int, int) - Method in interface turtleClasses.DigitalPicture
 
setBasicPixel(int, int, int) - Method in class turtleClasses.SimplePicture
Method to set the value of a pixel in the picture from an int
setBlue(int) - Method in class turtleClasses.Pixel
Method to set the blue to a new blue value
setBodyColor(Color) - Method in class turtleClasses.SimpleTurtle
Method to set the body color which will also set the pen color
setColor(Color) - Method in class turtleClasses.Pen
Method to set the pen (ink) color
setColor(Color) - Method in class turtleClasses.Pixel
Method to set the pixel color to the passed in color object.
setColor(Color) - Method in class turtleClasses.SimpleTurtle
Method to set the color of the turtle.
setCurrentX(int) - Method in class turtleClasses.ImageDisplay
Method to set the current x
setCurrentY(int) - Method in class turtleClasses.ImageDisplay
Method to set the current y
setFileName(String) - Method in class turtleClasses.SimplePicture
Method to set the file name
setGreen(int) - Method in class turtleClasses.Pixel
Method to set the green to a new green value
setHeading(double) - Method in class turtleClasses.SimpleTurtle
Method to set the heading
setHeight(int) - Method in class turtleClasses.SimpleTurtle
Method to set the height of this object
setImage(Image) - Method in class turtleClasses.ImageDisplay
Method to set the image
setInfoColor(Color) - Method in class turtleClasses.SimpleTurtle
Method to set the information color
setModelDisplay(ModelDisplay) - Method in class turtleClasses.SimpleTurtle
Method to set the model display for this simple turtle
setName(String) - Method in class turtleClasses.SimpleTurtle
Method to set the name of the turtle
setPen(Pen) - Method in class turtleClasses.SimpleTurtle
Method to set the pen
setPenColor(Color) - Method in class turtleClasses.SimpleTurtle
Method to set the pen color
setPenDown(boolean) - Method in class turtleClasses.Pen
Method to set the pen down value
setPenDown(boolean) - Method in class turtleClasses.SimpleTurtle
Method to set the pen down boolean variable
setPenWidth(int) - Method in class turtleClasses.SimpleTurtle
Method to set the pen width
setPicture(Picture) - Method in class turtleClasses.PictureFrame
Method to set the picture to show in this picture frame
setPicture(Picture) - Method in class turtleClasses.SimpleTurtle
Method to set the picture for this simple turtle
setPicture(Picture) - Method in class turtleClasses.World
Method to set the background picture
setPictureFrame(PictureFrame) - Method in class turtleClasses.SimplePicture
Method to set the picture frame for this picture
setRed(int) - Method in class turtleClasses.Pixel
Method to set the red to a new red value
setShellColor(Color) - Method in class turtleClasses.SimpleTurtle
Method to set the shell color
setShowInfo(boolean) - Method in class turtleClasses.SimpleTurtle
Method to show the turtle information string
setTitle(String) - Method in interface turtleClasses.DigitalPicture
 
setTitle(String) - Method in class turtleClasses.PictureFrame
Method to set the title for the picture frame
setTitle(String) - Method in class turtleClasses.SimplePicture
Method to set the title for the picture
setVisible(boolean) - Method in class turtleClasses.PictureFrame
A method to set the visible flag on the frame
setVisible(boolean) - Method in class turtleClasses.SimplePicture
Method to make this picture visible or not
setVisible(boolean) - Method in class turtleClasses.SimpleTurtle
Method to set the visible flag
setVisible(boolean) - Method in class turtleClasses.World
Method to set the visibility of the world
setWidth(int) - Method in class turtleClasses.Pen
Method to set the width of the pen
setWidth(int) - Method in class turtleClasses.SimpleTurtle
Method to set the width of this object
show() - Method in interface turtleClasses.DigitalPicture
 
show() - Method in class turtleClasses.SimplePicture
Method to show the picture in a picture frame
show() - Method in class turtleClasses.SimpleTurtle
Method to show the turtle (doesn't affect the pen status
showError(String) - Static method in class turtleClasses.SimpleOutput
Method to show an error to a user
showInformation(String) - Static method in class turtleClasses.SimpleOutput
Method to show information to the user
showWarning(String) - Static method in class turtleClasses.SimpleOutput
Method to show a warning to a user
SimpleOutput - Class in turtleClasses
Class to make it easy to do output to the user using JOptionPane Copyright Georgia Institute of Technology 2004
SimpleOutput() - Constructor for class turtleClasses.SimpleOutput
 
SimplePicture - Class in turtleClasses
A class that represents a simple picture.
SimplePicture() - Constructor for class turtleClasses.SimplePicture
A Constructor that takes no arguments.
SimplePicture(String) - Constructor for class turtleClasses.SimplePicture
A Constructor that takes a file name and uses the file to create a picture
SimplePicture(int, int) - Constructor for class turtleClasses.SimplePicture
A constructor that takes the width and height desired for a picture and creates a buffered image of that size.
SimplePicture(int, int, Color) - Constructor for class turtleClasses.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 turtleClasses.SimplePicture
A Constructor that takes a picture to copy information from
SimplePicture(BufferedImage) - Constructor for class turtleClasses.SimplePicture
A constructor that takes a buffered image
SimpleTurtle - Class in turtleClasses
Class that represents a Logo-style turtle.
SimpleTurtle(int, int) - Constructor for class turtleClasses.SimpleTurtle
Constructor that takes the x and y position for the turtle
SimpleTurtle(int, int, ModelDisplay) - Constructor for class turtleClasses.SimpleTurtle
Constructor that takes the x and y position and the model displayer
SimpleTurtle(ModelDisplay) - Constructor for class turtleClasses.SimpleTurtle
Constructor that takes a model display and adds a turtle in the middle of it
SimpleTurtle(ModelDisplay, int) - Constructor for class turtleClasses.SimpleTurtle
Constructor that takes a model display and adds a turtle in the middle of it and pauses delay milliseconds between actions.
SimpleTurtle(int, int, Picture) - Constructor for class turtleClasses.SimpleTurtle
Constructor that takes the x and y position and the picture to draw on
SimpleTurtle(Picture) - Constructor for class turtleClasses.SimpleTurtle
Constructor that takes the picture to draw on and will appear in the middle

T

toString() - Method in class turtleClasses.Picture
Method to return a string with information about this picture.
toString() - Method in class turtleClasses.Pixel
Method to return a string with information about this pixel
toString() - Method in class turtleClasses.SimplePicture
Method to return a string with information about this picture
toString() - Method in class turtleClasses.SimpleTurtle
Method to return a string with informaiton about this turtle
toString() - Method in class turtleClasses.World
Method that returns information about this world in the form of a string
turn(double) - Method in class turtleClasses.SimpleTurtle
Method to turn the turtle the passed degrees use negative to turn left and pos to turn right
turnLeft() - Method in class turtleClasses.SimpleTurtle
Method to turn left
turnRight() - Method in class turtleClasses.SimpleTurtle
Method to turn right
turnToFace(SimpleTurtle) - Method in class turtleClasses.SimpleTurtle
Method to turn to face another simple turtle
turnToFace(int, int) - Method in class turtleClasses.SimpleTurtle
Method to turn towards the given x and y
Turtle - Class in turtleClasses
Class that represents a turtle which is similar to a Logo turtle.
Turtle(int, int, Picture) - Constructor for class turtleClasses.Turtle
Constructor that takes the x and y and a picture to draw on
Turtle(int, int, ModelDisplay) - Constructor for class turtleClasses.Turtle
Constructor that takes the x and y and a model display to draw it on
Turtle(ModelDisplay) - Constructor for class turtleClasses.Turtle
Constructor that takes the model display
Turtle(ModelDisplay, int) - Constructor for class turtleClasses.Turtle
Constructor that takes the model display and pauses delay milliseconds between actions
Turtle(Picture) - Constructor for class turtleClasses.Turtle
Constructor that takes a picture to draw on
turtleClasses - package turtleClasses
 

U

updateDisplay() - Method in class turtleClasses.SimpleTurtle
Method to update the display of this turtle and also check that the turtle is in the bounds
updateImage() - Method in class turtleClasses.PictureFrame
A method to update the picture frame image with the image in the picture
updateImageAndShowIt() - Method in class turtleClasses.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 turtleClasses.Pixel
Method to update the picture based on the passed color values for this pixel

W

World - Class in turtleClasses
Class to represent a 2d world that can hold turtles and display them Copyright Georgia Institute of Technology 2004
World() - Constructor for class turtleClasses.World
Constructor that takes no arguments
World(boolean) - Constructor for class turtleClasses.World
Constructor that takes a boolean to say if this world should be visible or not
World(int, int) - Constructor for class turtleClasses.World
Constructor that takes a width and height for this world
write(String) - Method in class turtleClasses.SimplePicture
Method to write the contents of the picture to a file with the passed name without throwing errors
writeOrFail(String) - Method in class turtleClasses.SimplePicture
Method to write the contents of the picture to a file with the passed name
A B C D F G H I L M P R S T U W