A B C D F G H L M O P R S W

A

add(Drawable) - Method in class csa120.shape.Canvas
Add a drawable object to the canvas (however canvas is not automatically refreshed)
add(Shape) - Method in class csa120.shape.Group
Add a shape to the group.
add(Group) - Method in class csa120.shape.Group
Add a (different) group to the group.

B

bkgdColor - Variable in class csa120.shape.Canvas
 
borderColor - Variable in class csa120.shape.Shape
 
borderThickness - Variable in class csa120.shape.Shape
 

C

Canvas - class csa120.shape.Canvas.
Canvas is a class to allow for simple graphical drawing on a canvas.
Canvas(String, int, int, Color) - Constructor for class csa120.shape.Canvas
Create a Canvas.
Canvas(String, int, int, String) - Constructor for class csa120.shape.Canvas
Create a Canvas.
Canvas(String, int, int) - Constructor for class csa120.shape.Canvas
Create a Canvas (with white background as default)
Canvas.CanvasPane - class csa120.shape.Canvas.CanvasPane.
Inner class CanvasPane - the actual canvas component contained in the Canvas frame.
Canvas.CanvasPane() - Constructor for class csa120.shape.Canvas.CanvasPane
 
Canvas.DepthCompare - class csa120.shape.Canvas.DepthCompare.
Inner class DepthCompare - a comparator for use in sorting by descending depth in preparation for painters algorithm
Canvas.DepthCompare() - Constructor for class csa120.shape.Canvas.DepthCompare
 
Circle - class csa120.shape.Circle.
A Circle is a subclass of Shape.
Circle() - Constructor for class csa120.shape.Circle
Constructor for objects of class Circle
Circle(int) - Constructor for class csa120.shape.Circle
Constructor for objects of class Circle
ColorChoices - class csa120.shape.ColorChoices.
A utility class to map color names to actual colors
ColorChoices() - Constructor for class csa120.shape.ColorChoices
 
cHeight - Variable in class csa120.shape.Canvas
 
cWidth - Variable in class csa120.shape.Canvas
 
canvas - Variable in class csa120.shape.Canvas
 
canvasImage - Variable in class csa120.shape.Canvas
 
clear() - Method in class csa120.shape.Canvas
Clear all drawable objects from the canvas (however canvas is not automatically refreshed)
clear() - Method in class csa120.shape.Group
Clear all elements from the group
compare(Object, Object) - Method in class csa120.shape.Canvas.DepthCompare
 
compare(Object, Object) - Method in class csa120.shape.Group.DepthCompare
 
csa120.shape - package csa120.shape
A simple environment for drawing shapes.

D

Drawable - interface csa120.shape.Drawable.
This is an interface for all objects considered Drawable.
depth - Variable in class csa120.shape.Group
 
depth - Variable in class csa120.shape.Shape
 
destroy() - Method in class csa120.shape.Canvas
Destroys the canvas, closing the associated window.
draw(Graphics2D) - Method in class csa120.shape.Circle
Draws the Circle on the given Graphics2D object.
draw(Graphics2D, int, int) - Method in class csa120.shape.Circle
Draws the Circle on the given Graphics2D object, with additional offset as given.
draw(Graphics2D) - Method in interface csa120.shape.Drawable
Draws the object appropriately on the given Graphics2D object.
draw(Graphics2D, int, int) - Method in interface csa120.shape.Drawable
Draws the object appropriately on the given Graphics2D object, with additional offset as given.
draw(Graphics2D) - Method in class csa120.shape.Group
Draws the Group appropriately on the given Graphics2D object.
draw(Graphics2D, int, int) - Method in class csa120.shape.Group
Draws the Group on the given Graphics2D object, with additional offset as given.
draw(Graphics2D) - Method in class csa120.shape.Rectangle
Draws the Rectangle on the given Graphics2D object.
draw(Graphics2D, int, int) - Method in class csa120.shape.Rectangle
Draws the Rectangle on the given Graphics2D object, with additional offset as given.
draw(Graphics2D) - Method in class csa120.shape.Segment
Draws the object appropriate on the given Graphics2D object.
draw(Graphics2D, int, int) - Method in class csa120.shape.Segment
Draws the Rectangle on the given Graphics2D object, with additional offset as given.
draw(Graphics2D) - Method in class csa120.shape.Shape
Draws the Shape appropriately on the given Graphics2D object.
draw(Graphics2D, int, int) - Method in class csa120.shape.Shape
Draws the Shape on the given Graphics2D object, with additional offset as given.

F

FillableShape - class csa120.shape.FillableShape.
Similar to shape, but for objects which can be drawn either filled or unfilled
FillableShape() - Constructor for class csa120.shape.FillableShape
Generic constructor for FillableShape class.
FillableShapeOrGroup - interface csa120.shape.FillableShapeOrGroup.
This interface includes behavior allowed for either FillableShapes or Groups
fillColor - Variable in class csa120.shape.FillableShape
 
filled - Variable in class csa120.shape.FillableShape
 
frame - Variable in class csa120.shape.Canvas
 

G

Group - class csa120.shape.Group.
A Group is a collection of Shapes and other Groups.
Group() - Constructor for class csa120.shape.Group
Constructor for objects of class Group
Group.DepthCompare - class csa120.shape.Group.DepthCompare.
Inner class DepthCompare - a comparator for use in sorting by descending depth in preparation for painters algorithm
Group.DepthCompare() - Constructor for class csa120.shape.Group.DepthCompare
 
getBackgroundColor() - Method in class csa120.shape.Canvas
Returns current background color
getBorderColor() - Method in class csa120.shape.Shape
Returns current color of shape border
getBorderThickness() - Method in class csa120.shape.Shape
Returns current thickness of shape border
getDepth() - Method in interface csa120.shape.Drawable
Returns the depth of the drawable object
getDepth() - Method in class csa120.shape.Group
Returns current depth of the group as a unit
getDepth() - Method in class csa120.shape.Shape
Returns current depth of object
getFillColor() - Method in class csa120.shape.FillableShape
Returns current color desired for shape interior.
getFilled() - Method in class csa120.shape.FillableShape
Returns current state of fillable flag
getFirstPoint() - Method in class csa120.shape.Segment
Returns first endpoint
getHeight() - Method in class csa120.shape.Canvas
get the height of the canvas
getHeight() - Method in class csa120.shape.Rectangle
Returns current height of rectangle
getLocation() - Method in class csa120.shape.Shape
Returns current location of reference point
getRadius() - Method in class csa120.shape.Circle
Returns current radius of circle
getSecondPoint() - Method in class csa120.shape.Segment
Returns second endpoint
getWidth() - Method in class csa120.shape.Canvas
get the width of the canvas
getWidth() - Method in class csa120.shape.Rectangle
Returns current width of rectangle

H

height - Variable in class csa120.shape.Rectangle
The height of the rectangle, measured in pixels.

L

location - Variable in class csa120.shape.Shape
 
lookup(String) - Static method in class csa120.shape.ColorChoices
Translates the known color name to the actual color.

M

move(int, int) - Method in class csa120.shape.Group
Translates each element of the given group based on given values
move(int, int) - Method in class csa120.shape.Segment
Translates the given shape based on given values
move(int, int) - Method in class csa120.shape.Shape
Translates the given shape based on given values
move(int, int) - Method in interface csa120.shape.ShapeOrGroup
Translates based on given values

O

objects - Variable in class csa120.shape.Canvas
 
objects - Variable in class csa120.shape.Group
 

P

paint(Graphics) - Method in class csa120.shape.Canvas.CanvasPane
 

R

Rectangle - class csa120.shape.Rectangle.
A Rectangle is a subclass of a FillableShape.
Rectangle(int, int) - Constructor for class csa120.shape.Rectangle
Constructor for objects of class Rectangle
radius - Variable in class csa120.shape.Circle
 
redraw() - Method in class csa120.shape.Canvas
Redraw all objects currently on the Canvas.
refresh() - Method in class csa120.shape.Canvas
Redraw all objects currently on the Canvas and then process desired pause if in a ControlledThread
remove(Drawable) - Method in class csa120.shape.Canvas
Remove a drawable object from the canvas (however canvas is not automatically refreshed)
remove(Shape) - Method in class csa120.shape.Group
Remove a shape from the group.
remove(Group) - Method in class csa120.shape.Group
Remove a group from the group.

S

Segment - class csa120.shape.Segment.
A Segment is a subclass of Shape.
Segment(int, int, int, int) - Constructor for class csa120.shape.Segment
Constructor for objects of class Rectangle
Shape - class csa120.shape.Shape.
This will be a parent class for a variety of shapes
Shape() - Constructor for class csa120.shape.Shape
Generic constructor for Shape class sets defaults as color = black, location = (0,0), depth=0
ShapeOrGroup - interface csa120.shape.ShapeOrGroup.
This interface includes behavior allowed for either Shapes or Groups.
Square - class csa120.shape.Square.
A Square is a subclass of Rectangle.
Square(int) - Constructor for class csa120.shape.Square
Constructor for objects of class Square
second - Variable in class csa120.shape.Segment
 
setBackgroundColor(Color) - Method in class csa120.shape.Canvas
Sets the current background color
setBackgroundColor(String) - Method in class csa120.shape.Canvas
Sets the current background color based upon a list of several known color names from java.awt.Color.
setBorderColor(Color) - Method in class csa120.shape.Group
Sets the border color of each element of the group
setBorderColor(String) - Method in class csa120.shape.Group
Sets the border color of each element of the group based upon a list of several known color names from java.awt.Color.
setBorderColor(Color) - Method in class csa120.shape.Shape
Sets the current color of shape border
setBorderColor(String) - Method in class csa120.shape.Shape
Sets the current color of shape border based upon a list of several known color names from java.awt.Color.
setBorderColor(Color) - Method in interface csa120.shape.ShapeOrGroup
Sets the border color
setBorderColor(String) - Method in interface csa120.shape.ShapeOrGroup
Sets the border color of based upon a list of several known color names from java.awt.Color.
setBorderThickness(int) - Method in class csa120.shape.Group
Sets the border thickness of each element of the group
setBorderThickness(int) - Method in class csa120.shape.Shape
Sets the current thickness of shape border
setBorderThickness(int) - Method in interface csa120.shape.ShapeOrGroup
Sets the border thickness
setDepth(int) - Method in class csa120.shape.Group
Sets depth of the group as a whole (while not changing the relative depths of the individual elements)
setDepth(int) - Method in class csa120.shape.Shape
Sets depth of object
setDepth(int) - Method in interface csa120.shape.ShapeOrGroup
Sets depth
setFillColor(Color) - Method in class csa120.shape.FillableShape
Sets the current color for the shape interior.
setFillColor(String) - Method in class csa120.shape.FillableShape
Sets the current color of shape interior based upon a list of several known color names from java.awt.Color.
setFillColor(Color) - Method in interface csa120.shape.FillableShapeOrGroup
Sets the current color for the interior.
setFillColor(String) - Method in interface csa120.shape.FillableShapeOrGroup
Sets the current color for the interior based upon a list of several known color names from java.awt.Color.
setFillColor(Color) - Method in class csa120.shape.Group
Sets the current color for the interior.
setFillColor(String) - Method in class csa120.shape.Group
Sets the current color for the interior based upon a list of several known color names from java.awt.Color.
setFilled(boolean) - Method in class csa120.shape.FillableShape
Sets the current state of fillable flag
setFilled(boolean) - Method in interface csa120.shape.FillableShapeOrGroup
Sets the current state of fillable flag
setFilled(boolean) - Method in class csa120.shape.Group
Sets the current state of fillable flag
setFirstPoint(int, int) - Method in class csa120.shape.Segment
Sets coordinates of first endpoint
setHeight(int) - Method in class csa120.shape.Rectangle
Sets height of rectangle
setHeight(int) - Method in class csa120.shape.Square
This overrides the method in parent Rectangle to ensure that the width and height remain equal.
setLocation(int, int) - Method in class csa120.shape.Shape
Resets the location of the given shape to the given values
setRadius(int) - Method in class csa120.shape.Circle
Sets radius of circle
setSecondPoint(int, int) - Method in class csa120.shape.Segment
Sets coordinates of second endpoint
setWidth(int) - Method in class csa120.shape.Rectangle
Sets width of rectangle
setWidth(int) - Method in class csa120.shape.Square
This overrides the method in parent Rectangle to ensure that the width and height remain equal.

W

width - Variable in class csa120.shape.Rectangle
The width of the rectangle, measured in pixels.

A B C D F G H L M O P R S W