Package org.opt4j.viewer
Class ControlButtons
java.lang.Object
org.opt4j.viewer.ControlButtons
- All Implemented Interfaces:
ControlListener,OptimizerStateListener
The ControlButtons contains JButtons for the controls:
- start
- pause
- stop
- terminate
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidConstructs the buttons.getPause()Returns the pause button.getStart()Returns the start button.getStop()Returns the stop button.Returns the terminate button.voidoptimizationStarted(Optimizer optimizer) Invoked if theOptimizerstarts the optimization process.voidoptimizationStopped(Optimizer optimizer) Invoked if theOptimizerstops the optimization process.voidstateChanged(Control.State state) Invoked if the state of theControlchanges.protected voidUpdates the view.
-
Field Details
-
control
-
start
-
pause
-
stop
-
terminate
-
-
Constructor Details
-
ControlButtons
Constructs aControlButtons.- Parameters:
control- the control
-
-
Method Details
-
construct
protected final void construct()Constructs the buttons. -
update
Updates the view. -
optimizationStarted
Description copied from interface:OptimizerStateListenerInvoked if theOptimizerstarts the optimization process.- Specified by:
optimizationStartedin interfaceOptimizerStateListener- Parameters:
optimizer- the optimizer
-
optimizationStopped
Description copied from interface:OptimizerStateListenerInvoked if theOptimizerstops the optimization process.- Specified by:
optimizationStoppedin interfaceOptimizerStateListener- Parameters:
optimizer- the optimizer
-
getStart
Returns the start button.- Returns:
- the start button
-
getPause
Returns the pause button.- Returns:
- the pause button
-
getStop
Returns the stop button.- Returns:
- the stop button
-
getTerminate
Returns the terminate button.- Returns:
- the terminate button
-
stateChanged
Description copied from interface:ControlListenerInvoked if the state of theControlchanges.- Specified by:
stateChangedin interfaceControlListener- Parameters:
state- the current state of the optimization process
-