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
The
ViewerModule configures the optimization process viewer.-
Field Summary
FieldsFields inherited from class org.opt4j.start.Opt4JModule
SINGLETON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfig()Configure the module.Returns the event when the GUI is closed.getTitle()Returns the title of the GUI frame.booleanReturnstrueif the GUI is automatically closed if the optimization process has stopped.voidsetCloseEvent(Viewer.CloseEvent closeEvent) Sets the event when the GUI is closed.voidsetCloseOnStop(boolean closeOnStop) Sets the option for automatically closing the GUI if the optimization stops.voidSets the title of the GUI frame.Methods inherited from class org.opt4j.viewer.VisualizationModule
addIndividualMouseListener, addIndividualMouseListener, addToolBarService, addToolBarServiceMethods inherited from class org.opt4j.start.Opt4JModule
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, bindConstant, configure, constant, multiMethods 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 Details
-
title
-
closeEvent
-
closeOnStop
protected boolean closeOnStop
-
-
Constructor Details
-
ViewerModule
public ViewerModule()
-
-
Method Details
-
isCloseOnStop
public boolean isCloseOnStop()Returnstrueif the GUI is automatically closed if the optimization process has stopped.- Returns:
trueif 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
Returns the event when the GUI is closed.- Returns:
- the closeEvent
-
setCloseEvent
Sets the event when the GUI is closed.- Parameters:
closeEvent- the closeEvent to set
-
getTitle
Returns the title of the GUI frame.- Returns:
- the title of the GUI frame
-
setTitle
Sets the title of the GUI frame.- Parameters:
title- the title of the GUI frame
-
config
public void config()Description copied from class:Opt4JModuleConfigure the module. Bind constants, listeners, and bind arbitrary classes.- Specified by:
configin classOpt4JModule- See Also:
-
Binder
-