$darkmode
DENOPTIM
GUIPreferences.java
Go to the documentation of this file.
1/*
2 * DENOPTIM
3 * Copyright (C) 2020 Marco Foscato <marco.foscato@uib.no>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as published
7 * by the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Affero General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19package denoptim.gui;
20
21import java.io.File;
22import java.util.HashMap;
23import java.util.Map;
24import java.util.TreeSet;
25
26import org.openscience.cdk.CDKConstants;
27
28import denoptim.constants.DENOPTIMConstants;
29
36public class GUIPreferences {
37
41 protected static int graphLabelFontSize = 10;
42
46 protected static int graphNodeSize = 30;
47
51 protected static int chartPointSize = 8;
52
56 public static TreeSet<String> chosenSDFTags = new TreeSet<String>();
57
62 public static Map<String,String> defualtSDFTags;
63 static {
64 defualtSDFTags = new HashMap<String,String>();
65 defualtSDFTags.put(CDKConstants.TITLE,"Name");
69 defualtSDFTags.put("Generation","Generation");
71 for (String s : defualtSDFTags.keySet())
72 {
73 chosenSDFTags.add(s);
74 }
75 }
76
80 protected static String tmpSpace = "/tmp";
81
85 protected enum SMITo3DEngine {CACTVS, CDK};
86
90 protected static SMITo3DEngine smiTo3dResolver =
92
96 protected static boolean showLegenInEvolutionPlot = false;
97
101 protected static boolean showLegenInMonitorPlot = false;
102
106 protected static File lastCutRulesFile;
107
108}
General set of constants used in DENOPTIM.
static final String PROVENANCE
SDF tag containing provenance data for a graph.
static final String UNIQUEIDTAG
SDF tag containing the unique identifier of a candidate.
static final String MOLERRORTAG
SDF tag containing errors during execution of molecule specific tasks.
static final String FITNESSTAG
SDF tag containing the fitness of a candidate.
The collection of tunable preferences.
static String tmpSpace
Readable/writable space for tmp files.
static boolean showLegenInMonitorPlot
Choice of displaying legend in monitor plot.
static int graphNodeSize
Graph visualization: size of nodes.
static File lastCutRulesFile
File with last used cutting rules.
static boolean showLegenInEvolutionPlot
Choice of displaying legend in evolution plot.
static int graphLabelFontSize
Graph visualization: font size of labels.
static TreeSet< String > chosenSDFTags
MolecularViewer: list of SDF tags specifying which properties to display.
static Map< String, String > defualtSDFTags
MolecularViewer: default list of SDF tags with corresponding string to display instead of tag.
static int chartPointSize
Evolutionary Inspector: size of points.
static SMITo3DEngine smiTo3dResolver
Selects the engine used to do SMILES-to-3D conversion.
Available engines used to do SMILES-to-3D conversion.