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.


Constructor Index

 o OptionsPanel(Game)
Initializes UI components and sets the layout.

Method Index

 o action(Event, Object)
Only thing to look for is button presses from the ok button and the cancel button.
 o gameUpdate(Board, Minimax, int)
The standard update method from GameUpdate This one handles OPTIONS_OPEN.
 o setBackground(Color)
Over-ride of the inherited function to keep the text box and button text from changing color (they won't be clear)
 o setForeground(Color)
Over-ride of the inherited function to keep the text box and button text from changing color (they won't be clear)

Constructors

 o OptionsPanel
 public OptionsPanel(Game g)
Initializes UI components and sets the layout.

Methods

 o 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
 o 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
 o 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
 o 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