Search in sources :

Example 1 with ResultWindow

use of de.lmu.ifi.dbs.elki.visualization.gui.ResultWindow in project elki by elki-project.

the class AutomaticVisualization method processNewResult.

@Override
public void processNewResult(final ResultHierarchy hier, final Result result) {
    if (window == null) {
        if (title == null) {
            title = VisualizerParameterizer.getTitle(ResultUtil.findDatabase(hier), result);
            if (title == null) {
                title = DEFAULT_TITLE;
            }
        }
        GUIUtil.setLookAndFeel();
        VisualizerContext context = manager.newContext(hier, result);
        window = new ResultWindow(title, context, single);
    }
    javax.swing.SwingUtilities.invokeLater(new Runnable() {

        @Override
        public void run() {
            try {
                window.setVisible(true);
                window.setExtendedState(window.getExtendedState() | JFrame.MAXIMIZED_BOTH);
            } catch (Throwable e) {
                LOG.exception("Error in starting visualizer window.", e);
            }
        }
    });
}
Also used : ResultWindow(de.lmu.ifi.dbs.elki.visualization.gui.ResultWindow) VisualizerContext(de.lmu.ifi.dbs.elki.visualization.VisualizerContext)

Aggregations

VisualizerContext (de.lmu.ifi.dbs.elki.visualization.VisualizerContext)1 ResultWindow (de.lmu.ifi.dbs.elki.visualization.gui.ResultWindow)1