$darkmode
DENOPTIM
denoptim.gui.GUI Class Reference

Graphical User Interface of the DENOPTIM package. More...

Inheritance diagram for denoptim.gui.GUI:
[legend]
Collaboration diagram for denoptim.gui.GUI:
[legend]

Public Member Functions

 GUI (CommandLine cmd)
 Constructor that specifies parameters. More...
 
void run ()
 Launch the application. More...
 

Protected Member Functions

void closeIfAllSaved ()
 Close GUI is there are no unsaved changes to the open components. More...
 

Static Package Attributes

static final String GUILOGGER = "GUILogger"
 Name of logger for the GUI. More...
 
static final Randomizer PRNG = new Randomizer(System.currentTimeMillis())
 Random number generator specific for the GUI, and any of its tasks. More...
 

Static Private Member Functions

static boolean weRunOnMacDarkMode ()
 Checks if we are in dark mode. More...
 

Private Attributes

JFrame frame
 GUI window frame. More...
 
JPanel framePane
 Panel including tool bar. More...
 
GUIMainPanel mainPanel
 Panel including all but tool bar. More...
 
int width = 960
 Default width. More...
 
int height = 690
 Default height. More...
 
CommandLine cmd
 Command line options. More...
 

Detailed Description

Graphical User Interface of the DENOPTIM package.

This GUI aims to facilitate:

  • creation of the various types of DENOPTIM input files,
  • execution of GUI-controlled runs,
  • reuse and modification of DENOPTIM input files,
  • inspection of results produced by DENOPTIM runs.
Author
Marco Foscato

Definition at line 56 of file GUI.java.

Constructor & Destructor Documentation

◆ GUI()

denoptim.gui.GUI.GUI ( CommandLine  cmd)

Constructor that specifies parameters.

Definition at line 103 of file GUI.java.

References denoptim.gui.GUI.cmd, and denoptim.gui.GUI.GUILOGGER.

Member Function Documentation

◆ closeIfAllSaved()

void denoptim.gui.GUI.closeIfAllSaved ( )
protected

Close GUI is there are no unsaved changes to the open components.

Definition at line 225 of file GUI.java.

References denoptim.gui.GUI.frame, denoptim.task.StaticTaskManager.hasActive(), denoptim.gui.GUIMainPanel.hasUnsavedChanges(), denoptim.gui.GUI.mainPanel, and denoptim.task.StaticTaskManager.stopAll().

Referenced by denoptim.gui.MainToolBar.initialize(), and denoptim.gui.GUI.run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run()

◆ weRunOnMacDarkMode()

static boolean denoptim.gui.GUI.weRunOnMacDarkMode ( )
staticprivate

Checks if we are in dark mode.

Definition at line 205 of file GUI.java.

Referenced by denoptim.gui.GUI.run().

Here is the caller graph for this function:

Member Data Documentation

◆ cmd

CommandLine denoptim.gui.GUI.cmd
private

Command line options.

Definition at line 86 of file GUI.java.

Referenced by denoptim.gui.GUI.GUI(), and denoptim.gui.GUI.run().

◆ frame

JFrame denoptim.gui.GUI.frame
private

GUI window frame.

Definition at line 61 of file GUI.java.

Referenced by denoptim.gui.GUI.closeIfAllSaved(), and denoptim.gui.GUI.run().

◆ framePane

JPanel denoptim.gui.GUI.framePane
private

Panel including tool bar.

Definition at line 66 of file GUI.java.

Referenced by denoptim.gui.GUI.run().

◆ GUILOGGER

final String denoptim.gui.GUI.GUILOGGER = "GUILogger"
staticpackage

◆ height

int denoptim.gui.GUI.height = 690
private

Default height.

Definition at line 81 of file GUI.java.

Referenced by denoptim.gui.GUI.run().

◆ mainPanel

GUIMainPanel denoptim.gui.GUI.mainPanel
private

Panel including all but tool bar.

Definition at line 71 of file GUI.java.

Referenced by denoptim.gui.GUI.closeIfAllSaved(), and denoptim.gui.GUI.run().

◆ PRNG

final Randomizer denoptim.gui.GUI.PRNG = new Randomizer(System.currentTimeMillis())
staticpackage

Random number generator specific for the GUI, and any of its tasks.

Definition at line 96 of file GUI.java.

Referenced by denoptim.gui.GUIGraphHandler.importGraphsFromFile(), denoptim.gui.GUIGraphHandler.initialize(), and denoptim.gui.GraphVertexMolViewerPanel.updateMolevularViewer().

◆ width

int denoptim.gui.GUI.width = 960
private

Default width.

Definition at line 76 of file GUI.java.

Referenced by denoptim.gui.GUI.run().


The documentation for this class was generated from the following file: