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
-
repository
-
-
SmartCanvas()
- The default constructor, which will also create a new ScribbleData to work with
-
SmartCanvas(ScribbleData)
- The other constructor, which will take a previously created ScribbleData
-
paint(Graphics)
- The paint method which will draw all the lines on screen
repository
protected ScribbleData repository
SmartCanvas
public SmartCanvas()
- The default constructor, which will also create a new ScribbleData to work with
SmartCanvas
public SmartCanvas(ScribbleData repository)
- The other constructor, which will take a previously created ScribbleData
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