public class EllipseRoi extends PolygonRoi
maxPoints, nPoints, splinePoints, xp, xp2, xpf, xSpline, yp, yp2, ypf, ySplineANGLE, asp_bk, aspect, cachedMask, center, clipboard, clipHeight, clipWidth, clipX, clipY, COMPOSITE, constrain, CONSTRUCTING, defaultFillColor, fillColor, 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 and Description |
|---|
EllipseRoi(double x1,
double y1,
double x2,
double y2,
double aspectRatio) |
EllipseRoi(int sx,
int sy,
ImagePlus imp) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.awt.Graphics g) |
double[] |
getFeretValues()
Caculates "Feret" (maximum caliper width), "FeretAngle"
and "MinFeret" (minimum caliper width), "FeretX" and "FeretY".
|
double |
getLength()
Returns the perimeter of this ellipse.
|
double[] |
getParams()
Returns x1, y1, x2, y2 and aspectRatio as a 5 element array.
|
protected void |
grow(int sx,
int sy) |
protected void |
handleMouseUp(int screenX,
int screenY)
With segmented selections, ignore first mouse up and finalize
when user double-clicks, control-clicks or clicks in start box.
|
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) |
boolean |
subPixelResolution()
Always returns true.
|
addOffset, clipRectMargin, clone, contains, deleteHandle, drawPixels, enableSubPixelResolution, exitConstructingMode, fitSpline, fitSpline, fitSplineForStraightening, getAngle, getConvexHull, getDebugInfo, getDrawOffset, getFloatPolygon, getInterpolatedPolygon, getMask, getNCoordinates, getNonSplineCoordinates, getNonSplineFloatPolygon, getPolygon, getUncalibratedLength, getXCoordinates, getYCoordinates, isSplineFit, mouseDownInHandle, mouseMoved, removeSplineFit, setDrawOffset, setLocation, updatePolygon, wipeBackabortPaste, addRoiListener, copyAttributes, drawOverlay, drawPixels, endPaste, equals, getAngle, getBoundingRect, getBounds, getColor, getCornerDiameter, getCPosition, getCurrentPasteMode, getDefaultFillColor, getFeretsDiameter, getFillColor, getFloatAngle, getFloatBounds, getFloatHeight, getFloatWidth, getHashCode, getImage, getImageID, getInterpolatedPolygon, getInterpolatedPolygon, getMagnification, getName, getPasteMode, getPosition, getProperties, getProperty, getPropertyCount, getPrototypeOverlay, getRoundRectArcSize, getScaledStroke, getState, getStroke, getStrokeColor, getStrokeWidth, getTPosition, getType, getTypeAsString, getXBase, getYBase, getZPosition, handleMouseDown, handleMouseDrag, isActiveOverlayRoi, isArea, isDrawingTool, isLine, isVisible, lineCircleIntersection, mouseDragged, mouseReleased, notifyListeners, nudge, nudgeCorner, removeRoiListener, screenX, screenXD, screenY, screenYD, setColor, setCornerDiameter, setDefaultFillColor, setFillColor, setIgnoreClipRect, setImage, setInstanceColor, setLineWidth, setLocation, setName, setNonScalable, setPasteMode, setPosition, setPosition, setProperties, setProperty, setPrototypeOverlay, setRoundRectArcSize, setStroke, setStrokeColor, setStrokeWidth, setStrokeWidth, showStatus, startPaste, temporarilyHide, toFloat, toInt, toInt, toIntR, toString, update, updateClipRect, updateWideLinepublic EllipseRoi(double x1,
double y1,
double x2,
double y2,
double aspectRatio)
public EllipseRoi(int sx,
int sy,
ImagePlus imp)
public void draw(java.awt.Graphics g)
draw in class PolygonRoiprotected void grow(int sx,
int sy)
grow in class PolygonRoiprotected void handleMouseUp(int screenX,
int screenY)
PolygonRoihandleMouseUp in class PolygonRoiprotected void moveHandle(int sx,
int sy)
moveHandle in class PolygonRoipublic int isHandle(int sx,
int sy)
PolygonRoiisHandle in class PolygonRoipublic double getLength()
getLength in class PolygonRoipublic double[] getParams()
public double[] getFeretValues()
RoigetFeretValues in class Roipublic boolean subPixelResolution()
subPixelResolution in class PolygonRoi