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
-
clipboard
-
-
clipHeight
-
-
clipWidth
-
-
clipX
-
-
clipY
-
-
constrain
-
-
CONSTRUCTING
-
-
FREELINE
-
-
FREEROI
-
-
ic
-
-
imp
-
-
LINE
-
-
MOVING
-
-
NORMAL
-
-
oldHeight
-
-
oldWidth
-
-
oldX
-
-
oldY
-
-
OVAL
-
-
POLYGON
-
-
POLYLINE
-
-
previousRoi
-
-
RECTANGLE
-
-
RESIZING
-
-
type
-
-
xMax
-
-
yMax
-
-
Roi(int, int, ImagePlus)
-
-
Roi(int, int, int, int, ImagePlus)
-
-
abortPaste()
-
-
clone()
- Returns a copy of this roi.
-
contains(int, int)
-
-
draw(Graphics)
-
-
drawPixels()
-
-
endPaste()
-
-
getAngle(int, int, int, int)
- Returns the angle in degrees between the specified line and a horizontal line.
-
getBoundingRect()
-
-
getLength()
- Returns the perimeter length.
-
getMask()
-
-
getState()
-
-
getType()
-
-
grow(int, int)
-
-
move(int)
- Nudge ROI one pixel on arrow key press.
-
setImage(ImagePlus)
-
-
setLocation(int, int)
-
-
showStatus()
-
-
updateClipRect()
-
CONSTRUCTING
public static final int CONSTRUCTING
MOVING
public static final int MOVING
RESIZING
public static final int RESIZING
NORMAL
public static final int NORMAL
RECTANGLE
public static final int RECTANGLE
OVAL
public static final int OVAL
POLYGON
public static final int POLYGON
FREEROI
public static final int FREEROI
LINE
public static final int LINE
POLYLINE
public static final int POLYLINE
FREELINE
public static final int FREELINE
previousRoi
public static Roi previousRoi
type
protected int type
xMax
protected int xMax
yMax
protected int yMax
imp
protected ImagePlus imp
ic
protected ImageCanvas ic
oldX
protected int oldX
oldY
protected int oldY
oldWidth
protected int oldWidth
oldHeight
protected int oldHeight
clipX
protected int clipX
clipY
protected int clipY
clipWidth
protected int clipWidth
clipHeight
protected int clipHeight
clipboard
protected ImagePlus clipboard
constrain
protected boolean constrain
Roi
public Roi(int x,
int y,
int width,
int height,
ImagePlus imp)
Roi
public Roi(int x,
int y,
ImagePlus imp)
setLocation
public void setLocation(int x,
int y)
setImage
public void setImage(ImagePlus imp)
getType
public int getType()
getState
public int getState()
getLength
public double getLength()
- Returns the perimeter length.
getBoundingRect
public Rectangle getBoundingRect()
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
grow
protected void grow(int xNew,
int yNew)
move
public void move(int key)
- Nudge ROI one pixel on arrow key press.
updateClipRect
protected void updateClipRect()
draw
public void draw(Graphics g)
drawPixels
public void drawPixels()
contains
public boolean contains(int x,
int y)
showStatus
protected void showStatus()
getMask
public int[] getMask()
endPaste
public void endPaste()
abortPaste
public void abortPaste()
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