ij.gui
Class EllipseRoi
java.lang.Object
ij.gui.AbstractRoi
ij.gui.AttributeRoi
ij.gui.Roi
ij.gui.PolygonRoi
ij.gui.EllipseRoi
- All Implemented Interfaces:
- RoiBeans, RoiConstance, java.io.Serializable, java.lang.Cloneable
public class EllipseRoi
- extends PolygonRoi
Elliptical region of interest.
- See Also:
- Serialized Form
Fields inherited from interface ij.gui.RoiConstance |
ADD_TO_ROI, ANGLE, COMPOSITE, CONSTRUCTING, DRAW_HANDLE, DUPLICATE_HANDLE, EVT_HANDLE_SIZE, FILL_HANDLE, FREELINE, FREEROI, HANDLE_SIZE, LINE, MAG_HANDLE, MOVING, MOVING_HANDLE, MOVING_ROUNDRECT_HANDLE, NO_MODS, NORMAL, NOT_PASTING, OVAL, POINT, POLYGON, POLYLINE, RECTANGLE, RESIZING, SUBTRACT_FROM_ROI, TRACED_ROI, UNDO_HANDLE |
Method Summary |
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. |
int |
isHandle(int sx,
int sy)
Returns a handle number if the specified screen coordinates are
inside or near a handle, otherwise returns -1. |
Methods inherited from class ij.gui.PolygonRoi |
clone, contains, deleteHandle, drawPixels, exitConstructingMode, fitSpline, fitSpline, fitSplineForStraightening, getAngle, getConvexHull, getDrawOffset, getFloatPolygon, getMask, getNCoordinates, getNonSplineCoordinates, getNonSplineFloatCoordinates, getPolygon, getUncalibratedLength, getXCoordinates, getYCoordinates, isSplineFit, removeSplineFit, setDrawOffset, subPixelResolution |
Methods inherited from class ij.gui.Roi |
abortPaste, appRoiHandle, drawfillOverlay, drawHandle, drawOverlay, drawPixels, drawPixels, drawRoiHandle, drawStroke, endPaste, equals, fillRoiHandle, getBoundingRect, getBounds, getCornerDiameter, getCurrentPasteMode, getFloatBounds, getHandleSize, getPasteMode, getPrototypeOverlay, getRoundRectArcSize, getState, getTypeAsString, isArea, isDrawingTool, isLine, isVisible, magRoiHandle, nudge, nudgeCorner, setCornerDiameter, setImage, setInstanceColor, setLineWidth, setLocation, setNonScalable, setPasteMode, setPrototypeOverlay, setRoundRectArcSize, startPaste, temporarilyHide, toFloat, toInt, toInt, toIntR, toString, undoRoiHandle, update, updateWideLine |
Methods inherited from class ij.gui.AttributeRoi |
copyAttributes, getAngle, getColor, getCPosition, getDefaultFillColor, getFeretsDiameter, getFillColor, getImage, getImageID, getName, getPosition, getStroke, getStrokeColor, getStrokeWidth, getTPosition, getType, getZPosition, setColor, setDefaultFillColor, setFillColor, setName, setPosition, setPosition, setStroke, setStrokeColor, setStrokeWidth, setStrokeWidth |
Methods inherited from class java.lang.Object |
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)
- Specified by:
draw
in interface RoiBeans
- Overrides:
draw
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.
- Specified by:
isHandle
in interface RoiBeans
- Overrides:
isHandle
in class PolygonRoi
getLength
public double getLength()
- Returns the perimeter of this ellipse.
- Specified by:
getLength
in interface RoiBeans
- Overrides:
getLength
in class PolygonRoi
getParams
public double[] getParams()
- Returns x1, y1, x2, y2 and aspectRatio as a 5 element array.
getFeretValues
public double[] getFeretValues()
- Description copied from class:
AttributeRoi
- Caculates "Feret" (maximum caliper width), "FeretAngle"
and "MinFeret" (minimum caliper width), "FeretX" and "FeretY".
- Specified by:
getFeretValues
in interface RoiBeans
- Overrides:
getFeretValues
in class AttributeRoi