Class InsertionPointHandle

All Implemented Interfaces:
Serializable, Cloneable

public class InsertionPointHandle extends Handle
A Handle to indicate and move the insertion point for a RadialDivider. The handle also has a little 'stick' to show the direction in which the segments will be assessed.
See Also:
  • Constructor Details

    • InsertionPointHandle

      public InsertionPointHandle(int x, int y, int slice, Point2D centreOfRotation)
      Creates a new InsertionPointHandle at the location (x,y), in screen pixels.
      Parameters:
      x - the x location of the InsertionPointHandle in screen coords.
      y - the y location of the InsertionPointHandle in screen coords.
      slice - the image slice number on which the InsertionPointHandle is drawn.
      centreOfRotation - the point in window coordinates about which the ROIs will be rotated when using this handle. Used to assist in the drawing of the segment direction arrow.
  • Method Details

    • getSlice

      public int getSlice()
      Returns the physical slice number to which this InsertionPointHandle applies.
      Returns:
      the physical slice number of this InsertionPointHandle.
    • draw

      public void draw(Graphics g)
      Draws this InsertionPointHandle using the given Graphics context.
      Overrides:
      draw in class Handle
      Parameters:
      g - the Graphics object on which the drawing operation is to be peformed.
    • toString

      public String toString()
      Description copied from class: Handle
      Returns a java.lang.String describing this Handle.
      Specified by:
      toString in class Handle
      Returns:
      a String describing this Handle.