Class ButtonBar

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ButtonBar

class ButtonBar
extends Panel
This class produces a set of buttons used to select color spaces.


Variable Index

 o parent

Constructor Index

 o ButtonBar(Game)
Constructs the button bar.

Method Index

 o action(Event, Object)
Overrides the default action() method to process button events.
 o insets()
Overrides the default insets() method.
 o minimumSize()
Overrides the default minimumSize() method.
 o preferredSize()
Overrides the default preferredSize() method.

Variables

 o parent
 Game parent

Constructors

 o ButtonBar
 public ButtonBar(Game parent)
Constructs the button bar.

Parameters:
parent - reference to the parent applet.

Methods

 o action
 public boolean action(Event ev,
                       Object arg)
Overrides the default action() method to process button events.

Overrides:
action in class Component
 o minimumSize
 public Dimension minimumSize()
Overrides the default minimumSize() method.

Returns:
new Dimension
Overrides:
minimumSize in class Container
 o preferredSize
 public Dimension preferredSize()
Overrides the default preferredSize() method.

Returns:
new Dimension
Overrides:
preferredSize in class Container
 o insets
 public Insets insets()
Overrides the default insets() method.

Returns:
new Insets
Overrides:
insets in class Container