|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ij.gui.Roi
A rectangular region of interest and superclass for the other ROI classes.
| Field Summary | |
static int |
CONSTRUCTING
|
static int |
FREELINE
|
static int |
FREEROI
|
static int |
HANDLE_SIZE
|
static int |
LINE
|
static int |
MOVING
|
static int |
NORMAL
|
static int |
OVAL
|
static int |
POLYGON
|
static int |
POLYLINE
|
static Roi |
previousRoi
|
static int |
RECTANGLE
|
static int |
RESIZING
|
static int |
TRACED_ROI
|
| Constructor Summary | |
Roi(int x,
int y,
ImagePlus imp)
Starts the process of creating a user-defined rectangular Roi. |
|
Roi(int x,
int y,
int width,
int height,
ImagePlus imp)
Creates a new rectangular Roi. |
|
| Method Summary | |
void |
abortPaste()
|
java.lang.Object |
clone()
Returns a copy of this roi. |
boolean |
contains(int x,
int y)
|
void |
draw(java.awt.Graphics g)
|
void |
drawPixels()
|
void |
endPaste()
|
double |
getAngle(int x1,
int y1,
int x2,
int y2)
Returns the angle in degrees between the specified line and a horizontal line. |
java.awt.Rectangle |
getBoundingRect()
|
static java.awt.Color |
getColor()
Returns the color used for drawing ROI outlines. |
double |
getLength()
Returns the perimeter length. |
int[] |
getMask()
|
int |
getState()
|
int |
getType()
|
void |
nudge(int key)
Nudge ROI one pixel on arrow key press. |
void |
nudgeCorner(int key)
Nudge lower right corner of rectangular and oval ROIs by one pixel based on arrow key press. |
static void |
setColor(java.awt.Color c)
Sets the color used for ROI outline to the specified value. |
void |
setImage(ImagePlus imp)
|
void |
setLocation(int x,
int y)
|
static void |
setPasteMode(int transferMode)
Sets the Paste transfer mode. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int CONSTRUCTING
public static final int MOVING
public static final int RESIZING
public static final int NORMAL
public static final int RECTANGLE
public static final int OVAL
public static final int POLYGON
public static final int FREEROI
public static final int TRACED_ROI
public static final int LINE
public static final int POLYLINE
public static final int FREELINE
public static final int HANDLE_SIZE
public static Roi previousRoi
| Constructor Detail |
public Roi(int x,
int y,
int width,
int height,
ImagePlus imp)
public Roi(int x,
int y,
ImagePlus imp)
| Method Detail |
public void setLocation(int x,
int y)
public void setImage(ImagePlus imp)
public int getType()
public int getState()
public double getLength()
public java.awt.Rectangle getBoundingRect()
public java.lang.Object clone()
public void nudge(int key)
public void nudgeCorner(int key)
public void draw(java.awt.Graphics g)
public void drawPixels()
public boolean contains(int x,
int y)
public int[] getMask()
public void endPaste()
public void abortPaste()
public double getAngle(int x1,
int y1,
int x2,
int y2)
public static java.awt.Color getColor()
public static void setColor(java.awt.Color c)
public static void setPasteMode(int transferMode)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||