Class LinearROIHandler

java.lang.Object
org.eclipse.dawnsci.analysis.dataset.roi.handler.ROIHandler<LinearROI>
org.eclipse.dawnsci.analysis.dataset.roi.handler.LinearROIHandler

public class LinearROIHandler extends ROIHandler<LinearROI>
Wrapper class for a LinearROI that adds handles
  • Constructor Details

    • LinearROIHandler

      public LinearROIHandler(LinearROI roi)
      Handler for LinearROI
      Parameters:
      roi -
  • Method Details

    • getCentreHandle

      public int getCentreHandle()
      Specified by:
      getCentreHandle in class ROIHandler<LinearROI>
      Returns:
      centre handle ID
    • getHandlePoint

      public double[] getHandlePoint(int handle, int size)
      Specified by:
      getHandlePoint in class ROIHandler<LinearROI>
      Parameters:
      handle -
      size -
      Returns:
      handle point for corner of handle box
    • getAnchorPoint

      public double[] getAnchorPoint(int handle, int size)
      Specified by:
      getAnchorPoint in class ROIHandler<LinearROI>
      Parameters:
      handle -
      size -
      Returns:
      anchor point for scale invariant display and acts as centre of rotation
    • reorient

      public LinearROI reorient(double[] pt)
      Parameters:
      pt -
      Returns:
      reoriented ROI
    • resize

      public LinearROI resize(double[] pt)
      Parameters:
      pt -
      Returns:
      resized ROI
    • interpretMouseDragging

      public LinearROI interpretMouseDragging(double[] spt, double[] ept)
      Description copied from class: ROIHandler
      Interpret mouse dragging
      Specified by:
      interpretMouseDragging in class ROIHandler<LinearROI>
      Parameters:
      spt -
      ept -
      Returns:
      roi, can be null if handle movement is invalid