$darkmode
DENOPTIM
denoptim.gui.GUIPreferencesDialog Class Reference
Inheritance diagram for denoptim.gui.GUIPreferencesDialog:
[legend]
Collaboration diagram for denoptim.gui.GUIPreferencesDialog:
[legend]

Public Member Functions

 GUIPreferencesDialog (Component refForPlacement)
 Constructs a dialog for setting the preferences of the GUI. More...
 
- Public Member Functions inherited from denoptim.gui.GUIModalDialog
 GUIModalDialog (Component refForPlacement)
 Constructor. More...
 
 GUIModalDialog (Component refForPlacement, boolean useExtraButton)
 Constructor. More...
 
Object showDialog ()
 Shows the dialog and restrains the modality to it, until the dialog gets closed. More...
 
void addToNorthPane (JComponent comp)
 Adds a component to the topmost part of this dialog frame. More...
 
void addToCentralPane (JComponent comp)
 Adds a component to the central part of this dialog frame. More...
 

Package Attributes

final Dimension fileLabelSize = new Dimension(250,28)
 Default sizes for file pathname labels. More...
 
final int preferredHeight
 Default text field height. More...
 
final Dimension strFieldSize = new Dimension(75,preferredHeight)
 Default sizes for short pathname fields (i.e., string or number) More...
 

Private Member Functions

void checkInput ()
 
void mustParseToInt (JTextField field, String name)
 
void pathMustBeReadableWritable (JTextField field, String name)
 
void storeValues ()
 

Private Attributes

JPanel centralPanel
 
String namGraphTxtSize = "Font size for graph labels"
 
JPanel pnlGraphTxtSize
 
JLabel lblGraphTxtSize
 
JTextField txtGraphTxtSize
 
String namGraphNodeSize = "Size of graph nodes"
 
JPanel pnlGraphNodeSize
 
JLabel lblGraphNodeSize
 
JTextField txtGraphNodeSize
 
String namChartPointSize = "Size of points in evolution chart"
 
JPanel pnlChartPointSize
 
JLabel lblChartPointSize
 
JTextField txtChartPointSize
 
String namEvoChartLegend = "Display legend in evolution chart"
 
JPanel pnlEvoChartLegend
 
JRadioButton rcbEvoChartLegend
 
String namMntChartLegend = "Display legend in monitor chart"
 
JPanel pnlMntChartLegend
 
JRadioButton rcbMntChartLegend
 
JPanel linePropTags
 
JLabel lblPropTags
 
DefaultTableModel tabModPropTags
 
JTable tabPropTags
 
JButton btnPropTagsInsert
 
JButton btnPropTagsCleanup
 
String namTmpSpace = "Folder for tmp files"
 
JPanel pnlTmpSpace
 
JLabel lblTmpSpace
 
JTextField txtTmpSpace
 
String namSMILESTo3D = "SMILES-to-3D converer"
 
JPanel pnlSMILESTo3D
 
JComboBox< SMITo3DEnginecmbSMILESTo3D
 
JLabel lblSMILESTo3D
 
boolean inputIsOK = true
 

Static Private Attributes

static final long serialVersionUID = -1416475901274128714L
 Version UID. More...
 

Additional Inherited Members

- Protected Member Functions inherited from denoptim.gui.GUIModalDialog
void close ()
 Closes the dialog window. More...
 
- Protected Attributes inherited from denoptim.gui.GUIModalDialog
JButton btnDone
 The button that is used to launch the processing of the data given to the open dialog, and close the dialog window. More...
 
JButton btnCanc
 The button that is used to close the dialog without processing any input. More...
 
JButton btnExtra
 The button that can be used for any action that does not close the dialog. More...
 
Object result = null
 The result to be returned once the dialog is closed. More...
 

Detailed Description

Definition at line 48 of file GUIPreferencesDialog.java.

Constructor & Destructor Documentation

◆ GUIPreferencesDialog()

denoptim.gui.GUIPreferencesDialog.GUIPreferencesDialog ( Component  refForPlacement)

Constructs a dialog for setting the preferences of the GUI.

Parameters
refForPlacementthe component used to place this dialog.

Definition at line 124 of file GUIPreferencesDialog.java.

References denoptim.gui.GUIModalDialog.btnCanc, denoptim.gui.GUIModalDialog.btnDone, denoptim.gui.GUIPreferencesDialog.btnPropTagsCleanup, denoptim.gui.GUIPreferencesDialog.btnPropTagsInsert, denoptim.gui.GUIPreferencesDialog.centralPanel, denoptim.gui.GUIPreferences.chartPointSize, denoptim.gui.GUIPreferencesDialog.checkInput(), denoptim.gui.GUIPreferences.chosenSDFTags, denoptim.gui.GUIModalDialog.close(), denoptim.gui.GUIPreferencesDialog.cmbSMILESTo3D, denoptim.gui.GUIPreferencesDialog.fileLabelSize, denoptim.gui.GUIPreferences.graphLabelFontSize, denoptim.gui.GUIPreferences.graphNodeSize, denoptim.gui.GUIPreferencesDialog.inputIsOK, denoptim.gui.GUIPreferencesDialog.lblChartPointSize, denoptim.gui.GUIPreferencesDialog.lblGraphNodeSize, denoptim.gui.GUIPreferencesDialog.lblGraphTxtSize, denoptim.gui.GUIPreferencesDialog.lblPropTags, denoptim.gui.GUIPreferencesDialog.lblSMILESTo3D, denoptim.gui.GUIPreferencesDialog.lblTmpSpace, denoptim.gui.GUIPreferencesDialog.linePropTags, denoptim.gui.GUIPreferencesDialog.namChartPointSize, denoptim.gui.GUIPreferencesDialog.namEvoChartLegend, denoptim.gui.GUIPreferencesDialog.namGraphNodeSize, denoptim.gui.GUIPreferencesDialog.namGraphTxtSize, denoptim.gui.GUIPreferencesDialog.namMntChartLegend, denoptim.gui.GUIPreferencesDialog.namSMILESTo3D, denoptim.gui.GUIPreferencesDialog.namTmpSpace, denoptim.gui.GUIPreferencesDialog.pnlChartPointSize, denoptim.gui.GUIPreferencesDialog.pnlEvoChartLegend, denoptim.gui.GUIPreferencesDialog.pnlGraphNodeSize, denoptim.gui.GUIPreferencesDialog.pnlGraphTxtSize, denoptim.gui.GUIPreferencesDialog.pnlMntChartLegend, denoptim.gui.GUIPreferencesDialog.pnlSMILESTo3D, denoptim.gui.GUIPreferencesDialog.pnlTmpSpace, denoptim.gui.GUIPreferencesDialog.rcbEvoChartLegend, denoptim.gui.GUIPreferencesDialog.rcbMntChartLegend, denoptim.gui.GUIPreferences.showLegenInEvolutionPlot, denoptim.gui.GUIPreferences.showLegenInMonitorPlot, denoptim.gui.GUIPreferences.smiTo3dResolver, denoptim.gui.GUIPreferencesDialog.storeValues(), denoptim.gui.GUIPreferencesDialog.strFieldSize, denoptim.gui.GUIPreferencesDialog.tabModPropTags, denoptim.gui.GUIPreferencesDialog.tabPropTags, denoptim.gui.GUIPreferences.tmpSpace, denoptim.gui.GUIPreferencesDialog.txtChartPointSize, denoptim.gui.GUIPreferencesDialog.txtGraphNodeSize, denoptim.gui.GUIPreferencesDialog.txtGraphTxtSize, and denoptim.gui.GUIPreferencesDialog.txtTmpSpace.

Here is the call graph for this function:

Member Function Documentation

◆ checkInput()

void denoptim.gui.GUIPreferencesDialog.checkInput ( )
private

◆ mustParseToInt()

void denoptim.gui.GUIPreferencesDialog.mustParseToInt ( JTextField  field,
String  name 
)
private

Definition at line 342 of file GUIPreferencesDialog.java.

References denoptim.gui.GUIPreferencesDialog.inputIsOK.

Referenced by denoptim.gui.GUIPreferencesDialog.checkInput().

Here is the caller graph for this function:

◆ pathMustBeReadableWritable()

void denoptim.gui.GUIPreferencesDialog.pathMustBeReadableWritable ( JTextField  field,
String  name 
)
private

Definition at line 359 of file GUIPreferencesDialog.java.

References denoptim.files.FileUtils.canWriteAndReadTo(), denoptim.files.FileUtils.deleteFile(), and denoptim.gui.GUIPreferencesDialog.inputIsOK.

Referenced by denoptim.gui.GUIPreferencesDialog.checkInput().

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

◆ storeValues()

void denoptim.gui.GUIPreferencesDialog.storeValues ( )
private

Member Data Documentation

◆ btnPropTagsCleanup

JButton denoptim.gui.GUIPreferencesDialog.btnPropTagsCleanup
private

◆ btnPropTagsInsert

JButton denoptim.gui.GUIPreferencesDialog.btnPropTagsInsert
private

◆ centralPanel

JPanel denoptim.gui.GUIPreferencesDialog.centralPanel
private

◆ cmbSMILESTo3D

JComboBox<SMITo3DEngine> denoptim.gui.GUIPreferencesDialog.cmbSMILESTo3D
private

◆ fileLabelSize

final Dimension denoptim.gui.GUIPreferencesDialog.fileLabelSize = new Dimension(250,28)
package

Default sizes for file pathname labels.

Definition at line 59 of file GUIPreferencesDialog.java.

Referenced by denoptim.gui.GUIPreferencesDialog.GUIPreferencesDialog().

◆ inputIsOK

◆ lblChartPointSize

JLabel denoptim.gui.GUIPreferencesDialog.lblChartPointSize
private

◆ lblGraphNodeSize

JLabel denoptim.gui.GUIPreferencesDialog.lblGraphNodeSize
private

◆ lblGraphTxtSize

JLabel denoptim.gui.GUIPreferencesDialog.lblGraphTxtSize
private

◆ lblPropTags

JLabel denoptim.gui.GUIPreferencesDialog.lblPropTags
private

◆ lblSMILESTo3D

JLabel denoptim.gui.GUIPreferencesDialog.lblSMILESTo3D
private

◆ lblTmpSpace

JLabel denoptim.gui.GUIPreferencesDialog.lblTmpSpace
private

◆ linePropTags

JPanel denoptim.gui.GUIPreferencesDialog.linePropTags
private

◆ namChartPointSize

String denoptim.gui.GUIPreferencesDialog.namChartPointSize = "Size of points in evolution chart"
private

◆ namEvoChartLegend

String denoptim.gui.GUIPreferencesDialog.namEvoChartLegend = "Display legend in evolution chart"
private

◆ namGraphNodeSize

String denoptim.gui.GUIPreferencesDialog.namGraphNodeSize = "Size of graph nodes"
private

◆ namGraphTxtSize

String denoptim.gui.GUIPreferencesDialog.namGraphTxtSize = "Font size for graph labels"
private

◆ namMntChartLegend

String denoptim.gui.GUIPreferencesDialog.namMntChartLegend = "Display legend in monitor chart"
private

◆ namSMILESTo3D

String denoptim.gui.GUIPreferencesDialog.namSMILESTo3D = "SMILES-to-3D converer"
private

◆ namTmpSpace

String denoptim.gui.GUIPreferencesDialog.namTmpSpace = "Folder for tmp files"
private

◆ pnlChartPointSize

JPanel denoptim.gui.GUIPreferencesDialog.pnlChartPointSize
private

◆ pnlEvoChartLegend

JPanel denoptim.gui.GUIPreferencesDialog.pnlEvoChartLegend
private

◆ pnlGraphNodeSize

JPanel denoptim.gui.GUIPreferencesDialog.pnlGraphNodeSize
private

◆ pnlGraphTxtSize

JPanel denoptim.gui.GUIPreferencesDialog.pnlGraphTxtSize
private

◆ pnlMntChartLegend

JPanel denoptim.gui.GUIPreferencesDialog.pnlMntChartLegend
private

◆ pnlSMILESTo3D

JPanel denoptim.gui.GUIPreferencesDialog.pnlSMILESTo3D
private

◆ pnlTmpSpace

JPanel denoptim.gui.GUIPreferencesDialog.pnlTmpSpace
private

◆ preferredHeight

final int denoptim.gui.GUIPreferencesDialog.preferredHeight
package
Initial value:
=
(int) (new JTextField()).getPreferredSize().getHeight()

Default text field height.

Definition at line 64 of file GUIPreferencesDialog.java.

◆ rcbEvoChartLegend

JRadioButton denoptim.gui.GUIPreferencesDialog.rcbEvoChartLegend
private

◆ rcbMntChartLegend

JRadioButton denoptim.gui.GUIPreferencesDialog.rcbMntChartLegend
private

◆ serialVersionUID

final long denoptim.gui.GUIPreferencesDialog.serialVersionUID = -1416475901274128714L
staticprivate

Version UID.

Definition at line 54 of file GUIPreferencesDialog.java.

◆ strFieldSize

final Dimension denoptim.gui.GUIPreferencesDialog.strFieldSize = new Dimension(75,preferredHeight)
package

Default sizes for short pathname fields (i.e., string or number)

Definition at line 70 of file GUIPreferencesDialog.java.

Referenced by denoptim.gui.GUIPreferencesDialog.GUIPreferencesDialog().

◆ tabModPropTags

DefaultTableModel denoptim.gui.GUIPreferencesDialog.tabModPropTags
private

◆ tabPropTags

JTable denoptim.gui.GUIPreferencesDialog.tabPropTags
private

◆ txtChartPointSize

JTextField denoptim.gui.GUIPreferencesDialog.txtChartPointSize
private

◆ txtGraphNodeSize

JTextField denoptim.gui.GUIPreferencesDialog.txtGraphNodeSize
private

◆ txtGraphTxtSize

JTextField denoptim.gui.GUIPreferencesDialog.txtGraphTxtSize
private

◆ txtTmpSpace

JTextField denoptim.gui.GUIPreferencesDialog.txtTmpSpace
private

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