Class Viewer

java.lang.Object
org.opt4j.viewer.Viewer
All Implemented Interfaces:
OptimizerStateListener

public class Viewer extends Object implements OptimizerStateListener
The Viewer.
  • Field Details

    • control

      protected final Control control
    • closeEvent

      protected final Viewer.CloseEvent closeEvent
    • closeOnStop

      protected final boolean closeOnStop
    • title

      protected final String title
    • viewport

      protected final Viewport viewport
    • toolBar

      protected final ToolBar toolBar
    • statusBar

      protected final StatusBar statusBar
    • frame

      protected JFrame frame
  • Constructor Details

    • Viewer

      @Inject public Viewer(Viewport viewport, ToolBar toolBar, StatusBar statusBar, Control control, String title, Viewer.CloseEvent closeEvent, boolean closeOnStop)
      Constructs a Viewer.
      Parameters:
      viewport - the viewport
      toolBar - the toolBar
      statusBar - the statusBar
      control - the control
      title - the title of the frame
      closeEvent - event on closing the GUI window
      closeOnStop - close window at the end of the optimization run
  • Method Details