All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Scribble.ScribbleCanvas

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----Scribble.SmartCanvas
                           |
                           +----Scribble.ScribbleCanvas

public class ScribbleCanvas
extends SmartCanvas
This class adds in mouseListeners to handle the user clicking or dragging the mouse. This class also has methods to set the color of line and to clear the repository.


Constructor Index

 o ScribbleCanvas()

Method Index

 o clearLines()
 o setColor(Color)

Constructors

 o ScribbleCanvas
 public ScribbleCanvas()

Methods

 o setColor
 public void setColor(Color c)
 o clearLines
 public void clearLines()

All Packages  Class Hierarchy  This Package  Previous  Next  Index