Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addMessage(String, int, int) - Method in class SimplePicture
-
Method to write the contents of the picture to a file with the passed name without throwing errors
- 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
B
- 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
C
- clearBackground() - Method in interface ModelDisplay
-
Method to clear the background
- clearBackground() - Method in class World
-
Method to clear the background picture
- clearPath() - Method in class Pen
-
Method to clear the path stored for this pen
- clearPath() - Method in class SimpleTurtle
-
Method to clear the path (history of where the turtle has been)
- close() - Method in class PictureFrame
-
A method to close a picture frame
- 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
- containsTurtle(Turtle) - Method in class World
-
Method to check if this world contains the passed turtle
- copyPicture(SimplePicture) - Method in class SimplePicture
-
Method that will copy all of the passed source picture into the current picture object
- createGraphics() - Method in class SimplePicture
-
Method to get a Graphics2D object for this picture which can be used to do 2D drawing on the picture
D
- DigitalPicture - Interface in Unnamed Package
-
Interface to describe a digital picture.
- displayImage() - Method in class PictureFrame
-
A method to make sure the frame is displayed
- drawInfoString(Graphics) - Method in class SimpleTurtle
-
Method to draw the information string
- drawString(String, int, int) - Method in class SimplePicture
-
Method to draw a string at the given location on the 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
F
- 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
G
- getAlpha() - Method in class Pixel
-
Method to get the amount of alpha (transparency) at this pixel.
- 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
- getBufferedImage() - Method in interface DigitalPicture
- getBufferedImage() - Method in class SimplePicture
-
Method to get the buffered image
- 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.
- 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
- 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
- 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 SimplePicture
-
Method to get an image from the picture
- getInfoColor() - Method in class SimpleTurtle
-
Method to get the information color
- getLastTurtle() - Method in class World
-
Metod to get the last turtle in this world
- getModelDisplay() - Method in class SimpleTurtle
-
Method to get the model display for this simple turtle
- getName() - Method in class SimpleTurtle
-
Method to get the name of the turtle
- getPen() - Method in class SimpleTurtle
-
Method to get the pen
- getPenColor() - Method in class SimpleTurtle
-
Method to get the pen color
- getPenWidth() - Method in class SimpleTurtle
-
Method to get the pen width
- getPicture() - Method in class SimpleTurtle
-
Method to get the picture for this simple turtle
- getPicture() - Method in class World
-
Method to get the background picture
- getPictureFrame() - Method in class 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.
- getPictureWithWidth(int) - Method in class SimplePicture
-
Method to create a new picture of the passed width.
- 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
- 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
- getShellColor() - Method in class SimpleTurtle
-
Method to get the shell color
- getShowInfo() - Method in class SimpleTurtle
-
Method to get value of show info
- 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
- getTranslationEnclosingRect(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
- getWidth() - Method in interface DigitalPicture
- getWidth() - Method in interface ModelDisplay
-
Method to get the width of the display
- getWidth() - Method in class Pen
-
Method to get the width of the pen
- getWidth() - Method in class SimplePicture
-
Method to get the width of the picture in pixels
- getWidth() - Method in class SimpleTurtle
-
Method to return the width of this object
- getWidth() - Method in class World
-
Method to get the width in pixels
- getX() - Method in class Pixel
-
Method to get the x location of this pixel.
- getXPos() - Method in class SimpleTurtle
-
Method to get the current x position
- getY() - Method in class Pixel
-
Method to get the y location of this pixel.
- getYPos() - Method in class SimpleTurtle
-
Method to get the current y position
H
- 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
I
- isPenDown() - Method in class Pen
-
Method to get pen down status
- isPenDown() - Method in class SimpleTurtle
-
Method to check if the pen is down
- isVisible() - Method in class SimpleTurtle
-
Method to get the value of the visible flag
L
- load(Image) - Method in class SimplePicture
-
Method to load the buffered image with the passed image
M
- main(String[]) - Static method in class Main
- main(String[]) - Static method in class Turtle
-
//////////////// methods ///////////////////////
- Main - Class in Unnamed Package
- Main() - Constructor for class Main
- 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 Package
-
Interface to used to communicate between a model and its display Copyright Georgia Institute of Technology 2004
- moveTo(int, int) - Method in class SimpleTurtle
-
Method to move to turtle to the given x and y location
P
- 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 Package
-
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 Package
-
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
- Picture - Class in Unnamed Package
-
A class that represents a picture.
- Picture() - Constructor for class Picture
-
Constructor that takes no arguments
- Picture(int, int) - Constructor for class Picture
-
Constructor that takes a file name and creates the picture
- Picture(BufferedImage) - Constructor for class Picture
-
Constructor that takes a buffered image
- Picture(Picture) - Constructor for class Picture
-
Constructor that takes a picture and creates a copy of that picture
- PictureFrame - Class in Unnamed Package
-
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 Package
-
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
R
- remove(Object) - Method in interface ModelDisplay
-
Method to remove the model from the world
- remove(Object) - Method in class World
-
Method to remove the passed object from the world
- repaint() - Method in class PictureFrame
-
Method to force the picture frame to repaint (redraw)
- repaint() - Method in class SimplePicture
-
Method to open a picture explorer on a copy of this simple picture
S
- scale(double, double) - Method in class SimplePicture
-
Method to create a new picture by scaling the current picture by the given x and y factors
- 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
- setAutoRepaint(boolean) - Method in class World
-
Method to set the automatically repaint flag
- setBasicPixel(int, int, int) - Method in interface DigitalPicture
- setBasicPixel(int, int, int) - Method in class SimplePicture
-
Method to set the value of a pixel in the picture from an int
- setBlue(int) - Method in class Pixel
-
Method to set the blue to a new blue value
- setBodyColor(Color) - Method in class SimpleTurtle
-
Method to set the body color which will also set the pen color
- 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.
- setFileName(String) - Method in class SimplePicture
-
Method to set the file name
- 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
- setInfoColor(Color) - Method in class SimpleTurtle
-
Method to set the information color
- setModelDisplay(ModelDisplay) - Method in class SimpleTurtle
-
Method to set the model display for this simple turtle
- setName(String) - Method in class SimpleTurtle
-
Method to set the name of the turtle
- setPen(Pen) - Method in class SimpleTurtle
-
Method to set the pen
- setPenColor(Color) - Method in class SimpleTurtle
-
Method to set the pen color
- setPenDown(boolean) - Method in class Pen
-
Method to set the pen down value
- setPenDown(boolean) - Method in class SimpleTurtle
-
Method to set the pen down boolean variable
- setPenWidth(int) - Method in class SimpleTurtle
-
Method to set the pen width
- setPicture(Picture) - Method in class PictureFrame
-
Method to set the picture to show in this picture frame
- setPicture(Picture) - Method in class SimpleTurtle
-
Method to set the picture for this simple turtle
- setPicture(Picture) - Method in class World
-
Method to set the background picture
- setPictureFrame(PictureFrame) - Method in class 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
- 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
- setTitle(String) - Method in interface DigitalPicture
- 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
- 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
- setVisible(boolean) - Method in class World
-
Method to set the visibility of the world
- setWidth(int) - Method in class Pen
-
Method to set the width of the pen
- setWidth(int) - Method in class SimpleTurtle
-
Method to set the width of this object
- show() - Method in interface DigitalPicture
- show() - Method in class 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
- SimplePicture - Class in Unnamed Package
-
A class that represents a simple picture.
- SimplePicture() - Constructor for class SimplePicture
-
A Constructor that takes no arguments.
- SimplePicture(int, int) - Constructor for class SimplePicture
-
A Constructor that takes a file name and uses the file to create a picture
- SimplePicture(int, int, Color) - 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(BufferedImage) - Constructor for class SimplePicture
-
A constructor that takes a buffered image
- SimplePicture(SimplePicture) - Constructor for class SimplePicture
-
A Constructor that takes a picture to copy information from
- SimpleTurtle - Class in Unnamed Package
-
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(int, int, Picture) - Constructor for class SimpleTurtle
-
Constructor that takes the x and y position and the picture to draw on
- SimpleTurtle(ModelDisplay) - Constructor for class SimpleTurtle
-
Constructor that takes a model display and adds a turtle in the middle of it
- SimpleTurtle(Picture) - Constructor for class SimpleTurtle
-
Constructor that takes the picture to draw on and will appear in the middle
T
- 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 SimpleTurtle
-
Method to return a string with informaiton about this turtle
- toString() - Method in class World
-
Method that returns information about this world in the form of a string
- turn(double) - Method in class SimpleTurtle
-
Method to turn the turtle the passed degrees use negative to turn left and pos to turn right
- turnLeft() - Method in class SimpleTurtle
-
Method to turn left
- turnRight() - Method in class SimpleTurtle
-
Method to turn right
- turnToFace(int, int) - Method in class SimpleTurtle
-
Method to turn towards the given x and y
- turnToFace(SimpleTurtle) - Method in class SimpleTurtle
-
Method to turn to face another simple turtle
- Turtle - Class in Unnamed Package
-
Class that represents a turtle which is similar to a Logo turtle.
- Turtle(int, int, ModelDisplay) - Constructor for class Turtle
-
Constructor that takes the x and y and a model display to draw it on
- Turtle(int, int, Picture) - Constructor for class Turtle
-
Constructor that takes the x and y and a picture to draw 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
U
- 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
W
- World - Class in Unnamed Package
-
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
All Classes and Interfaces|All Packages|Serialized Form