Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
G
L
M
O
P
R
S
T
W
Y
A
addGas(double)
- Method in class
Car
Adds gas to the tank of this car.
B
BLACK
- Static variable in class
Color
BLUE
- Static variable in class
Color
C
Canvas
- Class in
<Unnamed>
Car
- Class in
<Unnamed>
A simulated car that consumes gas as it drives.
Car(double)
- Constructor for class
Car
Constructs a car with a given fuel efficiency.
CarTester
- Class in
<Unnamed>
CarTester()
- Constructor for class
CarTester
Color
- Class in
<Unnamed>
Color(double, double, double)
- Constructor for class
Color
Constructs a new Color object.
CYAN
- Static variable in class
Color
D
DARK_GRAY
- Static variable in class
Color
draw()
- Method in class
Picture
Shows this picture on the canvas.
drive(double)
- Method in class
Car
Drives this car by a given distance.
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.
getGasInTank()
- Method in class
Car
Gets the current amount of gas in the tank of this car.
getGreen()
- Method in class
Color
Gets the green value of this color.
getHeight()
- Method in class
Picture
Gets the height of this picture.
getHeight()
- Method in interface
Shape
Gets the height of the shape.
getInstance()
- Static method in class
Canvas
getMilesDriven()
- Method in class
Car
Gets the current mileage of this car.
getRed()
- Method in class
Color
Gets the red value of this color.
getWidth()
- Method in class
Picture
Gets the width of this picture.
getWidth()
- Method in interface
Shape
Gets the width of the shape.
getX()
- Method in class
Picture
Gets the leftmost x-position of the shape.
getX()
- Method in interface
Shape
Gets the leftmost x-position of the shape.
getY()
- Method in class
Picture
Gets the topmost y-position of the shape.
getY()
- Method in interface
Shape
Gets the topmost y-position of the shape.
GRAY
- Static variable in class
Color
GREEN
- Static variable in class
Color
grow(double, double)
- Method in class
Picture
Resizes this picture both horizontally and vertically.
L
LIGHT_GRAY
- Static variable in class
Color
load(String)
- Method in class
Picture
Loads a new image from a given file or URL.
M
MAGENTA
- Static variable in class
Color
main(String[])
- Static method in class
CarTester
O
ORANGE
- Static variable in class
Color
P
paintShape(Graphics2D)
- Method in class
Picture
Draws this shape.
paintShape(Graphics2D)
- Method in interface
Shape
Paints the shape
pause()
- Method in class
Canvas
Pauses so that the user can see the picture 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(String)
- Constructor for class
Picture
Constructs an image from a given file or URL.
PINK
- Static variable in class
Color
pixels()
- Method in class
Picture
The number of pixels in this picture.
R
RED
- Static variable in class
Color
repaint()
- Method in class
Canvas
S
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.
Shape
- Interface in
<Unnamed>
A shape that can be drawn on a canvas.
show(Shape)
- Method in class
Canvas
snapshot()
- Static method in class
Canvas
Takes a snapshot of the screen, fades it, and sets it as the background.
T
translate(double, double)
- Method in class
Picture
Moves this picture by a given amount.
W
WHITE
- Static variable in class
Color
Y
YELLOW
- Static variable in class
Color
A
B
C
D
G
L
M
O
P
R
S
T
W
Y
Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes