|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.gui.Roi
public class Roi
A rectangular region of interest and superclass for the other ROI classes.
Field Summary | |
---|---|
protected ImagePlus |
clipboard
|
protected int |
clipHeight
|
protected int |
clipWidth
|
protected int |
clipX
|
protected int |
clipY
|
protected boolean |
constrain
|
static int |
CONSTRUCTING
|
static int |
FREELINE
|
static int |
FREEROI
|
static int |
HANDLE_SIZE
|
protected ImageCanvas |
ic
|
protected ImagePlus |
imp
|
static int |
LINE
|
static int |
MOVING
|
static int |
NORMAL
|
protected int |
oldHeight
|
protected int |
oldWidth
|
protected int |
oldX
|
protected int |
oldY
|
static int |
OVAL
|
protected static int |
pasteMode
|
static int |
POLYGON
|
static int |
POLYLINE
|
static Roi |
previousRoi
|
static int |
RECTANGLE
|
static int |
RESIZING
|
protected static java.awt.Color |
ROIColor
|
static int |
TRACED_ROI
|
protected int |
type
|
protected boolean |
updateFullWindow
|
protected int |
xMax
|
protected int |
yMax
|
Constructor Summary | |
---|---|
Roi(int x,
int y,
ImagePlus imp)
|
|
Roi(int x,
int y,
int width,
int height,
ImagePlus imp)
|
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()
|
protected void |
grow(int xNew,
int yNew)
|
protected void |
handleMouseDown(int sx,
int sy)
|
protected void |
handleMouseDrag(int sx,
int sy,
boolean constrain)
|
protected void |
handleMouseUp(int screenX,
int screenY)
|
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. |
protected void |
showStatus()
|
java.lang.String |
toString()
|
protected void |
updateClipRect()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, 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
protected static java.awt.Color ROIColor
protected static int pasteMode
protected int type
protected int xMax
protected int yMax
protected ImagePlus imp
protected ImageCanvas ic
protected int oldX
protected int oldY
protected int oldWidth
protected int oldHeight
protected int clipX
protected int clipY
protected int clipWidth
protected int clipHeight
protected ImagePlus clipboard
protected boolean constrain
protected boolean updateFullWindow
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()
clone
in class java.lang.Object
protected void grow(int xNew, int yNew)
public void nudge(int key)
public void nudgeCorner(int key)
protected void updateClipRect()
protected void handleMouseDrag(int sx, int sy, boolean constrain)
public void draw(java.awt.Graphics g)
public void drawPixels()
public boolean contains(int x, int y)
protected void handleMouseDown(int sx, int sy)
protected void handleMouseUp(int screenX, int screenY)
protected void showStatus()
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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |