Class PolygonalROIHandler
java.lang.Object
org.eclipse.dawnsci.analysis.dataset.roi.handler.ROIHandler<PolygonalROI>
org.eclipse.dawnsci.analysis.dataset.roi.handler.PolygonalROIHandler
Wrapper class for polygon that adds handles for each point
-
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) getROI()interpretMouseDragging(double[] spt, double[] ept) Interpret mouse draggingvoidsetROI(PolygonalROI roi) Methods inherited from class org.eclipse.dawnsci.analysis.dataset.roi.handler.ROIHandler
add, configureDragging, contains, get, getAll, getStatus, indexOf, interpretMouseDragging, remove, set, size, unconfigureDragging
-
Constructor Details
-
PolygonalROIHandler
Handler for ROIBase- Parameters:
roi-
-
-
Method Details
-
getROI
- Overrides:
getROIin classROIHandler<PolygonalROI>- Returns:
- Returns the roi.
-
getCentreHandle
public int getCentreHandle()- Specified by:
getCentreHandlein classROIHandler<PolygonalROI>- Returns:
- centre handle ID
-
setROI
- Overrides:
setROIin classROIHandler<PolygonalROI>- Parameters:
roi- The roi to set.
-
getHandlePoint
public double[] getHandlePoint(int handle, int size) - Specified by:
getHandlePointin classROIHandler<PolygonalROI>- Parameters:
handle-size-- Returns:
- handle point for corner of handle box
-
getAnchorPoint
public double[] getAnchorPoint(int handle, int size) - Specified by:
getAnchorPointin classROIHandler<PolygonalROI>- Parameters:
handle-size-- Returns:
- anchor point for scale invariant display and acts as centre of rotation
-
interpretMouseDragging
Description copied from class:ROIHandlerInterpret mouse dragging- Specified by:
interpretMouseDraggingin classROIHandler<PolygonalROI>- Parameters:
spt-ept-- Returns:
- roi, can be null if handle movement is invalid
-