public class ControlButtons extends Object implements OptimizerStateListener, ControlListener
The ControlButtons contains JButtons for the controls:
Control| Constructor and Description |
|---|
ControlButtons(Control control)
Constructs a
ControlButtons. |
| Modifier and Type | Method and Description |
|---|---|
JButton |
getPause()
Returns the pause button.
|
JButton |
getStart()
Returns the start button.
|
JButton |
getStop()
Returns the stop button.
|
JButton |
getTerminate()
Returns the terminate button.
|
void |
optimizationStarted(Optimizer optimizer)
Invoked if the
Optimizer starts the optimization process. |
void |
optimizationStopped(Optimizer optimizer)
Invoked if the
Optimizer stops the optimization process. |
void |
stateChanged(Control.State state)
Invoked if the state of the
Control changes. |
@Inject public ControlButtons(Control control)
ControlButtons.control - the controlpublic void optimizationStarted(Optimizer optimizer)
OptimizerStateListenerOptimizer starts the optimization process.optimizationStarted in interface OptimizerStateListeneroptimizer - the optimizerpublic void optimizationStopped(Optimizer optimizer)
OptimizerStateListenerOptimizer stops the optimization process.optimizationStopped in interface OptimizerStateListeneroptimizer - the optimizerpublic JButton getStart()
public JButton getPause()
public JButton getStop()
public JButton getTerminate()
public void stateChanged(Control.State state)
ControlListenerControl changes.stateChanged in interface ControlListenerstate - the current state of the optimization process