Class PointROIHandler

java.lang.Object
org.eclipse.dawnsci.analysis.dataset.roi.handler.ROIHandler<PointROI>
org.eclipse.dawnsci.analysis.dataset.roi.handler.PointROIHandler

public class PointROIHandler extends ROIHandler<PointROI>
  • Constructor Details

    • PointROIHandler

      public PointROIHandler(PointROI roi)
  • Method Details

    • getHandlePoint

      public double[] getHandlePoint(int handle, int size)
      Specified by:
      getHandlePoint in class ROIHandler<PointROI>
      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<PointROI>
      Parameters:
      handle -
      size -
      Returns:
      anchor point for scale invariant display and acts as centre of rotation
    • getCentreHandle

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

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