performance optimization for plots
This commit is contained in:
parent
b50953b119
commit
57a9e9b465
@ -19,7 +19,7 @@ import hep.dataforge.exceptions.NameNotFoundException;
|
|||||||
import hep.dataforge.fx.ConsoleFragment;
|
import hep.dataforge.fx.ConsoleFragment;
|
||||||
import hep.dataforge.fx.FXProcessManager;
|
import hep.dataforge.fx.FXProcessManager;
|
||||||
import hep.dataforge.fx.LogOutputPane;
|
import hep.dataforge.fx.LogOutputPane;
|
||||||
import hep.dataforge.fx.MetaEditor;
|
import hep.dataforge.fx.configuration.MetaEditor;
|
||||||
import hep.dataforge.fx.ProcessManagerFragment;
|
import hep.dataforge.fx.ProcessManagerFragment;
|
||||||
import hep.dataforge.io.IOManager;
|
import hep.dataforge.io.IOManager;
|
||||||
import hep.dataforge.io.MetaFileReader;
|
import hep.dataforge.io.MetaFileReader;
|
||||||
|
@ -5,7 +5,7 @@ if (!hasProperty('mainClass')) {
|
|||||||
}
|
}
|
||||||
mainClassName = mainClass
|
mainClassName = mainClass
|
||||||
|
|
||||||
version = "0.3.3"
|
version = "0.3.4"
|
||||||
|
|
||||||
description = "The viewer for numass data"
|
description = "The viewer for numass data"
|
||||||
|
|
||||||
|
@ -351,6 +351,7 @@ public class NumassLoaderViewComponent extends AnchorPane implements Initializab
|
|||||||
detectorPlotFrame = new JFreeChartFrame(frameMeta);
|
detectorPlotFrame = new JFreeChartFrame(frameMeta);
|
||||||
} else {
|
} else {
|
||||||
detectorPlotFrame = detectorPlot.getPlot();
|
detectorPlotFrame = detectorPlot.getPlot();
|
||||||
|
detectorPlotFrame.clear();
|
||||||
detectorPlot.removePlot();
|
detectorPlot.removePlot();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -361,9 +362,9 @@ public class NumassLoaderViewComponent extends AnchorPane implements Initializab
|
|||||||
.setValue("showLine", true)
|
.setValue("showLine", true)
|
||||||
.setValue("showSymbol", false)
|
.setValue("showSymbol", false)
|
||||||
.setValue("showErrors", false)
|
.setValue("showErrors", false)
|
||||||
|
.setValue("JFreeChart.cache", true)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
// detectorPlotFrame.clear();
|
|
||||||
callback.setMaxProgress(points.size());
|
callback.setMaxProgress(points.size());
|
||||||
callback.setProgress(0);
|
callback.setProgress(0);
|
||||||
for (NMPoint point : points) {
|
for (NMPoint point : points) {
|
||||||
@ -375,6 +376,7 @@ public class NumassLoaderViewComponent extends AnchorPane implements Initializab
|
|||||||
//TODO add update instead of replace action
|
//TODO add update instead of replace action
|
||||||
}
|
}
|
||||||
detectorPlot.setPlot(detectorPlotFrame);
|
detectorPlot.setPlot(detectorPlotFrame);
|
||||||
|
callback.setProgressToMax();
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user