All Packages Class Hierarchy This Package Previous Next Index
Class taxman.OptionsPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----taxman.OptionsPanel
- public class OptionsPanel
- extends Panel
- implements GameUpdate
This is the lower left button panel for the applet.
It controls the new game and options buttons and
supplies a Checkbox for the user to choose to go first.
-
OptionsPanel(Game)
- Initializes UI components and sets the layout.
-
action(Event, Object)
- Only thing to look for is button presses from
the ok button and the cancel button.
-
gameUpdate(Board, Minimax, int)
- The standard update method from GameUpdate
This one handles OPTIONS_OPEN.
-
setBackground(Color)
- Over-ride of the inherited function to keep the
text box and button text from changing color (they won't be clear)
-
setForeground(Color)
- Over-ride of the inherited function to keep the
text box and button text from changing color (they won't be clear)
OptionsPanel
public OptionsPanel(Game g)
- Initializes UI components and sets the layout.
setBackground
public void setBackground(Color clr)
- Over-ride of the inherited function to keep the
text box and button text from changing color (they won't be clear)
- Parameters:
- clr - The new foreground color
- Overrides:
- setBackground in class Component
setForeground
public void setForeground(Color clr)
- Over-ride of the inherited function to keep the
text box and button text from changing color (they won't be clear)
- Parameters:
- clr - The new background color
- Overrides:
- setForeground in class Component
gameUpdate
public void gameUpdate(Board b,
Minimax m,
int flags)
- The standard update method from GameUpdate
This one handles OPTIONS_OPEN.
- Parameters:
- b - The current game board
- m - The current minimax object
- flags - Indicator of current state
action
public boolean action(Event evt,
Object obj)
- Only thing to look for is button presses from
the ok button and the cancel button.
- Parameters:
- evt - The actual event that occured
- obj - The object that was effected by the event
- Overrides:
- action in class Component
All Packages Class Hierarchy This Package Previous Next Index