ij.gui
public class PointRoi extends PolygonRoi
Modifier and Type | Field and Description |
---|---|
static int |
MAX_COUNTERS |
static java.lang.String[] |
sizes |
static java.lang.String[] |
types |
maxPoints, nPoints, splinePoints, xp, xp2, xpf, xSpline, yp, yp2, ypf, ySpline
ANGLE, asp_bk, aspect, cachedMask, center, clipboard, clipHeight, clipWidth, clipX, clipY, COMPOSITE, constrain, CONSTRUCTING, defaultFillColor, fillColor, FREELINE, FREEROI, HANDLE_SIZE, handleColor, ic, ignoreClipRect, imp, instanceColor, LINE, lineWidth, mag, MOVING, MOVING_HANDLE, nonScalable, NORMAL, NOT_PASTING, oldHeight, oldWidth, oldX, oldY, onePixelWide, OVAL, overlay, pasteMode, POINT, POLYGON, POLYLINE, previousRoi, RECTANGLE, RESIZING, ROIColor, stroke, strokeColor, TRACED_ROI, updateFullWindow, wideLine, xMax, yMax
Constructor and Description |
---|
PointRoi(double ox,
double oy)
Creates a new PointRoi using the specified offscreen double coordinates.
|
PointRoi(float[] ox,
float[] oy)
Creates a new PointRoi using the specified float arrays of offscreen coordinates.
|
PointRoi(float[] ox,
float[] oy,
int points)
Creates a new PointRoi using the specified float arrays of offscreen coordinates.
|
PointRoi(FloatPolygon poly)
Creates a new PointRoi from a FloatPolygon.
|
PointRoi(int[] ox,
int[] oy,
int points)
Creates a new PointRoi using the specified int arrays of offscreen coordinates.
|
PointRoi(int ox,
int oy)
Creates a new PointRoi using the specified offscreen int coordinates.
|
PointRoi(int sx,
int sy,
ImagePlus imp)
Creates a new PointRoi using the specified screen coordinates.
|
PointRoi(java.awt.Polygon poly)
Creates a new PointRoi from a Polygon.
|
Modifier and Type | Method and Description |
---|---|
void |
addPoint(double ox,
double oy)
Adds a point to this PointRoi.
|
boolean |
contains(int x,
int y)
Returns true if (x,y) is one of the points in this collection.
|
protected void |
deletePoint(int index) |
void |
displayCounts() |
void |
draw(java.awt.Graphics g)
Draws the points on the image.
|
void |
drawPixels(ImageProcessor ip)
Draws the selection outline on the specified ImageProcessor.
|
int |
getCount(int counter) |
int |
getCounter() |
static java.lang.String[] |
getCounterChoices() |
int[] |
getCounters() |
static java.awt.Color |
getDefaultCrossColor()
Deprecated
|
static java.lang.String |
getDefaultMarkerSize()
Deprecated.
|
static int |
getDefaultSize() |
static int |
getDefaultType() |
ImageProcessor |
getMask()
Always returns null for rectangular Roi's
|
int |
getPointType() |
boolean |
getShowLabels() |
int |
getSize() |
protected void |
handleMouseUp(int sx,
int sy)
With segmented selections, ignore first mouse up and finalize
when user double-clicks, control-clicks or clicks in start box.
|
void |
resetCounters() |
void |
setCounter(int counter) |
void |
setCounters(int[] counters) |
static void |
setDefaultCrossColor(java.awt.Color color)
Deprecated
|
static void |
setDefaultMarkerSize(java.lang.String size)
Deprecated.
|
static void |
setDefaultSize(int index) |
static void |
setDefaultType(int type) |
void |
setHideLabels(boolean hideLabels)
Deprecated.
|
void |
setPointType(int type) |
void |
setShowLabels(boolean showLabels) |
void |
setSize(int index) |
boolean |
subPixelResolution()
Always returns true.
|
PointRoi |
subtractPoints(Roi roi)
Subtract the points that intersect the specified ROI and return
the result.
|
java.lang.String |
toString() |
addOffset, clipRectMargin, clone, deleteHandle, enableSubPixelResolution, exitConstructingMode, fitSpline, fitSpline, fitSplineForStraightening, getAngle, getConvexHull, getDebugInfo, getDrawOffset, getFloatPolygon, getInterpolatedPolygon, getLength, getNCoordinates, getNonSplineCoordinates, getNonSplineFloatPolygon, getPolygon, getUncalibratedLength, getXCoordinates, getYCoordinates, grow, isHandle, isSplineFit, mouseDownInHandle, mouseMoved, moveHandle, removeSplineFit, setDrawOffset, setLocation, updatePolygon, wipeBack
abortPaste, addRoiListener, copyAttributes, drawOverlay, drawPixels, endPaste, equals, getAngle, getBoundingRect, getBounds, getColor, getCornerDiameter, getCPosition, getCurrentPasteMode, getDefaultFillColor, getFeretsDiameter, getFeretValues, getFillColor, getFloatAngle, getFloatBounds, getFloatHeight, getFloatWidth, getHashCode, getImage, getImageID, getInterpolatedPolygon, getInterpolatedPolygon, getMagnification, getName, getPasteMode, getPosition, getProperties, getProperty, getPropertyCount, getPrototypeOverlay, getRotationCenter, getRoundRectArcSize, getScaledStroke, getState, getStroke, getStrokeColor, getStrokeWidth, getTPosition, getType, getTypeAsString, getXBase, getYBase, getZPosition, handleMouseDown, handleMouseDrag, isActiveOverlayRoi, isArea, isCursor, isDrawingTool, isLine, isVisible, lineCircleIntersection, mouseDragged, mouseReleased, notifyListeners, nudge, nudgeCorner, removeRoiListener, screenX, screenXD, screenY, screenYD, setColor, setCornerDiameter, setDefaultFillColor, setFillColor, setIgnoreClipRect, setImage, setInstanceColor, setIsCursor, setLineWidth, setLocation, setName, setNonScalable, setPasteMode, setPosition, setPosition, setProperties, setProperty, setPrototypeOverlay, setRotationCenter, setRoundRectArcSize, setStroke, setStrokeColor, setStrokeWidth, setStrokeWidth, showStatus, startPaste, temporarilyHide, toFloat, toInt, toInt, toIntR, update, updateClipRect, updateWideLine
public static final java.lang.String[] sizes
public static final java.lang.String[] types
public static final int MAX_COUNTERS
public PointRoi(int[] ox, int[] oy, int points)
public PointRoi(float[] ox, float[] oy, int points)
public PointRoi(float[] ox, float[] oy)
public PointRoi(FloatPolygon poly)
public PointRoi(java.awt.Polygon poly)
public PointRoi(int ox, int oy)
public PointRoi(double ox, double oy)
public PointRoi(int sx, int sy, ImagePlus imp)
protected void handleMouseUp(int sx, int sy)
PolygonRoi
handleMouseUp
in class PolygonRoi
public void draw(java.awt.Graphics g)
draw
in class PolygonRoi
public void drawPixels(ImageProcessor ip)
Roi
drawPixels
in class PolygonRoi
ImageProcessor.setColor(java.awt.Color)
,
ImageProcessor.setLineWidth(int)
public void addPoint(double ox, double oy)
protected void deletePoint(int index)
deletePoint
in class PolygonRoi
public void resetCounters()
public PointRoi subtractPoints(Roi roi)
public ImageProcessor getMask()
Roi
getMask
in class PolygonRoi
public boolean contains(int x, int y)
contains
in class PolygonRoi
public void setShowLabels(boolean showLabels)
public boolean getShowLabels()
public static void setDefaultType(int type)
public static int getDefaultType()
public void setPointType(int type)
public int getPointType()
public static void setDefaultSize(int index)
public static int getDefaultSize()
public void setSize(int index)
public int getSize()
public static void setDefaultCrossColor(java.awt.Color color)
public static java.awt.Color getDefaultCrossColor()
public boolean subPixelResolution()
subPixelResolution
in class PolygonRoi
public void setCounter(int counter)
public int getCounter()
public int getCount(int counter)
public int[] getCounters()
public void setCounters(int[] counters)
public void displayCounts()
public static java.lang.String[] getCounterChoices()
public void setHideLabels(boolean hideLabels)
public static void setDefaultMarkerSize(java.lang.String size)
public static java.lang.String getDefaultMarkerSize()