A B C D E F G H I L M N O P R S T U V W

A

acceptDrop(Object) - Method in interface canvas.DragComponent
Returns whether the given object was accepted in a drop attempt.
acceptDrop(Object) - Method in class canvas.DrawingPane
You should override this method in supclass to get drag/drop to work with your shapes.
acceptDrop(Object) - Method in class canvas.DropDragShapeComponent
You should override this method in subclass to get drag/drop to work with your shapes.
acceptDrop(Object) - Method in class canvas.PictureComponent
You should override this method in supclass to get drag/drop to work with your Components.
add(Component) - Method in class canvas.DrawingPane
Puts the given Component on the DrawingPane using the Component's preferred size.
add(Component) - Method in class canvas.ViewFrame
adds the Component to the main DrawingPane of this ViewFrame
add(Component, int, int) - Method in class canvas.DrawingPane
Puts the given Component on the DrawingPane using the Component's preferred size at the given x,y location.
add(Component, int, int) - Method in class canvas.ViewFrame
Puts the given Component on the main DrawingPane using the Component's preferred size at the given x,y location.
addDragListener() - Method in class canvas.DefaultListener
This method is called by a DragComponent's addDragListener() method, you should not need to use it.
addDragListener() - Method in class canvas.DrawingPane
Allows this DrawingPane to listen for Drag & Drop
addDragListener() - Method in class canvas.DropDragShapeComponent
Allows this Shape to listen for Drag & Drop
addDragListener() - Method in class canvas.PictureComponent
Allows this PictureComponent to listen for Drag & Drop
addKeyboardListener() - Method in class canvas.DrawingPane
Allows this DrawingPane to Listen for Arrow Keys Note: Only one object will listen for key strokes at a time to obtain the focus for this object, you need to call the object's getFocus() method.
addKeyboardListener() - Method in class canvas.DropDragShapeComponent
Allows this Shape to Listen for Arrow Keys Note: Only one shape will listen for key strokes at a time to obtain the focus for this shape, you need to call the Shape's getFocus() method.
addKeyboardListener() - Method in class canvas.PictureComponent
Allows this PictureComponent to Listen for Arrow Keys Note: Only one shape will listen for key strokes at a time to obtain the focus for this shape, you need to call the Shape's getFocus() method.
addKeyboardListener() - Method in class canvas.ViewFrame
Adds a Keyboard Listener to the ViewFrame Note: Only works if a listener is set for the ViewFrame
addMouseListener() - Method in class canvas.DefaultListener
This method is called by a DragComponent's addMouseListener() method, you should not need to use it.
addMouseListener() - Method in class canvas.DrawingPane
Allows this DrawingPane to listen for Mouse Events.
addMouseListener() - Method in class canvas.DropDragShapeComponent
Allows this Shape to listen for Mouse Events.
addMouseListener() - Method in class canvas.PictureComponent
Allows this PictureComponent to listen for Mouse Events.
addMouseListener() - Method in class canvas.ViewFrame
Adds a Mouse Listener to the ViewFrame Note: Only works if a listener is set for the ViewFrame
AnyColor - class canvas.AnyColor.
Will hold and return any 24-bit RGB color.
AnyColor(AnyColor) - Constructor for class canvas.AnyColor
Extracts the color from the AnyColor object.
AnyColor(Color) - Constructor for class canvas.AnyColor
Takes the color to be held as the argument.
AnyColor(int) - Constructor for class canvas.AnyColor
Takes the single integer that gets piped into the Color() constructor.
AnyColor(int, int, int) - Constructor for class canvas.AnyColor
Takes the red, green,and blue components.
AnyColor(WebSafeColor) - Constructor for class canvas.AnyColor
Extracts the color from the WebSafeColor object.
Arc - class canvas.Arc.
Represents an Arc that can be added to a DrawingPane.
Arc(double, double, double, double) - Constructor for class canvas.Arc
Creates a new Arc whose upper-left corner is at (x,y) and whose width and height are as specified.
Arc(double, double, double, double, boolean) - Constructor for class canvas.Arc
Creates a new Arc with the specified fill behavior.
Arc(double, double, double, double, boolean, Color) - Constructor for class canvas.Arc
Creates a new Arc with the specified color and fill behavior.
Arc(double, double, double, double, boolean, Color, DrawingGrid) - Constructor for class canvas.Arc
Creates a new Arc with the specified color and fill behavior using the specified (@link DrawingGrid).
Arc(double, double, double, double, boolean, DrawingGrid) - Constructor for class canvas.Arc
Creates a new Arc with the specified fill behavior using the specified (@link DrawingGrid).
Arc(double, double, double, double, Color) - Constructor for class canvas.Arc
Creates a new Arc with the specified color.
Arc(double, double, double, double, Color, DrawingGrid) - Constructor for class canvas.Arc
Creates a new Arc with the specified color using the specified (@link DrawingGrid).
Arc(double, double, double, double, DrawingGrid) - Constructor for class canvas.Arc
Creates a new Arc whose center is at DrawingGrid coordinates (x,y) and whose width and height are as specified in grid block terms.

B

BaseColor - class canvas.BaseColor.
Provides an abstract structure and general services for Colors.
BaseColor(Color) - Constructor for class canvas.BaseColor
Takes the color that is to be held.
BaseColor(int) - Constructor for class canvas.BaseColor
Takes the single integer that gets piped into the Color() constructor.
BaseColor(int, int, int) - Constructor for class canvas.BaseColor
Creates new color with specified red, green, and blue components.
brighter() - Method in class canvas.AnyColor
Returns a brighter version of the held color.
brighter() - Method in class canvas.BaseColor
Return a brighter version of the color.
brighter() - Method in class canvas.WebSafeColor
Returns a brighter version of the held color.

C

canvas - package canvas
 
CanvasComponent - interface canvas.CanvasComponent.
This interface should be implemented by any objects that Can be added to and manipulated by DrawingPanes.
charKeyPressed(char) - Method in class canvas.DefaultListener
 
color - Variable in class canvas.BaseColor
This is the color the object holds and operates on.
convertG2Px(double) - Method in class canvas.DrawingGrid
Convert the Grid x coordinate to a pixel coordinate.
convertG2Px(int) - Method in class canvas.DrawingGrid
Convert the Grid x coordinate to a pixel coordinate.
convertG2Py(double) - Method in class canvas.DrawingGrid
Convert the Grid y coordinate to a pixel coordinate.
convertG2Py(int) - Method in class canvas.DrawingGrid
Convert the Grid y coordinate to a pixel coordinate.

D

darker() - Method in class canvas.AnyColor
Returns a darker version ofthe held color.
darker() - Method in class canvas.BaseColor
Returns a darker version of the color.
darker() - Method in class canvas.WebSafeColor
Returns a darker version ofthe held color.
debug - Static variable in class canvas.DefaultListener
 
debug - Static variable in class canvas.ShapeComponent
 
DefaultListener - class canvas.DefaultListener.
Provides an infrastructure for listening for mouse, keyboard, and drag-and-drop events.
DefaultListener(Component) - Constructor for class canvas.DefaultListener
Conststructs a new DefaultListener for the given component
desaturate() - Method in class canvas.AnyColor
Returns a less saturated version of the color.
desaturate() - Method in class canvas.BaseColor
Returns a less saturated version of the color.
desaturate() - Method in class canvas.WebSafeColor
This method will return a less saturated color than the one held.
displace(double, double) - Method in class canvas.ShapeComponent
Displaces this ShapeComponent by the given amount.
displace(double, double, DrawingGrid) - Method in class canvas.ShapeComponent
Displaces the ShapeComponent by the given DrawingGrid amount.
downKeyPressed() - Method in class canvas.DefaultListener
This method should be overridden in a subclass to obtain functionality for "down" key presses.
DragComponent - interface canvas.DragComponent.
This interface should be implemented by any objects that are meant to be drag and drop objects.
dragDropEnd(DragSourceDropEvent) - Method in class canvas.DrawingPane
You should not need to use this method
dragDropEnd(DragSourceDropEvent) - Method in class canvas.DropDragShapeComponent
You should not need to use this method
dragDropEnd(DragSourceDropEvent) - Method in class canvas.PictureComponent
You should not need to use this method
dragEnter(DragSourceDragEvent) - Method in class canvas.DrawingPane
You should not need to use this method
dragEnter(DragSourceDragEvent) - Method in class canvas.DropDragShapeComponent
You should not need to use this method
dragEnter(DragSourceDragEvent) - Method in class canvas.PictureComponent
You should not need to use this method
dragExit(DragSourceEvent) - Method in class canvas.DrawingPane
You should not need to use this method
dragExit(DragSourceEvent) - Method in class canvas.DropDragShapeComponent
You should not need to use this method
dragExit(DragSourceEvent) - Method in class canvas.PictureComponent
You should not need to use this method
dragOver(DragSourceDragEvent) - Method in class canvas.DrawingPane
You should not need to use this method
dragOver(DragSourceDragEvent) - Method in class canvas.DropDragShapeComponent
You should not need to use this method
dragOver(DragSourceDragEvent) - Method in class canvas.PictureComponent
You should not need to use this method
DrawingGrid - class canvas.DrawingGrid.
Represents a grid coordinate for usage with a DrawingPane.
DrawingGrid(int, int, DrawingPane) - Constructor for class canvas.DrawingGrid
Creates a new DrawingGrid for usage in a DrawingPane.
DrawingPane - class canvas.DrawingPane.
Provides support for drawing shapes in a window.
DrawingPane() - Constructor for class canvas.DrawingPane
Creates a DrawingPane with a white background that is initially 640 pixels wide and 480 pixels high.
DrawingPane(Color, int, int) - Constructor for class canvas.DrawingPane
Creates a DrawingPane with the given title, background color, and size.
DrawingPane(int, int) - Constructor for class canvas.DrawingPane
Creates a DrawingPane with the given width and height
dropActionChanged(DragSourceDragEvent) - Method in class canvas.DrawingPane
You should not need to use this method
dropActionChanged(DragSourceDragEvent) - Method in class canvas.DropDragShapeComponent
You should not need to use this method
dropActionChanged(DragSourceDragEvent) - Method in class canvas.PictureComponent
You should not need to use this method
DropDragShapeComponent - class canvas.DropDragShapeComponent.
Provides a set of methods that allow ShapeComponents to listen for mouse, keyboard, and drag-and-drop events using a DefaultListener
DropDragShapeComponent(Shape, boolean, Color) - Constructor for class canvas.DropDragShapeComponent
 

E

Ellipse - class canvas.Ellipse.
Represents an Ellipse that can be added to a DrawingPane.
Ellipse(double, double, double, double) - Constructor for class canvas.Ellipse
Creates a new Ellipse whose bounding box has an upper-left corner of (x,y) and the specified width and height.
Ellipse(double, double, double, double, boolean) - Constructor for class canvas.Ellipse
Creates a new Ellipse with the specified bounding box and fill behavior.
Ellipse(double, double, double, double, boolean, Color) - Constructor for class canvas.Ellipse
Creates a new Ellipse with the specified bounding box, color, and fill.
Ellipse(double, double, double, double, boolean, Color, DrawingGrid) - Constructor for class canvas.Ellipse
Creates a new Ellipse with the specified DrawingGrid bounding box, color, and fill.
Ellipse(double, double, double, double, boolean, DrawingGrid) - Constructor for class canvas.Ellipse
Creates a new Ellipse with the specified DrawingGrid bounding box and fill behavior.
Ellipse(double, double, double, double, Color) - Constructor for class canvas.Ellipse
Creates a new Ellipse with the specified bounding box and drawing color.
Ellipse(double, double, double, double, Color, DrawingGrid) - Constructor for class canvas.Ellipse
Creates a new Ellipse with the specified DrawingGrid bounding box and drawing color.
Ellipse(double, double, double, double, DrawingGrid) - Constructor for class canvas.Ellipse
Creates a new Ellipose whose bounding box has an upper-left DrawingGrid corner of (x,y) and the specified DrawingGrid width and height.
enterKeyPressed() - Method in class canvas.DefaultListener
This method should be overridden in a subclass to obtain functionality for "enter" key presses.

F

fontSize - Variable in class canvas.StringComponent
 

G

getColor() - Method in class canvas.BaseColor
Returns the color.
getDrawingPane() - Method in class canvas.DrawingGrid
Return the DrawingPane associated with this DrawingGrid.
getDrawingPane() - Method in class canvas.PictureComponent
Returns the Drawing Pane that this PictureComponent has been added too.
getDrawingPane() - Method in class canvas.ShapeComponent
Returns the DrawingPane that this ShapeComponent has been added to.
getDrawingPane() - Method in class canvas.StringComponent
Returns the DrawingPane that this StringComponent has been added to.
getDrawingPane() - Method in class canvas.ViewFrame
Returns the main DrawingPane that this ViewFrame holds
getFilled() - Method in class canvas.ShapeComponent
Returns true if the shape is filled, and false if it is not
getGBoxHeight() - Method in class canvas.DrawingGrid
Returns the number of pixels representing the height of a Grid box.
getGBoxWidth() - Method in class canvas.DrawingGrid
Returns the number of pixels representing the width of a Grid box.
getGridHeight() - Method in class canvas.DrawingGrid
Return the number of rows in the grid.
getGridWidth() - Method in class canvas.DrawingGrid
Return the number of columns in the grid.
getHeight() - Method in interface canvas.CanvasComponent
Returns the height of the component
getHeight() - Method in class canvas.DrawingPane
Returns the Height of the DrawingPane
getMiddleX() - Method in class canvas.DrawingGrid
Returns the middle x coordinate of the DrawingGrid in GridBox terms.
getMiddleY() - Method in class canvas.DrawingGrid
Returns the middle y coordinate of the DrawingGrid in GridBox terms.
getPixel(int, int) - Method in class canvas.PictureComponent
Returns the color of the given pixel.
getPreferredSize() - Method in class canvas.PictureComponent
You should not need to use this method
getPreferredSize() - Method in class canvas.ShapeComponent
For discovering the "best" width and height of the component.
getShape() - Method in class canvas.ShapeComponent
Gets the shape out of this ShapeComponent.
getShapeHeight() - Method in class canvas.ShapeComponent
Returns the height of the shape
getShapeWidth() - Method in class canvas.ShapeComponent
Returns the widith of the shape
getShapeX() - Method in class canvas.ShapeComponent
Returns the X coodinate of the the shape
getShapeY() - Method in class canvas.ShapeComponent
Returns the Y coordinate of the shape
getSlope() - Method in class canvas.Line
Returns the slope of this line.
getTransferData(DataFlavor) - Method in class canvas.DrawingPane
You should not need to use this method
getTransferData(DataFlavor) - Method in class canvas.DropDragShapeComponent
You should not need to use this method
getTransferData(DataFlavor) - Method in class canvas.PictureComponent
You should not need to use this method
getTransferDataFlavors() - Method in class canvas.DrawingPane
You should not need to use this method
getTransferDataFlavors() - Method in class canvas.DropDragShapeComponent
You should not need to use this method
getTransferDataFlavors() - Method in class canvas.PictureComponent
You should not need to use this method
getVFHeight() - Method in class canvas.ViewFrame
 
getVFWidth() - Method in class canvas.ViewFrame
 
getWidth() - Method in interface canvas.CanvasComponent
Returns the width of the component
getWidth() - Method in class canvas.DrawingPane
Returns the Width of the DrawingPane

H

hueshift(int) - Method in class canvas.AnyColor
Returns a color with a different hue than the one held.
hueshift(int) - Method in class canvas.BaseColor
Returns a color shifted around the color wheel.
hueshift(int) - Method in class canvas.WebSafeColor
This will return a color with a different hue than the one held.

I

in_range(float) - Static method in class canvas.BaseColor
Returns a float between 0 and 1.
in_range(int) - Static method in class canvas.BaseColor
Makes sure the integer passed in is between 0 and 255 and returns it.
involvedInDrop - Static variable in class canvas.DefaultListener
 
involvedInDrop - Variable in class canvas.DrawingPane
 
isDataFlavorSupported(DataFlavor) - Method in class canvas.DrawingPane
You should not need to use this method
isDataFlavorSupported(DataFlavor) - Method in class canvas.DropDragShapeComponent
You should not need to use this method
isDataFlavorSupported(DataFlavor) - Method in class canvas.PictureComponent
You should not need to use this method

L

leftKeyPressed() - Method in class canvas.DefaultListener
This method should be overridden in a subclass to obtain functionality for "left" key presses.
Line - class canvas.Line.
Represents a Line that can be added to a DrawingPane.
Line(double, double, double, double) - Constructor for class canvas.Line
Creates a Line from (x1, y1) to (x2, y2).
Line(double, double, double, double, Color) - Constructor for class canvas.Line
Creates a colored Line from (x1, y1) to (x2, y2).
Line(double, double, double, double, Color, DrawingGrid) - Constructor for class canvas.Line
Creates a colord Line from DrawingGrid coordinates (x1, y1) to (x2, y2).
Line(double, double, double, double, DrawingGrid) - Constructor for class canvas.Line
Creates a Line from DrawingGrid coordinates (x1, y1) to (x2, y2).
loadImage(String) - Method in class canvas.PictureComponent
You should not need to use this method

M

main(String[]) - Static method in class canvas.PictureComponent
 
manufactureDroppable() - Method in interface canvas.DragComponent
Creates an Object to be dragged and dropped elsewhere
manufactureDroppable() - Method in class canvas.DrawingPane
You should override this method in subclass to get drag/drop to work with your DrawingPane.
manufactureDroppable() - Method in class canvas.DropDragShapeComponent
You should override this method in subclass to get drag/drop to work with your shapes.
manufactureDroppable() - Method in class canvas.PictureComponent
You should override this method in subclass to get drag/drop to work with your Components.
mouseClickedAt(int, int) - Method in class canvas.DefaultListener
This method should be overridden in a subclass to obtain functionality for Mouse Clicks within the associated component.
mouseDraggedTo(int, int) - Method in class canvas.DefaultListener
This method is called whenever the mouse is dragged, and the dragListener is not enabled, it should be overridden to obtain functionality.
mouseMovedTo(int, int) - Method in class canvas.DefaultListener
This method should be overridden in a subclass to obtain functionality for Mouse Movements within the associated component.
mousePressedAt(int, int) - Method in class canvas.DefaultListener
This method should be overridden in a subclass to obtain functionality for Mouse Presses within the associated component.
mouseReleasedAt(int, int) - Method in class canvas.DefaultListener
This method should be overridden in a subclass to obtain functionality for when the mouse is released.
moveTo(double, double) - Method in interface canvas.CanvasComponent
Moves the component to the given coordinates
moveTo(double, double) - Method in class canvas.DrawingPane
Moves the pane to the given coordinates in its container.
moveTo(double, double) - Method in class canvas.PictureComponent
Moves the PictureComponent to the given x,y location
moveTo(double, double) - Method in class canvas.ShapeComponent
Moves the Shape
moveTo(double, double) - Method in class canvas.StringComponent
Moves the component to the desired location.
moveTo(double, double, DrawingGrid) - Method in class canvas.Line
Moves the starting point of the line to the DrawingGrid coordinate (x1, y1).
moveTo(double, double, DrawingGrid) - Method in class canvas.PictureComponent
Moves the PictureComponent to the given DrawingGrid coordinate (x, y).
moveTo(double, double, DrawingGrid) - Method in class canvas.ShapeComponent
Moves the ShapeComponent to be centered on DrawingGrid (x, y).
moveTo(double, double, DrawingGrid) - Method in class canvas.StringComponent
 
moveToBack(Component) - Method in class canvas.DrawingPane
Moves the given Component behind of all other Components.
moveToBack(Component) - Method in class canvas.ViewFrame
Moves the given Component behind of all other Components.
moveToFront(Component) - Method in class canvas.DrawingPane
Moves the given Component on top of all other Components.
moveToFront(Component) - Method in class canvas.ViewFrame
Moves the given Component on top of all other Components.

N

name - Variable in class canvas.ShapeComponent
 

O

okToDrag() - Method in interface canvas.DragComponent
Returns whether it's OK to drag this object
okToDrag() - Method in class canvas.DrawingPane
Called on DragComponent to see if it can be Dragged.
okToDrag() - Method in class canvas.DropDragShapeComponent
 
okToDrag() - Method in class canvas.PictureComponent
 

P

paint(Graphics) - Method in class canvas.PictureComponent
you should not need to use this method
paint(Graphics) - Method in class canvas.ShapeComponent
Paints the component.
PictureComponent - class canvas.PictureComponent.
Represents an image container that can be added to a DrawingPane
PictureComponent(BufferedImage) - Constructor for class canvas.PictureComponent
You should not need to use this constructor
PictureComponent(double, double, double, double, String, DrawingGrid) - Constructor for class canvas.PictureComponent
Creates a new PictureComponent at the GridCoordinates x and y.
PictureComponent(int, int, int, int) - Constructor for class canvas.PictureComponent
Only use this constructor only if you don't want to set the image file yet.
PictureComponent(int, int, int, int, String) - Constructor for class canvas.PictureComponent
Use this constructor to set the Images location and dimensions.
PictureComponent(String) - Constructor for class canvas.PictureComponent
Constructs a new PictureComponent for the given image file
print(Object) - Static method in class canvas.Transcript
Prints, without a carriage return, the object passed in.
println(Object) - Static method in class canvas.Transcript
Prints, with a trailing carriage return, the object passed in.

R

Rect - class canvas.Rect.
Represents a Rectangle that can be added to a DrawingPane
Rect(double, double, double, double) - Constructor for class canvas.Rect
Creates a new Rect whose upper-left corner is at (x,y) and whose width and height are as specified.
Rect(double, double, double, double, boolean) - Constructor for class canvas.Rect
Creates a new Rect with the specified fill behavior.
Rect(double, double, double, double, boolean, Color) - Constructor for class canvas.Rect
Creates a new Rect with the specified color and fill behavior.
Rect(double, double, double, double, boolean, Color, DrawingGrid) - Constructor for class canvas.Rect
Creates a new Rect with the specified color and fill behavior and DrawingGrid.
Rect(double, double, double, double, boolean, DrawingGrid) - Constructor for class canvas.Rect
Creates a new Rect with the specified fill behavior and DrawingGrid.
Rect(double, double, double, double, Color) - Constructor for class canvas.Rect
Creates a new Rect with the specified color.
Rect(double, double, double, double, Color, DrawingGrid) - Constructor for class canvas.Rect
Creates a new Rect with the specified color and DrawingGrid.
Rect(double, double, double, double, DrawingGrid) - Constructor for class canvas.Rect
Creates a new Rect whose upper-left corner is at DrawingGrid coordinate (x, y) and whose width and height are specified in terms of GridBoxes.
redraw() - Method in interface canvas.CanvasComponent
Calls Component.repaint() in a thread-safe way.
redraw() - Method in class canvas.DrawingPane
 
redraw() - Method in class canvas.PictureComponent
Use this method whenever you want to update the display of this PictureComponent.
redraw() - Method in class canvas.ShapeComponent
Use this method whenever you want to immediately update the display of this ShapeComponent.
redraw() - Method in class canvas.StringComponent
 
registerKeyActions() - Method in class canvas.DefaultListener
This method is called by the DragComponent's addKeyboardListener() method, you should not need to use this method.
registerListeners() - Method in class canvas.DefaultListener
This method is called every time setComponent() is called, you should not need to use this method.
remove(Component) - Method in class canvas.DrawingPane
Takes the given Component off the DrawingPane.
remove(Component) - Method in class canvas.ViewFrame
Takes the given Component off the main DrawingPane.
removeDragListener() - Method in class canvas.DefaultListener
This method is called by a DragComponent's removeDragListener() method, you should not need to use it.
removeDragListener() - Method in class canvas.DrawingPane
Removes this DrawingPane's ability to listen for Drag & Drop
removeDragListener() - Method in class canvas.DropDragShapeComponent
Removes this Shape's ability to listen for Drag & Drop
removeDragListener() - Method in class canvas.PictureComponent
Removes this PictureComponents's ability to listen for Drag & Drop
removeGrid() - Method in class canvas.DrawingGrid
Remove the Grid from the DrawingPane.
removeGridLabels() - Method in class canvas.DrawingGrid
Remove the Grid labels from the DrawingPane.
removeKeyboardListener() - Method in class canvas.DefaultListener
This method is called by the DragComponent's removeKeyboardListener() method, you should not need to use this method.
removeKeyboardListener() - Method in class canvas.DrawingPane
Removes this DrawingPane's ability to Listen for Arrow Keys
removeKeyboardListener() - Method in class canvas.DropDragShapeComponent
Removes this Shape's ability to Listen for Arrow Keys
removeKeyboardListener() - Method in class canvas.PictureComponent
Removes this PictureComponent's ability to Listen for Arrow Keys
removeKeyboardListener() - Method in class canvas.ViewFrame
Removes the Keyboard Listener to the ViewFrame Note: Only works if a listener is set for the ViewFrame
removeMouseListener() - Method in class canvas.DefaultListener
This method is called by a DragComponent's removeMouseListener() method, you should not need to use it.
removeMouseListener() - Method in class canvas.DrawingPane
Removes DrawingPane's ability to listen for Mouse Events.
removeMouseListener() - Method in class canvas.DropDragShapeComponent
Removes Shape's ability to listen for Mouse Events.
removeMouseListener() - Method in class canvas.PictureComponent
Removes PictureComponent's ability to listen for Mouse Events.
removeMouseListener() - Method in class canvas.ViewFrame
Removes the Mouse Listener from the ViewFrame Note: Only works if a listener is set for the ViewFrame
repaint() - Method in class canvas.PictureComponent
Use redraw() instead.
resetBorder() - Method in interface canvas.DragComponent
 
resetBorder() - Method in class canvas.DrawingPane
You should not need to use this method
resetBorder() - Method in class canvas.DropDragShapeComponent
You should not need to use this method
resetBorder() - Method in class canvas.PictureComponent
You should not need to use this method
resizeTo(double, double) - Method in interface canvas.CanvasComponent
Resizes the component to the given dimensions
resizeTo(double, double) - Method in class canvas.DrawingPane
Resizes the pane to the given dimensions.
resizeTo(double, double) - Method in class canvas.PictureComponent
Resizes the picture to the given width and height
resizeTo(double, double) - Method in class canvas.ShapeComponent
Resizes the Shape
resizeTo(double, double) - Method in class canvas.StringComponent
Resizes the component to the desired size.
resizeTo(double, double, DrawingGrid) - Method in class canvas.ShapeComponent
Resizes the Shape to the specified DrawingGrid width and height.
resizeTo(double, double, DrawingGrid) - Method in class canvas.StringComponent
 
rightKeyPressed() - Method in class canvas.DefaultListener
This method should be overridden in a subclass to obtain functionality for "right" key presses.
rotate(double) - Method in class canvas.PictureComponent
Rotates the PictureComponent the given number of degrees
rotate(double) - Method in interface canvas.RotatingCanvasComponent
Rotates this component around its center by the given amount
rotate(double) - Method in class canvas.ShapeComponent
Rotates the shape
rotateAbout(double, double, double) - Method in class canvas.PictureComponent
Rotates the PictureComponent the given number of degrees about the given x,y coordinates.
rotateAbout(double, double, double) - Method in interface canvas.RotatingCanvasComponent
Rotates this component about a given set of coordinates by the given amount
rotateAbout(double, double, double) - Method in class canvas.ShapeComponent
Rotates the shape About a Specific Point
rotateAbout(double, double, double, DrawingGrid) - Method in class canvas.PictureComponent
Rotates the PictureComponent the given number of degrees about the given DrawingGrid coordinate (x,y)
rotateAbout(double, double, double, DrawingGrid) - Method in class canvas.ShapeComponent
Rotates the shape about a specific DrawingGrid point.
RotatingCanvasComponent - interface canvas.RotatingCanvasComponent.
An extension to the CanvasComponent interface that provides methods for rotation.

S

saturate() - Method in class canvas.AnyColor
Returns a more saturated version of the color.
saturate() - Method in class canvas.BaseColor
Returns a more saturated version of the color.
saturate() - Method in class canvas.WebSafeColor
This method will return a more saturated color than the one held.
SelfTest() - Static method in class canvas.AnyColor
This method demonstrates the supported methods.
SelfTest() - Static method in class canvas.WebSafeColor
This method demonstrates the supported methods.
setApplet(Applet) - Static method in class canvas.PictureComponent
 
setApplet(Object) - Static method in class canvas.Transcript
Call this with a non-null object to create a window to which the output is printed.
setBorder(Border) - Method in interface canvas.DragComponent
 
setBounds(double, double, double, double, DrawingGrid) - Method in class canvas.PictureComponent
 
setBounds(int, int, int, int) - Method in class canvas.PictureComponent
This method sets the x,y location and the width and height of the PictureComponent.
setColor(Color) - Method in class canvas.Arc
 
setColor(Color) - Method in class canvas.DrawingPane
Sets the Color of the DrawingPane, Note: you need to call setOpaque(true) to make it visible.
setColor(Color) - Method in class canvas.Ellipse
Sets the color of the Ellipse
setColor(Color) - Method in class canvas.Line
Sets the color of the line
setColor(Color) - Method in class canvas.Rect
 
setDebug(boolean) - Static method in class canvas.DefaultListener
Sets the debug boolean.
setDebug(boolean) - Static method in class canvas.ShapeComponent
Sets whether or not to print error messages
setFeedbackText(String) - Method in interface canvas.CanvasComponent
If possible, sets the text at the bottom of the window that this component is displayed in.
setFeedbackText(String) - Method in class canvas.DrawingPane
If this DrawingPane is contained in a ViewFrame, then this method will set the ViewFrame's Feedback Label to be the given text
setFeedbackText(String) - Method in class canvas.PictureComponent
If this PictureComponent is contained in a ViewFrame, this method will set the text of the ViewFrame's feedbadck label to be the given text
setFeedbackText(String) - Method in class canvas.ShapeComponent
If this ShapeComponent is contained in a ViewFrame, then this will set the ViewFrame's Feedback Label to the given text
setFeedbackText(String) - Method in class canvas.StringComponent
 
setFeedbackText(String) - Method in class canvas.ViewFrame
Sets the text on the Feedback Label at the bottom of the ViewFrame.
setFilled(boolean) - Method in class canvas.ShapeComponent
Sets whether or not to fill the shape when drawing.
setFontColor(Color) - Method in class canvas.StringComponent
Sets the Color of the StringComponent to be the given color
setFontSize(int) - Method in class canvas.StringComponent
Sets the Size of the StringComponent's Font
setGridDim(int, int) - Method in class canvas.DrawingGrid
Reset the number of columns and rows in the grid.
setImage(Image) - Method in class canvas.PictureComponent
This method is called by the other setImage method.
setImage(String) - Method in class canvas.PictureComponent
This sets the image to the given filename
setInvolvedInDrop(DragComponent) - Method in class canvas.DropDragShapeComponent
 
setLayer(Component, int) - Method in class canvas.DrawingPane
Changes the layer of a component.
setListener(DefaultListener) - Method in class canvas.DrawingPane
Will set the listener from the default to your subclass of a DefaultListener so you can obtain function from the listeners
setListener(DefaultListener) - Method in class canvas.DropDragShapeComponent
Will set the listener from the default to your subclass of a DefaultListener so you can obtain function from the listeners
setListener(DefaultListener) - Method in class canvas.PictureComponent
Will set the listener from the default to your subclass of a DefaultListener so you can obtain function from the listeners
setListener(DefaultListener) - Method in class canvas.ViewFrame
This sets a listener to listen for events on the ViewFrame itself
setOpaque(boolean) - Method in class canvas.DrawingPane
Sets whether the DrawingPane is visible or not.
setPixel(int, int, Color) - Method in class canvas.PictureComponent
Sets a specific pixel to a specific color
setPixel(int, int, int) - Method in class canvas.PictureComponent
Sets a specific pixel to a specific color
setPixel(int, int, int, int, int) - Method in class canvas.PictureComponent
Sets a specific pixel to a specific color
setText(String) - Method in class canvas.StringComponent
Changes the text of the component and updates the size of the component to fit it.
ShapeComponent - class canvas.ShapeComponent.
Provides the infrastructure for drawing and using Arc, Ellipse, Line, and Rect objects.
ShapeComponent(Shape) - Constructor for class canvas.ShapeComponent
Creates a ShapeComponent for the given Shape.
ShapeComponent(Shape, boolean) - Constructor for class canvas.ShapeComponent
Creates a ShapeComponent for the given Shape.
ShapeComponent(Shape, boolean, Color) - Constructor for class canvas.ShapeComponent
Creates a ShapeComponent for the given Shape.
ShapeComponent(Shape, Color) - Constructor for class canvas.ShapeComponent
Creates a ShapeComponent for the given Shape.
showGrid() - Method in class canvas.DrawingGrid
Display the Grid on the DrawingPane.
showGridLabels() - Method in class canvas.DrawingGrid
Display the Grid labels on the DrawingPane.
sleep(int) - Method in class canvas.DrawingPane
Creates a time delay of approximately the given length.
sleep(int) - Method in class canvas.ViewFrame
Creates a time delay of approximately the given length.
smoothDisplace(double, double, int) - Method in class canvas.ShapeComponent
 
smoothDisplace(double, double, int, DrawingGrid) - Method in class canvas.ShapeComponent
 
smoothMove(Component, double, double, int) - Method in class canvas.DrawingPane
Moves the given component to the given x,y position in a straight-line smooth motion animation lasting approximately the given length of time.
smoothMove(double, double, int) - Method in interface canvas.CanvasComponent
Smoothly moves this component to the given coordinates over the time interval given.
smoothMove(double, double, int) - Method in class canvas.DrawingPane
 
smoothMove(double, double, int) - Method in class canvas.PictureComponent
Moves the PictureComponent to the given x,y location in a smooth motion lasting approximately the given number of milliseconds
smoothMove(double, double, int) - Method in class canvas.ShapeComponent
Moves the Shape over a Specific Amount of Time
smoothMove(double, double, int) - Method in class canvas.StringComponent
 
smoothMove(double, double, int, DrawingGrid) - Method in class canvas.Line
Smooth moves the starting point of the line to the DrawingGrid coordinate (x1, y1).
smoothMove(double, double, int, DrawingGrid) - Method in class canvas.PictureComponent
Moves the PictureComponent to the given DrawingGrid coordinate (x,y) location in a smooth motion lasting approximately the given number of milliseconds.
smoothMove(double, double, int, DrawingGrid) - Method in class canvas.ShapeComponent
Moves the Shape over a specific amount of time to the DrawingGrid (x, y).
smoothMove(double, double, int, DrawingGrid) - Method in class canvas.StringComponent
 
smoothResize(CanvasComponent, double, double, int) - Method in class canvas.DrawingPane
Resizes the given component to the given size lasting approximately the the given length of time.
smoothResize(double, double, int) - Method in interface canvas.CanvasComponent
Smoothly resizes this component to the given dimensions over the time interval given.
smoothResize(double, double, int) - Method in class canvas.DrawingPane
 
smoothResize(double, double, int) - Method in class canvas.PictureComponent
Resizes the PictureComponent to the given width and height in a smooth motion lasting approximately the given number of milliseconds
smoothResize(double, double, int) - Method in class canvas.ShapeComponent
Resizes the Shape over a Specific Amount of Time
smoothResize(double, double, int) - Method in class canvas.StringComponent
 
smoothResize(double, double, int, DrawingGrid) - Method in class canvas.ShapeComponent
Resizes the Shape to the specified DrawingGrid width and height over a specific amount of time.
smoothResize(double, double, int, DrawingGrid) - Method in class canvas.StringComponent
 
smoothRotate(Component, double, int) - Method in class canvas.DrawingPane
Rotates the given component to the given degree in a smooth motion lasting approximately the given length of time.
smoothRotate(double, int) - Method in class canvas.PictureComponent
Rotates the PictureComponent the given number of degrees in a smooth motion lasting approximately the given number of milliseconds
smoothRotate(double, int) - Method in interface canvas.RotatingCanvasComponent
Smoothly rotates this component around its center by the given amount over the given time period.
smoothRotate(double, int) - Method in class canvas.ShapeComponent
Rotates the shape over a Specific Amount of Time
smoothRotateAbout(double, double, double, int) - Method in class canvas.PictureComponent
Rotates the PictureComponent the given number of degrees about the given x,y location in a smooth motion lasting approximately the given number of milliseconds
smoothRotateAbout(double, double, double, int) - Method in interface canvas.RotatingCanvasComponent
Smoothly rotates this component around the given coordinates by the given amount over the given time period.
smoothRotateAbout(double, double, double, int) - Method in class canvas.ShapeComponent
Rotates the shape About a Specific Point over a Specific Time
smoothRotateAbout(double, double, double, int, DrawingGrid) - Method in class canvas.PictureComponent
Rotates the PictureComponent the given number of degrees about the given DrawingGrid coordinate (x,y) location in a smooth motion lasting approximately the given number of milliseconds.
smoothRotateAbout(double, double, double, int, DrawingGrid) - Method in class canvas.ShapeComponent
 
smoothRotateAbout(RotatingCanvasComponent, double, double, double, int) - Method in class canvas.DrawingPane
Rotates the given component to the given degree about the specified point in a smooth motion lasting approximately the given length of time.
spacebarPressed() - Method in class canvas.DefaultListener
This method should be overridden in a subclass to obtain functionality for spacebar presses.
StringComponent - class canvas.StringComponent.
Allows text labels to be added to a DrawingPane
StringComponent(double, double, String, DrawingGrid) - Constructor for class canvas.StringComponent
 
StringComponent(int, int, String) - Constructor for class canvas.StringComponent
Creates a StringComponent at the given position that is just large enough for the given text.
StringComponent(String) - Constructor for class canvas.StringComponent
Creates a StringComponent that is initially positioned at 0,0.
StringComponent(String, DrawingGrid) - Constructor for class canvas.StringComponent
 

T

text - Variable in class canvas.StringComponent
 
toString() - Method in class canvas.BaseColor
Returns a string with the color's RGB components.
toString() - Method in class canvas.DrawingPane
Returns a string of the format "DrawingPane size:(x,y)"
toString() - Method in class canvas.PictureComponent
 
toString() - Method in class canvas.ShapeComponent
 
toString() - Method in class canvas.ViewFrame
 
Transcript - class canvas.Transcript.
Provides services to record textual output to a file or display it in a window.
Transcript() - Constructor for class canvas.Transcript
 

U

unregisterListeners() - Method in class canvas.DefaultListener
This method will remove all of the listeners from the component this DefaultListener is associated with.
upKeyPressed() - Method in class canvas.DefaultListener
This method should be overridden in a subclass to obtain functionality for "up" key presses.

V

ViewFrame - class canvas.ViewFrame.
Represents a window with a title and a border.
ViewFrame() - Constructor for class canvas.ViewFrame
Creates a ViewFrame that contains a DrawingPane with a white background that is initially 640 pixels wide and 480 pixels high.
ViewFrame(String) - Constructor for class canvas.ViewFrame
Creates a ViewFrame that contains a DrawingPane with a white background that is initially 640 pixels wide and 480 pixels high.
ViewFrame(String, Color, int, int) - Constructor for class canvas.ViewFrame
Creates a ViewFrame with the given title that contains a DrawingPane with the given background color, and size.
ViewFrame(String, DrawingPane) - Constructor for class canvas.ViewFrame
Constructs a ViewFrame that contains the given viewPane

W

WebSafeColor - class canvas.WebSafeColor.
This class will hold and return colors that are web-safe.
WebSafeColor(AnyColor) - Constructor for class canvas.WebSafeColor
Extracts the color from the AnyColor object and rounds to the neatest web-safe color.
WebSafeColor(Color) - Constructor for class canvas.WebSafeColor
Takes the color and rounds to the nearest web-safe color.
WebSafeColor(int) - Constructor for class canvas.WebSafeColor
This takes a value from 0 to 215 for the number of the web-safe color.
WebSafeColor(int, int, int) - Constructor for class canvas.WebSafeColor
Takes the 3 red, green, blue integers (0-255) and rounds to the nearest web-safe values.

A B C D E F G H I L M N O P R S T U V W