Class ViewerModule

  • All Implemented Interfaces:
    com.google.inject.Module

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

      • title

        protected String title
      • closeOnStop

        protected boolean closeOnStop
    • Constructor Detail

      • ViewerModule

        public ViewerModule()
    • Method Detail

      • 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