B C D E F G L M O P R S T W Y 

B

BLACK - Static variable in class Color
 
BLUE - Static variable in class Color
 

C

Canvas - Class in <Unnamed>
 
Color - Class in <Unnamed>
 
Color(int, int, int) - Constructor for class Color
Constructs a new Color object.
createHorizontalWall(double, double) - Method in class Robot
Creates a horizontal wall at a given grid location.
createHorizontalWindow(double, double) - Method in class Robot
Creates a horizontal window at a given grid location.
createVerticalWall(double, double) - Method in class Robot
Creates a vertical wall at a given grid location.
createVerticalWindow(double, double) - Method in class Robot
Creates a vertical window at a given grid location.
CYAN - Static variable in class Color
 

D

DARK_GRAY - Static variable in class Color
 
delay(int) - Static method in class Canvas
Pauses by a given delay so that the user can see the canvas before it is transformed.
draw() - Method in class Ellipse
Draws this ellipse.
draw() - Method in class Line
Shows this line on the canvas.
draw() - Method in class Picture
Shows this picture on the canvas.
draw() - Method in class Rectangle
Draws this rectangle.
draw() - Method in class Text
Shows this text on the canvas.

E

Ellipse - Class in <Unnamed>
 
Ellipse(double, double, double, double) - Constructor for class Ellipse
Constructs an ellipse.

F

fill() - Method in class Ellipse
Fills this ellipse.
fill() - Method in class Rectangle
Fills this rectangle.
frontHasWallorWindow() - Method in class Robot
Checks whether there is a wall or window in front of this robot.

G

getBlue() - Method in class Color
Gets the blue value of this color.
getColorAt(int) - Method in class Picture
Gets the color of a pixel.
getColorAt(int, int) - Method in class Picture
Gets the color of a pixel.
getGrayLevels() - Method in class Picture
Gets a two-dimensional array of the gray levels of all pixels in this picture.
getGreen() - Method in class Color
Gets the green value of this color.
getHeight() - Method in class Ellipse
Gets the height of the bounding box.
getHeight() - Method in class Line
Gets the height of the bounding box.
getHeight() - Method in class Picture
Gets the height of this picture.
getHeight() - Method in class Rectangle
Gets the height of this rectangle.
getHeight() - Method in interface Shape
Gets the height of the shape.
getHeight() - Method in class Text
Gets the height of the bounding box.
getInstance() - Static method in class Canvas
Gets the unique instance of this class.
getMaxX() - Method in class Picture
Gets the rightmost x-position of the shape.
getMaxY() - Method in class Picture
Gets the bottommost y-position of the shape.
getRed() - Method in class Color
Gets the red value of this color.
getShapes() - Method in class Canvas
Gets all shapes in this canvas.
getWidth() - Method in class Ellipse
Gets the width of the bounding box.
getWidth() - Method in class Line
Gets the width of the bounding box.
getWidth() - Method in class Picture
Gets the width of this picture.
getWidth() - Method in class Rectangle
Gets the width of this rectangle.
getWidth() - Method in interface Shape
Gets the width of the shape.
getWidth() - Method in class Text
Gets the width of the bounding box.
getX() - Method in class Ellipse
Gets the leftmost x-position of this ellipse.
getX() - Method in class Line
Gets the leftmost x-position of the line.
getX() - Method in class Picture
Gets the leftmost x-position of the shape.
getX() - Method in class Rectangle
Gets the leftmost x-position of this rectangle.
getX() - Method in interface Shape
Gets the leftmost x-position of the shape.
getX() - Method in class Text
Gets the leftmost x-position of the bounding box.
getY() - Method in class Ellipse
Gets the topmost y-position of this ellipse.
getY() - Method in class Line
Gets the topmost y-position of the line.
getY() - Method in class Picture
Gets the topmost y-position of the shape.
getY() - Method in class Rectangle
Gets the topmost y-position of this rectangle.
getY() - Method in interface Shape
Gets the topmost y-position of the shape.
getY() - Method in class Text
Gets the topmost y-position of the bounding box.
GRAY - Static variable in class Color
 
GREEN - Static variable in class Color
 
grow(double, double) - Method in class Ellipse
Resizes this ellipse both horizontally and vertically.
grow(double, double) - Method in class Line
Resizes this line both horizontally and vertically.
grow(double, double) - Method in class Picture
Resizes this picture both horizontally and vertically.
grow(double, double) - Method in class Rectangle
Resizes this rectangle both horizontally and vertically.
grow(double, double) - Method in class Text
Resizes this text both horizontally and vertically.

L

LIGHT_GRAY - Static variable in class Color
 
Line - Class in <Unnamed>
 
Line(double, double, double, double) - Constructor for class Line
Constructs a line with a given starting and ending location.
load(String) - Method in class Picture
Loads a new picture from a given file or URL.

M

MAGENTA - Static variable in class Color
 
moveForward() - Method in class Robot
Moves this robot one step in the direction that it is facing.

O

ORANGE - Static variable in class Color
 

P

paintShape(Graphics2D) - Method in class Ellipse
 
paintShape(Graphics2D) - Method in class Line
 
paintShape(Graphics2D) - Method in class Picture
Draws this shape.
paintShape(Graphics2D) - Method in class Rectangle
 
paintShape(Graphics2D) - Method in interface Shape
Paints the shape.
paintShape(Graphics2D) - Method in class Text
 
pause() - Static method in class Canvas
Pauses so that the user can see the canvas before it is transformed.
Picture - Class in <Unnamed>
A picture from an image file.
Picture() - Constructor for class Picture
Constructs a picture with no image.
Picture(double, double) - Constructor for class Picture
Constructs a picture with a given width and height.
Picture(String) - Constructor for class Picture
Constructs a picture from a given file or URL.
Picture(int[][]) - Constructor for class Picture
Constructs a picture from an array of gray levels.
PINK - Static variable in class Color
 
pixels() - Method in class Picture
The number of pixels in this picture.

R

Rectangle - Class in <Unnamed>
 
Rectangle() - Constructor for class Rectangle
Constructs an empty rectangle.
Rectangle(double, double, double, double) - Constructor for class Rectangle
Constructs a rectangle.
RED - Static variable in class Color
 
remove(Shape) - Method in class Canvas
Removes a shape from this canvas.
repaint() - Method in class Canvas
Repaints this canvas.
rightHasWall() - Method in class Robot
Checks whether there is a wall to the right of this robot.
Robot - Class in <Unnamed>
 
Robot() - Constructor for class Robot
Constructs a robot at grid location (0, 0).
Robot(int, int, String) - Constructor for class Robot
Constructs a robot at a given grid location.

S

saveToDisk(String) - Method in class Canvas
Saves this canvas to an image file.
say(String) - Method in class Robot
Makes this robot say something.
setColor(Color) - Method in class Ellipse
Sets the color of this ellipse.
setColor(Color) - Method in class Line
Sets the color for drawing this line.
setColor(Color) - Method in class Rectangle
Sets the color of this rectangle.
setColor(Color) - Method in class Text
Sets the color for drawing this text.
setColorAt(int, Color) - Method in class Picture
Sets the color of a pixel.
setColorAt(int, int, Color) - Method in class Picture
Sets the color of a pixel.
setSnapshots(boolean) - Method in class Robot
Turns snapshots on or off.
Shape - Interface in <Unnamed>
A shape that can be drawn on a canvas.
show(Shape) - Method in class Canvas
Adds a shape to this canvas.
snapshot() - Static method in class Canvas
Takes a snapshot of the canvas, fades it, and sets it as the background.

T

Text - Class in <Unnamed>
 
Text(double, double, String) - Constructor for class Text
Constructs a text at a given location.
tint(Color) - Method in class Picture
Tints this picture with the given color.
toString() - Method in class Ellipse
 
toString() - Method in class Line
 
toString() - Method in class Picture
 
toString() - Method in class Rectangle
 
toString() - Method in interface Shape
Yields a description of this shape.
toString() - Method in class Text
 
translate(double, double) - Method in class Ellipse
Moves this ellipse by a given amount.
translate(double, double) - Method in class Line
Moves this line by a given amount.
translate(double, double) - Method in class Picture
Moves this picture by a given amount.
translate(double, double) - Method in class Rectangle
Moves this rectangle by a given amount.
translate(double, double) - Method in class Text
Moves this text by a given amount.
turn(int) - Method in class Picture
Turns this picture by a given number of 90 degree turns.
turnLeft() - Method in class Robot
Turns this robot 90 degrees left.
turnRight() - Method in class Robot
Turns this robot 90 degrees right.

W

WHITE - Static variable in class Color
 

Y

YELLOW - Static variable in class Color
 
B C D E F G L M O P R S T W Y