Class Seq_3_Button
Class Seq_3_Button
java.lang.Object
|
+----awt.Component
|
+----awt.Button
|
+----SeqButton
|
+----Seq_3_Button
-
class
Seq_3_Button
-
extends SeqButton
Class for the Sequence 3 button.
-
Version:
-
1.0
-
Author:
-
Henrik Eriksson
-
Seq_3_Button(NuclearPlant, String, int, int)
-
Construct a button and initialize it.
-
run()
-
Run the sequence.
Seq_3_Button
public Seq_3_Button(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
run
public void run()
-
Run the sequence. This method is called in a
separate thread when the button is selected by the
user. Modify this method to change the sequence in
question.