Package uk.ac.gda.client.microfocus.util
Class MapCache
java.lang.Object
uk.ac.gda.client.microfocus.util.MapCache
Holds in memory data from a map file, in the form which is useful for plotting in the Microfocus perpsective:
[element/roi][detector channel][y][x]
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MapCache
public MapCache(HashMap<String, Integer> roiNameMap, List<? extends DetectorROI>[] elementRois, org.eclipse.january.dataset.ILazyDataset lazyDataset) throws org.eclipse.january.DatasetException- Throws:
org.eclipse.january.DatasetException
-
-
Method Details
-
getMap
-
getSpectrum
public double[] getSpectrum(int detectorNo, int x, int y) throws org.eclipse.january.DatasetException - Throws:
org.eclipse.january.DatasetException
-