|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectij.gui.Roi
ij.gui.OvalRoi
public class OvalRoi
Oval region of interest
| Field Summary |
|---|
| Fields inherited from class ij.gui.Roi |
|---|
ANGLE, asp_bk, aspect, cachedMask, center, clipboard, clipHeight, clipWidth, clipX, clipY, COMPOSITE, constrain, CONSTRUCTING, defaultFillColor, fillColor, FREELINE, FREEROI, HANDLE_SIZE, handleColor, ic, imp, instanceColor, LINE, lineWidth, mag, MOVING, MOVING_HANDLE, name, nonScalable, NORMAL, NOT_PASTING, oldHeight, oldWidth, oldX, oldY, onePixelWide, OVAL, overlay, pasteMode, POINT, POLYGON, POLYLINE, previousRoi, RECTANGLE, RESIZING, ROIColor, stroke, strokeColor, TRACED_ROI, type, updateFullWindow, wideLine, xMax, yMax |
| Constructor Summary | |
|---|---|
OvalRoi(int x,
int y,
ImagePlus imp)
Starts the process of creating a user-defined OvalRoi. |
|
OvalRoi(int x,
int y,
int width,
int height)
Creates a new OvalRoi. |
|
OvalRoi(int x,
int y,
int width,
int height,
ImagePlus imp)
Deprecated. |
|
| Method Summary | |
|---|---|
boolean |
contains(int x,
int y)
Tests if the specified point is inside the boundary of this OvalRoi. |
void |
draw(java.awt.Graphics g)
|
void |
drawPixels(ImageProcessor ip)
Draws an outline of this OvalRoi on the image. |
double |
getLength()
Returns the perimeter length. |
ImageProcessor |
getMask()
Always returns null for rectangular Roi's |
java.awt.Polygon |
getPolygon()
Returns this OvalRoi as a polygon. |
int |
isHandle(int sx,
int sy)
Returns a handle number if the specified screen coordinates are inside or near a handle, otherwise returns -1. |
protected void |
moveHandle(int sx,
int sy)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OvalRoi(int x,
int y,
int width,
int height)
public OvalRoi(int x,
int y,
ImagePlus imp)
public OvalRoi(int x,
int y,
int width,
int height,
ImagePlus imp)
| Method Detail |
|---|
protected void moveHandle(int sx,
int sy)
moveHandle in class Roipublic void draw(java.awt.Graphics g)
draw in class Roipublic void drawPixels(ImageProcessor ip)
drawPixels in class RoiImageProcessor.setColor(java.awt.Color),
ImageProcessor.setLineWidth(int)public java.awt.Polygon getPolygon()
getPolygon in class RoiImageProcessor.setRoi(java.awt.Rectangle),
ImageProcessor.drawPolygon(java.awt.Polygon),
ImageProcessor.fillPolygon(java.awt.Polygon)
public boolean contains(int x,
int y)
contains in class Roi
public int isHandle(int sx,
int sy)
isHandle in class Roipublic ImageProcessor getMask()
Roi
getMask in class Roipublic double getLength()
getLength in class Roi
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||