ij.gui
Class EllipseRoi
java.lang.Object
ij.gui.Roi
ij.gui.PolygonRoi
ij.gui.EllipseRoi
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class EllipseRoi
- extends PolygonRoi
Elliptical region of interest.
- See Also:
- Serialized Form
Fields inherited from class ij.gui.PolygonRoi |
maxPoints, nPoints, splinePoints, xp, xp2, xpf, xSpline, yp, yp2, ypf, ySpline |
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, hide, 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 |
Method Summary |
void |
draw(java.awt.Graphics g)
|
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)
|
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 ij.gui.PolygonRoi |
addOffset, clipRectMargin, clone, contains, drawPixels, exitConstructingMode, fitSpline, fitSpline, fitSplineForStraightening, getAngle, getConvexHull, getFloatPolygon, getMask, getNCoordinates, getNonSplineCoordinates, getPolygon, getUncalibratedLength, getXCoordinates, getYCoordinates, isSplineFit, mouseDownInHandle, removeSplineFit, updatePolygon |
Methods inherited from class ij.gui.Roi |
abortPaste, copyAttributes, drawOverlay, drawPixels, endPaste, equals, getAngle, getBoundingRect, getBounds, getColor, getCurrentPasteMode, getDefaultFillColor, getFeretsDiameter, getFeretValues, getFillColor, getImageID, getName, getPasteMode, getRoundRectArcSize, getScaledStroke, getState, getStroke, getStrokeColor, getStrokeWidth, getType, getTypeAsString, handleMouseDown, handleMouseDrag, isArea, isDrawingTool, isLine, isVisible, nudge, nudgeCorner, setColor, setDefaultFillColor, setFillColor, setImage, setInstanceColor, setLineWidth, setLocation, setName, setNonScalable, setPasteMode, setRoundRectArcSize, setStroke, setStrokeColor, setStrokeWidth, showStatus, startPaste, temporarilyHide, toString, update, updateClipRect, updateWideLine |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EllipseRoi
public EllipseRoi(double x1,
double y1,
double x2,
double y2,
double aspectRatio)
EllipseRoi
public EllipseRoi(int sx,
int sy,
ImagePlus imp)
draw
public void draw(java.awt.Graphics g)
- Overrides:
draw
in class PolygonRoi
grow
protected void grow(int sx,
int sy)
- Overrides:
grow
in class PolygonRoi
handleMouseUp
protected void handleMouseUp(int screenX,
int screenY)
- Overrides:
handleMouseUp
in class PolygonRoi
moveHandle
protected void moveHandle(int sx,
int sy)
- Overrides:
moveHandle
in class PolygonRoi
isHandle
public int isHandle(int sx,
int sy)
- Description copied from class:
PolygonRoi
- Returns a handle number if the specified screen coordinates are
inside or near a handle, otherwise returns -1.
- Overrides:
isHandle
in class PolygonRoi
getLength
public double getLength()
- Returns the perimeter of this ellipse.
- Overrides:
getLength
in class PolygonRoi
getParams
public double[] getParams()
- Returns x1, y1, x2, y2 and aspectRatio as a 5 element array.