All Packages Class Hierarchy This Package Previous Next Index
Class Scribble.Whiteboard
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----Scribble.Whiteboard
- public class Whiteboard
- extends Frame
This is the general class for a whiteboard. It needs to be given a SmartCanvas
-
clearButton
- The Clear Button that will delete all Lines drawn on screen
-
colorChoice
-
The Radio Button that allows the user to change the color of the lines to be drawn
-
Whiteboard()
-
Default constructor which will create a new SmartCanvas
-
Whiteboard(SmartCanvas)
-
Other Constructor which will take a SmartCanvas as an argument
-
init()
- This initializes all components of the Whiteboard.
clearButton
protected Button clearButton
- The Clear Button that will delete all Lines drawn on screen
colorChoice
protected Choice colorChoice
- The Radio Button that allows the user to change the color of the lines to be drawn
Whiteboard
public Whiteboard()
- Default constructor which will create a new SmartCanvas
Whiteboard
public Whiteboard(SmartCanvas drawingArea)
- Other Constructor which will take a SmartCanvas as an argument
init
public void init()
- This initializes all components of the Whiteboard. Must be called in order
for the Whiteboard to be usable
All Packages Class Hierarchy This Package Previous Next Index