Class MappingRegionUnits

java.lang.Object
uk.ac.diamond.daq.mapping.api.MappingRegionUnits

@OsgiService(MappingRegionUnits.class) public class MappingRegionUnits extends Object
This class provides a mapping of path property (e.g. "xAxisStep", "xCentre", "radius") to the unit to be displayed in the mapping GUI for the relevant field.

It can be used, for example, to define the initial unit to be shown for each field after a client reset, and also to save the state of the GUI when submitting a scan.

If no unit is mapped for a given field, the value returned will default to:

  • the value set in the uk.ac.gda.client.defaultUnits property, or if this is not set,
  • the default value supplied by the caller
  • Constructor Details

  • Method Details