Package org.opt4j.viewer
Class ViewerModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.opt4j.start.Opt4JModule
-
- org.opt4j.viewer.VisualizationModule
-
- org.opt4j.viewer.ViewerModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class ViewerModule extends VisualizationModule
TheViewerModule
configures the optimization process viewer.
-
-
Field Summary
Fields Modifier and Type Field Description protected Viewer.CloseEvent
closeEvent
protected boolean
closeOnStop
protected String
title
-
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
-
Constructor Summary
Constructors Constructor Description ViewerModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
config()
Configure the module.Viewer.CloseEvent
getCloseEvent()
Returns the event when the GUI is closed.String
getTitle()
Returns the title of the GUI frame.boolean
isCloseOnStop()
Returnstrue
if the GUI is automatically closed if the optimization process has stopped.void
setCloseEvent(Viewer.CloseEvent closeEvent)
Sets the event when the GUI is closed.void
setCloseOnStop(boolean closeOnStop)
Sets the option for automatically closing the GUI if the optimization stops.void
setTitle(String title)
Sets the title of the GUI frame.-
Methods inherited from class org.opt4j.viewer.VisualizationModule
addIndividualMouseListener, addIndividualMouseListener, addToolBarService, addToolBarService
-
Methods inherited from class org.opt4j.start.Opt4JModule
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, bindConstant, configure, constant, multi
-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Field Detail
-
title
protected String title
-
closeEvent
protected Viewer.CloseEvent closeEvent
-
closeOnStop
protected boolean closeOnStop
-
-
Method Detail
-
isCloseOnStop
public boolean isCloseOnStop()
Returnstrue
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 classOpt4JModule
- See Also:
Binder
-
-