All Packages Class Hierarchy This Package Previous Next Index
Class taxman.AdvantagePanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----taxman.AdvantagePanel
- public class AdvantagePanel
- 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.
-
AdvantagePanel()
- Initializes UI components and sets the layout.
-
gameUpdate(Board, Minimax, int)
- The standard update method from GameUpdate
This one handles NEW_GAME, CPU_CHOSE, HUMAN_CHOSE.
-
setBackground(Color)
- Over-ride base function to make sure colors are
propagated to the sub-components
-
setForeground(Color)
- Over-ride base function to make sure colors are
propagated to the sub-components
-
update(Graphics)
- An over-ride of the update function to explicitely
repaint the progress bars (which don't seem to print otherwise)
AdvantagePanel
public AdvantagePanel()
- Initializes UI components and sets the layout.
setForeground
public void setForeground(Color clr)
- Over-ride base function to make sure colors are
propagated to the sub-components
- Parameters:
- clr - The new foreground color
- Overrides:
- setForeground in class Component
setBackground
public void setBackground(Color clr)
- Over-ride base function to make sure colors are
propagated to the sub-components
- Parameters:
- clr - The new background color
- Overrides:
- setBackground in class Component
gameUpdate
public void gameUpdate(Board b,
Minimax m,
int flags)
- The standard update method from GameUpdate
This one handles NEW_GAME, CPU_CHOSE, HUMAN_CHOSE.
- Parameters:
- b - The current game board
- m - The current minimax object
- flags - Indicator of current state
update
public void update(Graphics g)
- An over-ride of the update function to explicitely
repaint the progress bars (which don't seem to print otherwise)
- Parameters:
- g - The graphics context on which to draw
- Overrides:
- update in class Container
All Packages Class Hierarchy This Package Previous Next Index