performance optimization for plots

This commit is contained in:
Alexander Nozik 2016-05-29 15:19:42 +03:00
parent b50953b119
commit 57a9e9b465
3 changed files with 5 additions and 3 deletions

View File

@ -19,7 +19,7 @@ import hep.dataforge.exceptions.NameNotFoundException;
import hep.dataforge.fx.ConsoleFragment;
import hep.dataforge.fx.FXProcessManager;
import hep.dataforge.fx.LogOutputPane;
import hep.dataforge.fx.MetaEditor;
import hep.dataforge.fx.configuration.MetaEditor;
import hep.dataforge.fx.ProcessManagerFragment;
import hep.dataforge.io.IOManager;
import hep.dataforge.io.MetaFileReader;

View File

@ -5,7 +5,7 @@ if (!hasProperty('mainClass')) {
}
mainClassName = mainClass
version = "0.3.3"
version = "0.3.4"
description = "The viewer for numass data"

View File

@ -351,6 +351,7 @@ public class NumassLoaderViewComponent extends AnchorPane implements Initializab
detectorPlotFrame = new JFreeChartFrame(frameMeta);
} else {
detectorPlotFrame = detectorPlot.getPlot();
detectorPlotFrame.clear();
detectorPlot.removePlot();
}
@ -361,9 +362,9 @@ public class NumassLoaderViewComponent extends AnchorPane implements Initializab
.setValue("showLine", true)
.setValue("showSymbol", false)
.setValue("showErrors", false)
.setValue("JFreeChart.cache", true)
.build();
// detectorPlotFrame.clear();
callback.setMaxProgress(points.size());
callback.setProgress(0);
for (NMPoint point : points) {
@ -375,6 +376,7 @@ public class NumassLoaderViewComponent extends AnchorPane implements Initializab
//TODO add update instead of replace action
}
detectorPlot.setPlot(detectorPlotFrame);
callback.setProgressToMax();
});
}