C D G H J M O P R S W X Y

C

CircleShape - class CircleShape.
Circle shape for the Drawing program
CircleShape(int, int, int, Color) - Constructor for class CircleShape
Constructor for objects of class Circle
color - Variable in class Shape
Color of the shape
colorBox - Variable in class DrawingProgram
 
colors - Variable in class DrawingProgram
 
comboPanel - Variable in class DrawingProgram
 

D

DrawingPanel - class DrawingPanel.
Used to draw shapes in the panel.
DrawingPanel(DrawingProgram) - Constructor for class DrawingPanel
Constructor for objects of class DrawingPanel
DrawingProgram - class DrawingProgram.
Drawing Program can draw figures on a drawing panel.
DrawingProgram() - Constructor for class DrawingProgram
Constructor for DrawingProgram.
draw(Graphics) - Method in class CircleShape
Draws the shape on the input screen
draw(Graphics) - Method in class OvalShape
Draws the shape on the input screen
draw(Graphics) - Method in class RectangleShape
Draws the shape on the input screen
draw(Graphics) - Method in class Shape
Draws the shape on the input screen
drawPanel - Variable in class DrawingProgram
 

G

getColor() - Method in class Shape
Returns the color of the shape
getHeight() - Method in class Shape
Returns the height of the shape
getRadius() - Method in class CircleShape
Returns the radius of the circle
getSelectedColor() - Method in class DrawingProgram
Returns the selected color
getSelectedShape() - Method in class DrawingProgram
Returns the selected shape
getWidth() - Method in class Shape
Returns the width of the shape
getX() - Method in class Shape
Returns the x position of the shape
getY() - Method in class Shape
Returns the y position of the shape

H

height - Variable in class Shape
Height of the shape

J

javaColors - Variable in class DrawingProgram
 

M

main(String[]) - Static method in class DrawingProgram
Used to initialize the program
mouseClicked(MouseEvent) - Method in class DrawingPanel
Draws the shape where the mouse clicked
mouseEntered(MouseEvent) - Method in class DrawingPanel
Not used
mouseExited(MouseEvent) - Method in class DrawingPanel
Not used
mousePressed(MouseEvent) - Method in class DrawingPanel
Not used
mouseReleased(MouseEvent) - Method in class DrawingPanel
Not used

O

OvalShape - class OvalShape.
Oval shape for the Drawing program
OvalShape(int, int, int, int, Color) - Constructor for class OvalShape
Constructor for objects of class Oval

P

paint(Graphics) - Method in class DrawingPanel
Paints the shapes in the panel.
program - Variable in class DrawingPanel
The program controller, used to get information about the shapes

R

RectangleShape - class RectangleShape.
Rectangle shape for the Drawing program
RectangleShape(int, int, int, int, Color) - Constructor for class RectangleShape
Constructor for objects of class Rectangle
radius - Variable in class CircleShape
Radius of the circle

S

Shape - class Shape.
Abstract class Shape - Keeps information about the shape.
Shape(int, int, int, int, Color) - Constructor for class Shape
Constructor for the shapes.
setColor(Color) - Method in class Shape
Sets the color to the new color
setHeight(int) - Method in class Shape
Sets the height to the new height
setRadius(int) - Method in class CircleShape
Sets the radius of the circle
setWidth(int) - Method in class Shape
Sets the width to the new width
setX(int) - Method in class Shape
Sets the X to the new X
setY(int) - Method in class Shape
Sets the Y to the new Y
shapeBox - Variable in class DrawingProgram
 
shapeList - Variable in class DrawingPanel
Keeps a list of the shapes drawn in the program
shapes - Variable in class DrawingProgram
 

W

width - Variable in class Shape
Width of the shape

X

x - Variable in class Shape
X position of the shape

Y

y - Variable in class Shape
Y position of the shape

C D G H J M O P R S W X Y