Class ScanPositionsTwoWay

java.lang.Object
uk.ac.gda.client.microfocus.scan.util.ScanPositionsTwoWay
All Implemented Interfaces:
ScanPositionProvider, Iterable<Object>

public class ScanPositionsTwoWay extends Object implements ScanPositionProvider
A ScanPositionProvider which flips every other line of data for use in two-way (back and forth) 2D map scans.
  • Constructor Details

    • ScanPositionsTwoWay

      public ScanPositionsTwoWay(Scannable firstScannable, double start, double stop, double step) throws Exception
      Throws:
      Exception
  • Method Details

    • get

      public Object get(int index)
      Description copied from interface: ScanPositionProvider
      Returns the element at the specified position in this list.
      Specified by:
      get in interface ScanPositionProvider
      Parameters:
      index - index of the element to return
      Returns:
      the element at the specified position in this list
    • size

      public int size()
      Description copied from interface: ScanPositionProvider
      Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.
      Specified by:
      size in interface ScanPositionProvider
      Returns:
      the number of elements in this list
    • toString

      public String toString()
      Overrides:
      toString in class Object