Documentation of 'ij.gui.RotatedRectRoi' Java class
RotatedRectRoi
ij.gui

Class 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 Detail

      • RotatedRectRoi

        public RotatedRectRoi(double x1,
                              double y1,
                              double x2,
                              double y2,
                              double rectWidth)
      • RotatedRectRoi

        public RotatedRectRoi(int sx,
                              int sy,
                              ImagePlus imp)
    • Method Detail

      • draw

        public void draw(java.awt.Graphics g)
        Overrides:
        draw 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.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.