Class whiteBoard

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----whiteBoard

public class whiteBoard
extends Panel

Variable Index

 o currX
This class implements a drawing board.
 o currY
 o drawColor
 o drawShape
 o fillColor
 o height
 o heightIsNeg
 o prevHeight
 o prevWidth
 o prevX
This class implements a drawing board.
 o prevY
 o startX
This class implements a drawing board.
 o startY
 o width
 o widthIsNeg

Constructor Index

 o whiteBoard()

Method Index

 o changeColor(String)
 o changeFillColor(String)
 o changeShape(String)
 o clearDrawingArea()
 o mouseDown(Event, int, int)
 o mouseUp(Event, int, int)
 o whiteBoard()

Variables

 o startX
 protected int startX
This class implements a drawing board. It captures the users mouseDown and mouseUp events setting the drawing boundaries, and draws a shape according to the user's specifications obtained from the controlStrip object

 o prevX
 protected int prevX
This class implements a drawing board. It captures the users mouseDown and mouseUp events setting the drawing boundaries, and draws a shape according to the user's specifications obtained from the controlStrip object

 o currX
 protected int currX
This class implements a drawing board. It captures the users mouseDown and mouseUp events setting the drawing boundaries, and draws a shape according to the user's specifications obtained from the controlStrip object

 o startY
 protected int startY
 o prevY
 protected int prevY
 o currY
 protected int currY
 o width
 protected int width
 o prevWidth
 protected int prevWidth
 o height
 protected int height
 o prevHeight
 protected int prevHeight
 o widthIsNeg
 protected boolean widthIsNeg
 o heightIsNeg
 protected boolean heightIsNeg
 o drawShape
 protected String drawShape
 o drawColor
 protected String drawColor
 o fillColor
 protected String fillColor

Constructors

 o whiteBoard
 public whiteBoard()

Methods

 o whiteBoard
 public void whiteBoard()
 o mouseDown
 public boolean mouseDown(Event e,
                          int x,
                          int y)
Overrides:
mouseDown in class Component
 o mouseUp
 public boolean mouseUp(Event e,
                        int x,
                        int y)
Overrides:
mouseUp in class Component
 o changeShape
 public void changeShape(String shape)
 o changeColor
 public void changeColor(String color)
 o changeFillColor
 public void changeFillColor(String color)
 o clearDrawingArea
 public void clearDrawingArea()