Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
B
C
D
E
F
G
L
M
O
P
R
S
T
W
Y
B
BLACK
- Static variable in class
Color
BlockTower
- Class in
<Unnamed>
BlockTower()
- Constructor for class
BlockTower
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.
CYAN
- Static variable in class
Color
D
DARK_GRAY
- Static variable in class
Color
Demo
- Class in
<Unnamed>
Demo()
- Constructor for class
Demo
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.
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.
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
getRed()
- Method in class
Color
Gets the red value of this color.
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 image from a given file or URL.
M
MAGENTA
- Static variable in class
Color
main(String[])
- Static method in class
BlockTower
main(String[])
- Static method in class
Demo
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()
- 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(double, double)
- Constructor for class
Picture
Constructs a picture with a given width and height.
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
Rectangle
- Class in
<Unnamed>
Rectangle(double, double, double, double)
- Constructor for class
Rectangle
Constructs a rectangle.
RED
- Static variable in class
Color
repaint()
- Method in class
Canvas
S
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.
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
Text
- Class in
<Unnamed>
Text(double, double, String)
- Constructor for class
Text
Constructs a text at a given location.
toString()
- Method in class
Ellipse
toString()
- Method in class
Line
toString()
- Method in class
Rectangle
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.
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
Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes