Module ij
Package ij.gui

Class RotatedRectRoi

java.lang.Object
ij.gui.Roi
ij.gui.PolygonRoi
ij.gui.RotatedRectRoi
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.awt.Point>

public class RotatedRectRoi
extends PolygonRoi
This class implements the rotated rectangle selection tool.
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • draw

      public void draw​(java.awt.Graphics g)
      Overrides:
      draw in class PolygonRoi
    • grow

      protected void grow​(int sx, int sy)
      Overrides:
      grow in class PolygonRoi
    • showStatus

      public void showStatus()
      Overrides:
      showStatus in class Roi
    • nudgeCorner

      public void nudgeCorner​(int key)
      Description copied from class: Roi
      Nudge lower right corner of rectangular and oval ROIs by one pixel based on arrow key press.
      Overrides:
      nudgeCorner in class Roi
    • handleMouseUp

      protected void handleMouseUp​(int screenX, int screenY)
      Description copied from class: PolygonRoi
      With segmented selections, ignore first mouse up and finalize when user double-clicks, control-clicks or clicks in start box.
      Overrides:
      handleMouseUp in class PolygonRoi
    • moveHandle

      protected void moveHandle​(int sx, int sy)
      Overrides:
      moveHandle in class PolygonRoi
    • isHandle

      public int isHandle​(int sx, int sy)
      Description copied from class: PolygonRoi
      Returns a handle number if the specified screen coordinates are inside or near a handle, otherwise returns -1.
      Overrides:
      isHandle in class PolygonRoi
    • getParams

      public double[] getParams()
      Returns x1, y1, x2, y2 and width as a 5 element array.
    • subPixelResolution

      public boolean subPixelResolution()
      Always returns true.
      Overrides:
      subPixelResolution in class Roi