$darkmode
DENOPTIM
|
A modal dialog to define parameters for fragmentation and fragment filtering. More...
Classes | |
class | MyJSVGCanvas |
Special canvas that overrides the set interpretation of mouse+key input to achieve a simplified zoom/pan capability using only BUTTON1 and SHIFT or CTRL keys. More... | |
class | SMARTSVisualizationButton |
A button that opens a modal dialog displaying the PNGs with a visual representation of SMARTS queries that are selected in the table given upon construction. More... | |
Public Member Functions | |
CuttingRulesSelectionDialog (List< CuttingRule > defaultCuttingRules, List< CuttingRule > customCuttingRules, boolean preselectDefault, Component refForPlacement, FragmenterParameters settings) | |
Constructor. 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... | |
Protected Member Functions | |
void | saveResults () |
void | appendToCentralPanel (JComponent panel) |
Method to append a panel to the bottom of the central panel. More... | |
Protected Member Functions inherited from denoptim.gui.GUIModalDialog | |
void | close () |
Closes the dialog window. More... | |
Protected Attributes | |
JPanel | centralPanel = new JPanel(new BorderLayout()) |
The panel in the central part of the dialog. More... | |
File | lastUsedCutRulFile = null |
The file where we last saved cutting rules different from the default. More... | |
final int | preferredHeight |
Default text field height. More... | |
final Dimension | strFieldSize = new Dimension(200, preferredHeight) |
Default sizes for mid-long text. More... | |
JTextField | txtLinearity |
User-controlled definition of the linearity limit. More... | |
List< CuttingRule > | chosenOnes |
Chosen set of rules. More... | |
FragmenterParameters | frgParams |
Parameter storage were we store parameters. 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... | |
Private Member Functions | |
String | escapeCharactersForSMARTSViewer (String smarts) |
Escaping some characters as explained in https://smarts.plus/rest. More... | |
void | buildCustomRulesTable (List< CuttingRule > customCuttingRules, String[] emptyRow) |
File | getTmpFileForCuttingRules () throws DENOPTIMException |
Private Attributes | |
JRadioButton | rdbUseDefault |
JRadioButton | rdbUseCustom |
DefaultTableModel | defaultRulesTabModel |
DefaultTableModel | customRulesTabModel |
File | nextWrittenCutRulFile = null |
The file where we will save next edited list of cutting rules. More... | |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
Version ID. More... | |
A modal dialog to define parameters for fragmentation and fragment filtering.
This dialog allows to control only a limited set of parameters compared to the full capacity of FragmenterParameters
. This because many of the parameters in the latter have no sense to exist in an interactive, GUI-controlled fragmentation.
Definition at line 84 of file CuttingRulesSelectionDialog.java.
denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog | ( | List< CuttingRule > | defaultCuttingRules, |
List< CuttingRule > | customCuttingRules, | ||
boolean | preselectDefault, | ||
Component | refForPlacement, | ||
FragmenterParameters | settings | ||
) |
Constructor.
DENOPTIMException |
Definition at line 147 of file CuttingRulesSelectionDialog.java.
References denoptim.gui.GUIModalDialog.addToCentralPane(), denoptim.files.FileUtils.addToRecentFiles(), denoptim.gui.CuttingRulesSelectionDialog.appendToCentralPanel(), denoptim.gui.GUIModalDialog.btnCanc, denoptim.gui.GUIModalDialog.btnDone, denoptim.gui.CuttingRulesSelectionDialog.buildCustomRulesTable(), denoptim.gui.CuttingRulesSelectionDialog.centralPanel, denoptim.gui.CuttingRulesSelectionDialog.chosenOnes, denoptim.gui.GUIModalDialog.close(), denoptim.gui.CuttingRulesSelectionDialog.customRulesTabModel, denoptim.files.FileFormat.CUTRULE, denoptim.gui.CuttingRulesSelectionDialog.defaultRulesTabModel, denoptim.files.FileAndFormat.file, denoptim.files.FileAndFormat.format, denoptim.gui.CuttingRulesSelectionDialog.frgParams, denoptim.utils.GeneralUtils.getEnglishFormattedDecimal(), denoptim.programs.fragmenter.FragmenterParameters.getLinearAngleLimit(), denoptim.gui.CuttingRulesSelectionDialog.getTmpFileForCuttingRules(), denoptim.gui.CuttingRulesSelectionDialog.lastUsedCutRulFile, denoptim.gui.CuttingRulesSelectionDialog.nextWrittenCutRulFile, denoptim.gui.GUIFileOpener.pickFile(), denoptim.gui.GUIFileSaver.pickFileForSavingCuttingRules(), denoptim.gui.CuttingRulesSelectionDialog.rdbUseCustom, denoptim.gui.CuttingRulesSelectionDialog.rdbUseDefault, denoptim.io.DenoptimIO.readCuttingRules(), denoptim.gui.CuttingRulesSelectionDialog.saveResults(), denoptim.gui.CuttingRulesSelectionDialog.strFieldSize, denoptim.gui.CuttingRulesSelectionDialog.txtLinearity, and denoptim.io.DenoptimIO.writeCuttingRules().
|
protected |
Method to append a panel to the bottom of the central panel.
panel |
Definition at line 628 of file CuttingRulesSelectionDialog.java.
References denoptim.gui.CuttingRulesSelectionDialog.centralPanel.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog(), and denoptim.gui.MolToGraphParametersDialog.MolToGraphParametersDialog().
|
private |
Definition at line 875 of file CuttingRulesSelectionDialog.java.
References denoptim.gui.CuttingRulesSelectionDialog.customRulesTabModel.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog().
|
private |
Escaping some characters as explained in https://smarts.plus/rest.
Definition at line 861 of file CuttingRulesSelectionDialog.java.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.SMARTSVisualizationButton.SMARTSVisualizationButton().
|
private |
Definition at line 904 of file CuttingRulesSelectionDialog.java.
References denoptim.files.FileUtils.getAvailableFileName(), and denoptim.gui.GUIPreferences.tmpSpace.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog().
|
protected |
Reimplemented in denoptim.gui.MolToGraphParametersDialog.
Definition at line 609 of file CuttingRulesSelectionDialog.java.
References denoptim.gui.CuttingRulesSelectionDialog.chosenOnes, denoptim.gui.CuttingRulesSelectionDialog.frgParams, denoptim.gui.CuttingRulesSelectionDialog.lastUsedCutRulFile, denoptim.gui.GUIModalDialog.result, denoptim.programs.fragmenter.FragmenterParameters.setCuttingRules(), denoptim.programs.fragmenter.FragmenterParameters.setCuttingRulesFilePathname(), denoptim.programs.fragmenter.FragmenterParameters.setLinearAngleLimit(), and denoptim.gui.CuttingRulesSelectionDialog.txtLinearity.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog().
|
protected |
The panel in the central part of the dialog.
This is where main content goes.
Definition at line 96 of file CuttingRulesSelectionDialog.java.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.appendToCentralPanel(), and denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog().
|
protected |
Chosen set of rules.
Definition at line 133 of file CuttingRulesSelectionDialog.java.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog(), and denoptim.gui.CuttingRulesSelectionDialog.saveResults().
|
private |
Definition at line 102 of file CuttingRulesSelectionDialog.java.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.buildCustomRulesTable(), and denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog().
|
private |
Definition at line 101 of file CuttingRulesSelectionDialog.java.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog().
|
protected |
Parameter storage were we store parameters.
Definition at line 138 of file CuttingRulesSelectionDialog.java.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog(), denoptim.gui.CuttingRulesSelectionDialog.saveResults(), and denoptim.gui.MolToGraphParametersDialog.saveResults().
|
protected |
The file where we last saved cutting rules different from the default.
Definition at line 107 of file CuttingRulesSelectionDialog.java.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog(), and denoptim.gui.CuttingRulesSelectionDialog.saveResults().
|
private |
The file where we will save next edited list of cutting rules.
Definition at line 112 of file CuttingRulesSelectionDialog.java.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog().
|
protected |
Default text field height.
Definition at line 117 of file CuttingRulesSelectionDialog.java.
|
private |
Definition at line 99 of file CuttingRulesSelectionDialog.java.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog().
|
private |
Definition at line 98 of file CuttingRulesSelectionDialog.java.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog().
|
staticprivate |
Version ID.
Definition at line 90 of file CuttingRulesSelectionDialog.java.
|
protected |
Default sizes for mid-long text.
Definition at line 123 of file CuttingRulesSelectionDialog.java.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog(), and denoptim.gui.MolToGraphParametersDialog.MolToGraphParametersDialog().
|
protected |
User-controlled definition of the linearity limit.
Definition at line 128 of file CuttingRulesSelectionDialog.java.
Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog(), and denoptim.gui.CuttingRulesSelectionDialog.saveResults().