Class VertexHandle

All Implemented Interfaces:
Serializable, Cloneable

public class VertexHandle extends Handle
A Class representing a Handle at one of the vertices of an EditableOutlineROI.
See Also:
  • Constructor Details

    • VertexHandle

      public VertexHandle(int x, int y)
      Creates a new VertexHandle 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.
  • Method Details

    • draw

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

      public final boolean pointOver(Point point)
      Returns true if the specified point is over this handle; false otherwise.
      Overrides:
      pointOver in class Handle
      Parameters:
      point - the Point to test.
      Returns:
      true if the specified point is over this handle; false otherwise.
    • 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.