Class MapCache

java.lang.Object
uk.ac.gda.client.microfocus.util.MapCache

public class MapCache extends Object
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 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

      public double[][] getMap(String element, int channel)
    • getSpectrum

      public double[] getSpectrum(int detectorNo, int x, int y) throws org.eclipse.january.DatasetException
      Throws:
      org.eclipse.january.DatasetException