Package org.opt4j.viewer
Class Viewer
java.lang.Object
org.opt4j.viewer.Viewer
- All Implemented Interfaces:
OptimizerStateListener
The
Viewer
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
TheViewer.CloseEvent
that is triggered if this viewer is closed. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
optimizationStarted
(Optimizer optimizer) Invoked if theOptimizer
starts the optimization process.void
optimizationStopped
(Optimizer optimizer) Invoked if theOptimizer
stops 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:OptimizerStateListener
Invoked if theOptimizer
starts the optimization process.- Specified by:
optimizationStarted
in interfaceOptimizerStateListener
- Parameters:
optimizer
- the optimizer
-
optimizationStopped
Description copied from interface:OptimizerStateListener
Invoked if theOptimizer
stops the optimization process.- Specified by:
optimizationStopped
in interfaceOptimizerStateListener
- Parameters:
optimizer
- the optimizer
-