Class CentreHandle

All Implemented Interfaces:
Serializable, Cloneable

public class CentreHandle extends Handle
A Class representing a Handle at the centre of an ROI.
See Also:
  • Constructor Details

    • CentreHandle

      public CentreHandle(int x, int y, int size)
      Creates a new CentreHandle at the location (x,y) with the given size in screen pixels.
      Parameters:
      x - the x location of the Handle in screen coords.
      y - the y location of the Handle in screen coords.
      size - the size of the Handle in screen pixels.
  • Method Details

    • draw

      public final void draw(Graphics g)
      Draws this Handle on the given Graphics context. Override the default draw method for centre handles. Draw as a kind of cross shape with two overlapping rectangles.
      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.