All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ij.gui.Roi

java.lang.Object
   |
   +----ij.gui.Roi

public class Roi
extends Object
implements Cloneable
A rectangular region of interest


Variable Index

 o clipboard
 o clipHeight
 o clipWidth
 o clipX
 o clipY
 o constrain
 o CONSTRUCTING
 o FREELINE
 o FREEROI
 o ic
 o imp
 o LINE
 o MOVING
 o NORMAL
 o oldHeight
 o oldWidth
 o oldX
 o oldY
 o OVAL
 o POLYGON
 o POLYLINE
 o previousRoi
 o RECTANGLE
 o RESIZING
 o type
 o xMax
 o yMax

Constructor Index

 o Roi(int, int, ImagePlus)
 o Roi(int, int, int, int, ImagePlus)

Method Index

 o abortPaste()
 o clone()
Returns a copy of this roi.
 o contains(int, int)
 o draw(Graphics)
 o drawPixels()
 o endPaste()
 o getAngle(int, int, int, int)
Returns the angle in degrees between the specified line and a horizontal line.
 o getBoundingRect()
 o getLength()
Returns the perimeter length.
 o getMask()
 o getState()
 o getType()
 o grow(int, int)
 o move(int)
Nudge ROI one pixel on arrow key press.
 o setImage(ImagePlus)
 o setLocation(int, int)
 o showStatus()
 o updateClipRect()

Variables

 o CONSTRUCTING
 public static final int CONSTRUCTING
 o MOVING
 public static final int MOVING
 o RESIZING
 public static final int RESIZING
 o NORMAL
 public static final int NORMAL
 o RECTANGLE
 public static final int RECTANGLE
 o OVAL
 public static final int OVAL
 o POLYGON
 public static final int POLYGON
 o FREEROI
 public static final int FREEROI
 o LINE
 public static final int LINE
 o POLYLINE
 public static final int POLYLINE
 o FREELINE
 public static final int FREELINE
 o previousRoi
 public static Roi previousRoi
 o type
 protected int type
 o xMax
 protected int xMax
 o yMax
 protected int yMax
 o imp
 protected ImagePlus imp
 o ic
 protected ImageCanvas ic
 o oldX
 protected int oldX
 o oldY
 protected int oldY
 o oldWidth
 protected int oldWidth
 o oldHeight
 protected int oldHeight
 o clipX
 protected int clipX
 o clipY
 protected int clipY
 o clipWidth
 protected int clipWidth
 o clipHeight
 protected int clipHeight
 o clipboard
 protected ImagePlus clipboard
 o constrain
 protected boolean constrain

Constructors

 o Roi
 public Roi(int x,
            int y,
            int width,
            int height,
            ImagePlus imp)
 o Roi
 public Roi(int x,
            int y,
            ImagePlus imp)

Methods

 o setLocation
 public void setLocation(int x,
                         int y)
 o setImage
 public void setImage(ImagePlus imp)
 o getType
 public int getType()
 o getState
 public int getState()
 o getLength
 public double getLength()
Returns the perimeter length.

 o getBoundingRect
 public Rectangle getBoundingRect()
 o clone
 public synchronized Object clone()
Returns a copy of this roi. See Thinking is Java by Bruce Eckel (www.eckelobjects.com) for a good description of object cloning.

Overrides:
clone in class Object
 o grow
 protected void grow(int xNew,
                     int yNew)
 o move
 public void move(int key)
Nudge ROI one pixel on arrow key press.

 o updateClipRect
 protected void updateClipRect()
 o draw
 public void draw(Graphics g)
 o drawPixels
 public void drawPixels()
 o contains
 public boolean contains(int x,
                         int y)
 o showStatus
 protected void showStatus()
 o getMask
 public int[] getMask()
 o endPaste
 public void endPaste()
 o abortPaste
 public void abortPaste()
 o getAngle
 public double getAngle(int x1,
                        int y1,
                        int x2,
                        int y2)
Returns the angle in degrees between the specified line and a horizontal line.


All Packages  Class Hierarchy  This Package  Previous  Next  Index