Class LinearROIHandler
java.lang.Object
org.eclipse.dawnsci.analysis.dataset.roi.handler.ROIHandler<LinearROI>
org.eclipse.dawnsci.analysis.dataset.roi.handler.LinearROIHandler
Wrapper class for a LinearROI that adds handles
-
Field Summary
Fields inherited from class org.eclipse.dawnsci.analysis.dataset.roi.handler.ROIHandler
handle, list, roi, status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]getAnchorPoint(int handle, int size) intdouble[]getHandlePoint(int handle, int size) interpretMouseDragging(double[] spt, double[] ept) Interpret mouse draggingreorient(double[] pt) resize(double[] pt) Methods inherited from class org.eclipse.dawnsci.analysis.dataset.roi.handler.ROIHandler
add, configureDragging, contains, get, getAll, getROI, getStatus, indexOf, interpretMouseDragging, remove, set, setROI, size, unconfigureDragging
-
Constructor Details
-
LinearROIHandler
Handler for LinearROI- Parameters:
roi-
-
-
Method Details
-
getCentreHandle
public int getCentreHandle()- Specified by:
getCentreHandlein classROIHandler<LinearROI>- Returns:
- centre handle ID
-
getHandlePoint
public double[] getHandlePoint(int handle, int size) - Specified by:
getHandlePointin classROIHandler<LinearROI>- Parameters:
handle-size-- Returns:
- handle point for corner of handle box
-
getAnchorPoint
public double[] getAnchorPoint(int handle, int size) - Specified by:
getAnchorPointin classROIHandler<LinearROI>- Parameters:
handle-size-- Returns:
- anchor point for scale invariant display and acts as centre of rotation
-
reorient
- Parameters:
pt-- Returns:
- reoriented ROI
-
resize
- Parameters:
pt-- Returns:
- resized ROI
-
interpretMouseDragging
Description copied from class:ROIHandlerInterpret mouse dragging- Specified by:
interpretMouseDraggingin classROIHandler<LinearROI>- Parameters:
spt-ept-- Returns:
- roi, can be null if handle movement is invalid
-