Class PlaneMatchAndStart

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----UpdatableComponentImpl
                                   |
                                   +----PlaneMatchAndStart

class PlaneMatchAndStart
extends UpdatableComponentImpl
This class produces an updatable component containing matching component and a button.

See Also:
PlaneMatch, UpdatableComponentImpl

Variable Index

 o parent
reference to parent applet
 o pm
matching component
 o startAgain
start-again button

Constructor Index

 o PlaneMatchAndStart(Color, Game)
Constructs a component containing matching component and a start-again button.

Method Index

 o action(Event, Object)
Overrides the default action() method to process start-again button clicks.
 o insets()
Overrides the default insets() method.
 o minimumSize()
Overrides the default minimumSize() method.
 o preferredSize()
Overrides the default preferredSize() method.
 o reset(Color)
Resets this component.
 o update()
Self-update method that implements UpdatableComponentIfc.

Variables

 o parent
 Game parent
reference to parent applet

 o pm
 PlaneMatch pm
matching component

 o startAgain
 Button startAgain
start-again button

Constructors

 o PlaneMatchAndStart
 public PlaneMatchAndStart(Color bg,
                           Game parent)
Constructs a component containing matching component and a start-again button.

Parameters:
bg - background color of matching component
parent - reference to the parent applet.

Methods

 o update
 public void update()
Self-update method that implements UpdatableComponentIfc.

Overrides:
update in class UpdatableComponentImpl
See Also:
UpdatableComponentIfc
 o reset
 public void reset(Color bg)
Resets this component.

Parameters:
bg - new background color of matching component
 o action
 public boolean action(Event ev,
                       Object arg)
Overrides the default action() method to process start-again button clicks.

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