Package org.opt4j.viewer
Class Viewer
java.lang.Object
org.opt4j.viewer.Viewer
- All Implemented Interfaces:
OptimizerStateListener
The
Viewer.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTheViewer.CloseEventthat is triggered if this viewer is closed. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidoptimizationStarted(Optimizer optimizer) Invoked if theOptimizerstarts the optimization process.voidoptimizationStopped(Optimizer optimizer) Invoked if theOptimizerstops the optimization process.
-
Field Details
-
control
-
closeEvent
-
closeOnStop
protected final boolean closeOnStop -
title
-
viewport
-
toolBar
-
statusBar
-
frame
-
-
Constructor Details
-
Viewer
@Inject public Viewer(Viewport viewport, ToolBar toolBar, StatusBar statusBar, Control control, String title, Viewer.CloseEvent closeEvent, boolean closeOnStop) Constructs aViewer.- Parameters:
viewport- the viewporttoolBar- the toolBarstatusBar- the statusBarcontrol- the controltitle- the title of the framecloseEvent- event on closing the GUI windowcloseOnStop- close window at the end of the optimization run
-
-
Method Details
-
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
-