ij.gui
Class OvalRoi
- java.lang.Object
-
- ij.gui.Roi
-
- ij.gui.OvalRoi
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.awt.Point>
public class OvalRoi extends Roi
Oval region of interest- 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 OvalRoi(double x, double y, double width, double height)Creates an OvalRoi using double arguments.OvalRoi(int x, int y, ImagePlus imp)Starts the process of creating a user-defined OvalRoi.OvalRoi(int x, int y, int width, int height)Creates an OvalRoi.OvalRoi(int x, int y, int width, int height, ImagePlus imp)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancontains(int ox, int oy)Tests if the specified point is inside the boundary of this OvalRoi.voiddraw(java.awt.Graphics g)voiddrawPixels(ImageProcessor ip)Draws an outline of this OvalRoi on the image.FloatPolygongetFloatPolygon()Returns this OvalRoi as a FloatPolygon.doublegetLength()Returns the perimeter length.ImageProcessorgetMask()Always returns null for rectangular Roi'sjava.awt.PolygongetPolygon()Returns this OvalRoi as a Polygon.intisHandle(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.Roi
abortPaste, addRoiListener, 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, 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, mouseMoved, mouseReleased, notifyListeners, nudge, nudgeCorner, removeRoiListener, 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, startPaste, subPixelResolution, temporarilyHide, toFloat, toInt, toInt, toIntR, toString, update, updateWideLine
-
-
-
-
Constructor Detail
-
OvalRoi
public OvalRoi(int x, int y, int width, int height)Creates an OvalRoi.
-
OvalRoi
public OvalRoi(double x, double y, double width, double height)Creates an OvalRoi using double arguments.
-
OvalRoi
public OvalRoi(int x, int y, ImagePlus imp)Starts the process of creating a user-defined OvalRoi.
-
OvalRoi
public OvalRoi(int x, int y, int width, int height, ImagePlus imp)Deprecated.
-
-
Method Detail
-
drawPixels
public void drawPixels(ImageProcessor ip)
Draws an outline of this OvalRoi on the image.- Overrides:
drawPixelsin classRoi- See Also:
ImageProcessor.setColor(java.awt.Color),ImageProcessor.setLineWidth(int)
-
getPolygon
public java.awt.Polygon getPolygon()
Returns this OvalRoi as a Polygon.- Overrides:
getPolygonin classRoi- See Also:
ImageProcessor.setRoi(java.awt.Rectangle),ImageProcessor.drawPolygon(java.awt.Polygon),ImageProcessor.fillPolygon(java.awt.Polygon)
-
getFloatPolygon
public FloatPolygon getFloatPolygon()
Returns this OvalRoi as a FloatPolygon.- Overrides:
getFloatPolygonin classRoi
-
contains
public boolean contains(int ox, int oy)Tests if the specified point is inside the boundary of this OvalRoi. Authors: Barry DeZonia and Michael Schmid
-
isHandle
public int isHandle(int sx, int sy)Returns a handle number if the specified screen coordinates are inside or near a handle, otherwise returns -1.
-
getMask
public ImageProcessor getMask()
Description copied from class:RoiAlways returns null for rectangular Roi's
-
-
DMelt 3.0 © DataMelt by jWork.ORG