B C D 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(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 Rectangle
Shows this shape on the canvas.

G

getBlue() - Method in class Color
Gets the blue value of this color.
getGreen() - Method in class Color
Gets the green value of this color.
getHeight() - Method in class Rectangle
Gets the height of this rectangle.
getHeight() - Method in interface Shape
Gets the height of the shape.
getInstance() - Static method in class Canvas
 
getRed() - Method in class Color
Gets the red value of this color.
getWidth() - Method in class Rectangle
Gets the width of this rectangle.
getWidth() - Method in interface Shape
Gets the width 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.
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.
GRAY - Static variable in class Color
 
GREEN - Static variable in class Color
 
grow(double, double) - Method in class Rectangle
Resizes this rectangle both horizontally and vertically.

L

LIGHT_GRAY - Static variable in class Color
 

M

MAGENTA - Static variable in class Color
 
main(String[]) - Static method in class RectangleDemo
 

O

ORANGE - Static variable in class Color
 

P

paintShape(Graphics2D) - Method in class Rectangle
 
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.
PINK - Static variable in class Color
 

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.
RectangleDemo - Class in <Unnamed>
 
RectangleDemo() - Constructor for class RectangleDemo
 
RED - Static variable in class Color
 
repaint() - Method in class Canvas
 

S

setDrawColor(Color) - Method in class Rectangle
Sets the color for drawing the outline of this rectangle.
setFillColor(Color) - Method in class Rectangle
Sets the color for filling the interior of this rectangle.
Shape - Interface in <Unnamed>
A shape that can be drawn on a canvas.
show(Shape) - Method in class Canvas
 

T

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 G L M O P R S T W Y