Class MutableRectangularIntegerROI
java.lang.Object
gda.factory.FindableBase
gda.device.detector.nxdetector.roi.MutableRectangularIntegerROI
- All Implemented Interfaces:
RectangularROI<Integer>,RectangularROIProvider<Integer>,Findable
public class MutableRectangularIntegerROI
extends FindableBase
implements RectangularROI<Integer>, RectangularROIProvider<Integer>
This class provides a mutable rectangular ROI which is also findable to allow the ROI on a area detector to be adjusted from the GDA command line/scripts. To
use on the command line it will need to be obtained using the Finder. To make it easier to integrate with ADRoiStatsPairFactory it also implements
RectangularROIProvider returning itself.
Example Spring XML:
<bean id="cam1_roi" class="gda.device.detector.nxdetector.roi.MutableRectangularIntegerROI">
<property name="xstart" value="0" />
<property name="ystart" value="0" />
<property name="xsize" value="500" />
<property name="ysize" value="500" />
</bean>
-
Constructor Summary
ConstructorsConstructorDescriptionConvenience constructor to create aMutableRectangularIntegerROIfrom an existingRectangularROI. -
Method Summary
Modifier and TypeMethodDescriptiongetRoi()Return a RectangularROI, or null if none is available/enabled.getXsize()getYsize()voidsetROI(RectangularROI<Integer> roi) Change this ROI to match a existingRectangularROIvoidvoidvoidvoidMethods inherited from class gda.factory.FindableBase
equals, getName, hashCode, setNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.device.detector.nxdetector.roi.RectangularROI
getName
-
Constructor Details
-
MutableRectangularIntegerROI
public MutableRectangularIntegerROI() -
MutableRectangularIntegerROI
Convenience constructor to create aMutableRectangularIntegerROIfrom an existingRectangularROI.- Parameters:
roi- ExistingRectangularROI
-
-
Method Details
-
getXstart
- Specified by:
getXstartin interfaceRectangularROI<Integer>
-
setXstart
-
getYstart
- Specified by:
getYstartin interfaceRectangularROI<Integer>
-
setYstart
-
getXsize
- Specified by:
getXsizein interfaceRectangularROI<Integer>
-
setXsize
-
getYsize
- Specified by:
getYsizein interfaceRectangularROI<Integer>
-
setYsize
-
getRoi
public RectangularROI<Integer> getRoi() throws IllegalArgumentException, IndexOutOfBoundsException, ExceptionDescription copied from interface:RectangularROIProviderReturn a RectangularROI, or null if none is available/enabled.- Specified by:
getRoiin interfaceRectangularROIProvider<Integer>- Returns:
- an roi or null if none available/active
- Throws:
IllegalArgumentException- if the index is out of boundsIndexOutOfBoundsExceptionException- If the RCPPlotter.getBean throws an exception
-
setROI
Change this ROI to match a existingRectangularROI- Parameters:
roi- ExistingRectangularROI
-