java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----ControlPanel
java.awt.Panel class to form
a panel which holds the buttons that control
the animation of the algorithm.
In this particular application, it only consists of four image buttons,
namely, run, stop, step, and skip.
ImageButton, which is
casted to java.awt.Button
ImageButton, which is
casted to java.awt.Button
ImageButton, which is
casted to java.awt.Button
ImageButton, which is
casted to java.awt.Button
repaint() on each of the image buttons.
public ControlPanel(AlgAnimFrame frame,
String algname)
public void refreshButtons()
repaint() on each of the image buttons.
public boolean action(Event e,
Object arg)
public Button getRunButton()
ImageButton, which is
casted to java.awt.Button
public Button getStopButton()
ImageButton, which is
casted to java.awt.Button
public Button getStepButton()
ImageButton, which is
casted to java.awt.Button
Run button has already been pressed, the
execution mode will be switched from RUN to
STEP.
public Button getSkipButton()
ImageButton, which is
casted to java.awt.Button