ij.gui
Class RotatedRectRoi
- java.lang.Object
-
- ij.gui.Roi
-
- ij.gui.PolygonRoi
-
- ij.gui.RotatedRectRoi
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.awt.Point>
public class RotatedRectRoi extends PolygonRoi
This class implements the rotated rectangle 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 RotatedRectRoi(double x1, double y1, double x2, double y2, double rectWidth)RotatedRectRoi(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[]getParams()Returns x1, y1, x2, y2 and width 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, getLength, 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, getFeretValues, 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
-
RotatedRectRoi
public RotatedRectRoi(double x1, double y1, double x2, double y2, double rectWidth)
-
RotatedRectRoi
public RotatedRectRoi(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
-
getParams
public double[] getParams()
Returns x1, y1, x2, y2 and width as a 5 element array.
-
subPixelResolution
public boolean subPixelResolution()
Always returns true.- Overrides:
subPixelResolutionin classPolygonRoi
-
-
DMelt 3.0 © DataMelt by jWork.ORG