Class whiteBoard
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----whiteBoard
- public class whiteBoard
- extends Panel
-
currX
- This class implements a drawing board.
-
currY
-
-
drawColor
-
-
drawShape
-
-
fillColor
-
-
height
-
-
heightIsNeg
-
-
prevHeight
-
-
prevWidth
-
-
prevX
- This class implements a drawing board.
-
prevY
-
-
startX
- This class implements a drawing board.
-
startY
-
-
width
-
-
widthIsNeg
-
-
whiteBoard()
-
-
changeColor(String)
-
-
changeFillColor(String)
-
-
changeShape(String)
-
-
clearDrawingArea()
-
-
mouseDown(Event, int, int)
-
-
mouseUp(Event, int, int)
-
-
whiteBoard()
-
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
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
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
startY
protected int startY
prevY
protected int prevY
currY
protected int currY
width
protected int width
prevWidth
protected int prevWidth
height
protected int height
prevHeight
protected int prevHeight
widthIsNeg
protected boolean widthIsNeg
heightIsNeg
protected boolean heightIsNeg
drawShape
protected String drawShape
drawColor
protected String drawColor
fillColor
protected String fillColor
whiteBoard
public whiteBoard()
whiteBoard
public void whiteBoard()
mouseDown
public boolean mouseDown(Event e,
int x,
int y)
- Overrides:
- mouseDown in class Component
mouseUp
public boolean mouseUp(Event e,
int x,
int y)
- Overrides:
- mouseUp in class Component
changeShape
public void changeShape(String shape)
changeColor
public void changeColor(String color)
changeFillColor
public void changeFillColor(String color)
clearDrawingArea
public void clearDrawingArea()