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);
}
}
});
}
Aggregations