Serializable, Cloneable, Iterable<Point>public class OvalRoi extends Roi
ANGLE, asp_bk, aspect, cachedMask, center, clipboard, clipHeight, clipWidth, clipX, clipY, COMPOSITE, constrain, CONSTRUCTING, defaultFillColor, fillColor, flattenScale, FREELINE, FREEROI, HANDLE_SIZE, handleColor, ic, ignoreClipRect, imp, instanceColor, LINE, lineWidth, mag, MOVING, MOVING_HANDLE, 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 | Description |
|---|---|
OvalRoi(double x,
double y,
double width,
double height) |
Creates an OvalRoi using double arguments.
|
OvalRoi(int x,
int y,
int width,
int height) |
Creates an OvalRoi.
|
OvalRoi(int x,
int y,
int width,
int height,
ImagePlus imp) |
Deprecated.
|
OvalRoi(int x,
int y,
ImagePlus imp) |
Starts the process of creating a user-defined OvalRoi.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
contains(int ox,
int oy) |
Tests if the specified point is inside the boundary of this OvalRoi.
|
void |
draw(Graphics g) |
|
void |
drawPixels(ImageProcessor ip) |
Draws an outline of this OvalRoi on the image.
|
FloatPolygon |
getFloatPolygon() |
Returns this OvalRoi as a FloatPolygon.
|
double |
getLength() |
Returns the perimeter length.
|
ImageProcessor |
getMask() |
Always returns null for rectangular Roi's
|
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) |
|
int |
size() |
Returns the number of points in this selection; equivalent to getPolygon().npoints.
|
forEach, spliteratorfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitabortPaste, addRoiListener, clipRectMargin, clone, copyAttributes, drawOverlay, drawPixels, enableSubPixelResolution, endPaste, equals, getAngle, getAngle, getBoundingRect, getBounds, getColor, getContainedFloatPoints, getContainedPoints, getContourCentroid, getConvexHull, getCornerDiameter, getCPosition, getCurrentPasteMode, getDebugInfo, getDefaultFillColor, getDrawOffset, getFeretsDiameter, getFeretValues, getFillColor, getFloatAngle, getFloatBounds, getFloatHeight, getFloatWidth, getHashCode, getImage, getImageID, getInterpolatedPolygon, getInterpolatedPolygon, getInterpolatedPolygon, getMagnification, getName, getPasteMode, getPosition, getProperties, getProperty, getPropertyCount, getPrototypeOverlay, getRotationCenter, getRoundRectArcSize, getScaledStroke, getState, getStatistics, getStroke, getStrokeColor, getStrokeWidth, getTPosition, getType, getTypeAsString, getXBase, getYBase, getZPosition, grow, handleMouseDown, handleMouseDrag, handleMouseUp, hasHyperStackPosition, isActiveOverlayRoi, isArea, isCursor, isDrawingTool, isLine, isVisible, iterator, lineCircleIntersection, mouseDownInHandle, mouseDragged, mouseMoved, mouseReleased, notifyListeners, nudge, nudgeCorner, removeRoiListener, screenX, screenXD, screenY, screenYD, setColor, setCornerDiameter, setDefaultFillColor, setDrawOffset, setFillColor, setFlattenScale, setIgnoreClipRect, setImage, setInstanceColor, setIsCursor, setLineWidth, setLocation, setLocation, setName, setNonScalable, setPasteMode, setPosition, setPosition, setPosition, setProperties, setProperty, setPrototypeOverlay, setRotationCenter, setRoundRectArcSize, setStroke, setStrokeColor, setStrokeWidth, setStrokeWidth, showStatus, startPaste, subPixelResolution, temporarilyHide, toFloat, toInt, toInt, toIntR, toString, update, updateClipRect, updateWideLinepublic OvalRoi(int x,
int y,
int width,
int height)
public OvalRoi(double x,
double y,
double width,
double height)
public OvalRoi(int x,
int y,
ImagePlus imp)
public OvalRoi(int x,
int y,
int width,
int height,
ImagePlus imp)
protected void moveHandle(int sx,
int sy)
moveHandle in class Roipublic void drawPixels(ImageProcessor ip)
drawPixels in class RoiImageProcessor.setColor(java.awt.Color),
ImageProcessor.setLineWidth(int)public Polygon getPolygon()
getPolygon in class RoiImageProcessor.setRoi(java.awt.Rectangle),
ImageProcessor.drawPolygon(java.awt.Polygon),
ImageProcessor.fillPolygon(java.awt.Polygon)public FloatPolygon getFloatPolygon()
getFloatPolygon in class Roipublic int size()
public boolean contains(int ox,
int oy)
public int isHandle(int sx,
int sy)
public ImageProcessor getMask()
Roi