All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Scribble.SmartCanvas

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

public class SmartCanvas
extends Canvas
This canvas extends Canvas, and provides added functionality, including a ScribbleData which will keep trak of all lines drawn


Variable Index

 o repository

Constructor Index

 o SmartCanvas()
The default constructor, which will also create a new ScribbleData to work with
 o SmartCanvas(ScribbleData)
The other constructor, which will take a previously created ScribbleData

Method Index

 o paint(Graphics)
The paint method which will draw all the lines on screen

Variables

 o repository
 protected ScribbleData repository

Constructors

 o SmartCanvas
 public SmartCanvas()
The default constructor, which will also create a new ScribbleData to work with

 o SmartCanvas
 public SmartCanvas(ScribbleData repository)
The other constructor, which will take a previously created ScribbleData

Methods

 o paint
 public void paint(Graphics g)
The paint method which will draw all the lines on screen

Overrides:
paint in class Canvas

All Packages  Class Hierarchy  This Package  Previous  Next  Index