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
-
parent
- reference to parent applet
-
pm
- matching component
-
startAgain
- start-again button
-
PlaneMatchAndStart(Color, Game)
- Constructs a component containing matching component and
a start-again button.
-
action(Event, Object)
- Overrides the default action() method to process start-again button
clicks.
-
insets()
- Overrides the default insets() method.
-
minimumSize()
- Overrides the default minimumSize() method.
-
preferredSize()
- Overrides the default preferredSize() method.
-
reset(Color)
- Resets this component.
-
update()
- Self-update method that implements UpdatableComponentIfc.
parent
Game parent
- reference to parent applet
pm
PlaneMatch pm
- matching component
startAgain
Button startAgain
- start-again button
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.
update
public void update()
- Self-update method that implements UpdatableComponentIfc.
- Overrides:
- update in class UpdatableComponentImpl
- See Also:
- UpdatableComponentIfc
reset
public void reset(Color bg)
- Resets this component.
- Parameters:
- bg - new background color of matching component
action
public boolean action(Event ev,
Object arg)
- Overrides the default action() method to process start-again button
clicks.
- Overrides:
- action in class Component
minimumSize
public Dimension minimumSize()
- Overrides the default minimumSize() method.
- Returns:
- new Dimension
- Overrides:
- minimumSize in class Container
preferredSize
public Dimension preferredSize()
- Overrides the default preferredSize() method.
- Returns:
- new Dimension
- Overrides:
- preferredSize in class Container
insets
public Insets insets()
- Overrides the default insets() method.
- Returns:
- new Insets
- Overrides:
- insets in class Container