Class SeqButton

Class SeqButton

java.lang.Object
   |
   +----awt.Component
           |
           +----awt.Button
                   |
                   +----SeqButton

class SeqButton
extends Button
implements Runnable
The class SeqButton is an abstract class for buttons that control simulation sequences.
Version:
1.0
Author:
Henrik Eriksson

plant
Backpointer to the NuclearPlant applet

SeqButton(NuclearPlant, String, int, int)
Construct a button and initialize it.

selected(Component, int)
Perform a sequence when the button is selected.

plant
  protected NuclearPlant plant
Backpointer to the NuclearPlant applet

SeqButton
  public SeqButton(NuclearPlant p,
                   String name,
                   int x,
                   int y)
Construct a button and initialize it.
Parameters:
p - The plant
name - The button label
x - The X coordinate
y - The Y coordinate

selected
  public void selected(Component c,
                       int pos)
Perform a sequence when the button is selected. This method is called automatically when the button is selected by the user. The method runs the sequence in a separate thread.
Parameters:
c - the awt.Component selected
pos - undefined
Overrides:
selected in class Button