Class ViewerModule

java.lang.Object
com.google.inject.AbstractModule
All Implemented Interfaces:
com.google.inject.Module

public class ViewerModule extends VisualizationModule
The ViewerModule configures the optimization process viewer.
  • Field Details

    • title

      protected String title
    • closeEvent

      protected Viewer.CloseEvent closeEvent
    • closeOnStop

      protected boolean closeOnStop
  • Constructor Details

    • ViewerModule

      public ViewerModule()
  • Method Details

    • isCloseOnStop

      public boolean isCloseOnStop()
      Returns true if the GUI is automatically closed if the optimization process has stopped.
      Returns:
      true if the GUI is automatically closed on optimization stop
    • setCloseOnStop

      public void setCloseOnStop(boolean closeOnStop)
      Sets the option for automatically closing the GUI if the optimization stops.
      Parameters:
      closeOnStop - the closeOnStop to set
    • getCloseEvent

      public Viewer.CloseEvent getCloseEvent()
      Returns the event when the GUI is closed.
      Returns:
      the closeEvent
    • setCloseEvent

      public void setCloseEvent(Viewer.CloseEvent closeEvent)
      Sets the event when the GUI is closed.
      Parameters:
      closeEvent - the closeEvent to set
    • getTitle

      public String getTitle()
      Returns the title of the GUI frame.
      Returns:
      the title of the GUI frame
    • setTitle

      public void setTitle(String title)
      Sets the title of the GUI frame.
      Parameters:
      title - the title of the GUI frame
    • config

      public void config()
      Description copied from class: Opt4JModule
      Configure the module. Bind constants, listeners, and bind arbitrary classes.
      Specified by:
      config in class Opt4JModule
      See Also:
      • Binder