Class BoxX
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----BoxX
- public class BoxX
- extends Applet
-
box10
-
-
BoxX()
-
-
drawBoard(Graphics)
- Construct 10 x 10 game board grid
-
drawBox(int, int, Graphics)
- Change grid squares appropriately based on mouseclick
-
endGame(Graphics)
- End of game definition, reset board
-
init()
- Initialize applet parameters and define grid
-
mouseUp(Event, int, int)
- Mouse events handled, definition of mouseclick pattern
-
paint(Graphics)
- Construct RESET button call to drawBoard Function
-
start()
- Define background and call init function
box10
protected int box10[][]
BoxX
public BoxX()
init
public void init()
- Initialize applet parameters and define grid
- Overrides:
- init in class Applet
start
public void start()
- Define background and call init function
- Overrides:
- start in class Applet
paint
public void paint(Graphics g)
- Construct RESET button call to drawBoard Function
- Overrides:
- paint in class Container
drawBoard
public void drawBoard(Graphics g)
- Construct 10 x 10 game board grid
drawBox
public void drawBox(int column,
int row,
Graphics g)
- Change grid squares appropriately based on mouseclick
endGame
public void endGame(Graphics g)
- End of game definition, reset board
mouseUp
public boolean mouseUp(Event event,
int x,
int y)
- Mouse events handled, definition of mouseclick pattern
- Overrides:
- mouseUp in class Component