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, java.lang.Iterable<java.awt.Point>
public class EllipseRoi extends PolygonRoi
This class implements the ellipse selection tool.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class ij.gui.Roi
ANGLE, COMPOSITE, CONSTRUCTING, FREELINE, FREEROI, HANDLE_SIZE, LINE, MOVING, MOVING_HANDLE, NORMAL, NOT_PASTING, onePixelWide, OVAL, POINT, POLYGON, POLYLINE, previousRoi, RECTANGLE, RESIZING, TRACED_ROI
-
-
Constructor Summary
Constructors Constructor and Description EllipseRoi(double x1, double y1, double x2, double y2, double aspectRatio)EllipseRoi(int sx, int sy, ImagePlus imp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddraw(java.awt.Graphics g)double[]getFeretValues()Caculates "Feret" (maximum caliper width), "FeretAngle" and "MinFeret" (minimum caliper width), "FeretX" and "FeretY".doublegetLength()Returns the perimeter of this ellipse.double[]getParams()Returns x1, y1, x2, y2 and aspectRatio as a 5 element array.intisHandle(int sx, int sy)Returns a handle number if the specified screen coordinates are inside or near a handle, otherwise returns -1.booleansubPixelResolution()Always returns true.-
Methods inherited from class ij.gui.PolygonRoi
clone, contains, deleteHandle, drawPixels, enableSubPixelResolution, exitConstructingMode, fitSpline, fitSpline, fitSplineForStraightening, getAngle, getConvexHull, getDebugInfo, getDrawOffset, getFloatPolygon, getInterpolatedPolygon, getMask, getNCoordinates, getNonSplineCoordinates, getNonSplineFloatPolygon, getPolygon, getUncalibratedLength, getXCoordinates, getYCoordinates, isSplineFit, mouseMoved, removeSplineFit, setDrawOffset, setLocation
-
Methods inherited from class ij.gui.Roi
abortPaste, addRoiListener, copyAttributes, drawOverlay, drawPixels, endPaste, equals, getAngle, getBoundingRect, getBounds, getColor, getContainedFloatPoints, getContainedPoints, getContourCentroid, getCornerDiameter, getCPosition, getCurrentPasteMode, getDefaultFillColor, getFeretsDiameter, getFillColor, getFloatAngle, getFloatBounds, getFloatHeight, getFloatWidth, getHashCode, getImage, getImageID, getInterpolatedPolygon, getName, getPasteMode, getPosition, getProperties, getProperty, getPropertyCount, getPrototypeOverlay, getRotationCenter, getRoundRectArcSize, getState, getStatistics, getStroke, getStrokeColor, getStrokeWidth, getTPosition, getType, getTypeAsString, getXBase, getYBase, getZPosition, hasHyperStackPosition, isActiveOverlayRoi, isArea, isCursor, isDrawingTool, isLine, isVisible, iterator, lineCircleIntersection, mouseDragged, mouseReleased, notifyListeners, nudge, nudgeCorner, removeRoiListener, setColor, setCornerDiameter, setDefaultFillColor, setFillColor, setFlattenScale, setIgnoreClipRect, setImage, setInstanceColor, setIsCursor, setLineWidth, setLocation, setName, setNonScalable, setPasteMode, setPosition, setPosition, setPosition, setProperties, setProperty, setPrototypeOverlay, setRotationCenter, setRoundRectArcSize, setStroke, setStrokeColor, setStrokeWidth, setStrokeWidth, startPaste, temporarilyHide, toFloat, toInt, toInt, toIntR, toString, update, updateWideLine
-
-
-
-
Constructor Detail
-
EllipseRoi
public EllipseRoi(double x1, double y1, double x2, double y2, double aspectRatio)
-
EllipseRoi
public EllipseRoi(int sx, int sy, ImagePlus imp)
-
-
Method Detail
-
draw
public void draw(java.awt.Graphics g)
- Overrides:
drawin classPolygonRoi
-
isHandle
public int isHandle(int sx, int sy)Description copied from class:PolygonRoiReturns a handle number if the specified screen coordinates are inside or near a handle, otherwise returns -1.- Overrides:
isHandlein classPolygonRoi
-
getLength
public double getLength()
Returns the perimeter of this ellipse.- Overrides:
getLengthin classPolygonRoi
-
getParams
public double[] getParams()
Returns x1, y1, x2, y2 and aspectRatio as a 5 element array.
-
getFeretValues
public double[] getFeretValues()
Description copied from class:RoiCaculates "Feret" (maximum caliper width), "FeretAngle" and "MinFeret" (minimum caliper width), "FeretX" and "FeretY".- Overrides:
getFeretValuesin classRoi
-
subPixelResolution
public boolean subPixelResolution()
Always returns true.- Overrides:
subPixelResolutionin classPolygonRoi
-
-
DMelt 3.0 © DataMelt by jWork.ORG