Search in sources :

Example 1 with SavedSettingsTabPanel

use of de.lmu.ifi.dbs.elki.gui.multistep.panels.SavedSettingsTabPanel in project elki by elki-project.

the class MultiStepGUI method addPanels.

private void addPanels(JTabbedPane panels) {
    SavedSettingsFile settings = new SavedSettingsFile(MiniGUI.SAVED_SETTINGS_FILENAME);
    try {
        settings.load();
    } catch (FileNotFoundException e) {
        LOG.warning("Error loading saved settings.", e);
    } catch (IOException e) {
        LOG.exception(e);
    }
    inputTab = new InputTabPanel();
    algTab = new AlgorithmTabPanel(inputTab);
    evalTab = new EvaluationTabPanel(inputTab, algTab);
    outTab = new OutputTabPanel(inputTab, evalTab);
    logTab = new LoggingTabPanel();
    setTab = new SavedSettingsTabPanel(settings, this);
    panels.addTab("Input", inputTab);
    panels.addTab("Algorithm", algTab);
    panels.addTab("Evaluation", evalTab);
    panels.addTab("Output", outTab);
    panels.addTab("Logging", logTab);
    panels.addTab("Saved Settings", setTab);
    setParameters(new ListParameterization());
}
Also used : AlgorithmTabPanel(de.lmu.ifi.dbs.elki.gui.multistep.panels.AlgorithmTabPanel) OutputTabPanel(de.lmu.ifi.dbs.elki.gui.multistep.panels.OutputTabPanel) FileNotFoundException(java.io.FileNotFoundException) SavedSettingsTabPanel(de.lmu.ifi.dbs.elki.gui.multistep.panels.SavedSettingsTabPanel) EvaluationTabPanel(de.lmu.ifi.dbs.elki.gui.multistep.panels.EvaluationTabPanel) IOException(java.io.IOException) InputTabPanel(de.lmu.ifi.dbs.elki.gui.multistep.panels.InputTabPanel) LoggingTabPanel(de.lmu.ifi.dbs.elki.gui.multistep.panels.LoggingTabPanel) SavedSettingsFile(de.lmu.ifi.dbs.elki.gui.util.SavedSettingsFile) ListParameterization(de.lmu.ifi.dbs.elki.utilities.optionhandling.parameterization.ListParameterization)

Aggregations

AlgorithmTabPanel (de.lmu.ifi.dbs.elki.gui.multistep.panels.AlgorithmTabPanel)1 EvaluationTabPanel (de.lmu.ifi.dbs.elki.gui.multistep.panels.EvaluationTabPanel)1 InputTabPanel (de.lmu.ifi.dbs.elki.gui.multistep.panels.InputTabPanel)1 LoggingTabPanel (de.lmu.ifi.dbs.elki.gui.multistep.panels.LoggingTabPanel)1 OutputTabPanel (de.lmu.ifi.dbs.elki.gui.multistep.panels.OutputTabPanel)1 SavedSettingsTabPanel (de.lmu.ifi.dbs.elki.gui.multistep.panels.SavedSettingsTabPanel)1 SavedSettingsFile (de.lmu.ifi.dbs.elki.gui.util.SavedSettingsFile)1 ListParameterization (de.lmu.ifi.dbs.elki.utilities.optionhandling.parameterization.ListParameterization)1 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1