|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.gui.AbstractRoi
ij.gui.AttributeRoi
ij.gui.Roi
ij.gui.PolygonRoi
ij.gui.PointRoi
public class PointRoi
This class represents a collection of points.
Field Summary |
---|
Fields inherited from class ij.gui.Roi |
---|
onePixelWide, previousRoi, roundRect |
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 |
Constructor Summary | |
---|---|
PointRoi(double ox,
double oy)
Creates a new PointRoi using the specified offscreen double 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. |
Method Summary | |
---|---|
PointRoi |
addPoint(double x,
double y)
Returns a copy of this PointRoi with a point at (x,y) added. |
PointRoi |
addPoint(int x,
int y)
|
boolean |
contains(int x,
int y)
Returns true if (x,y) is one of the points in this collection. |
void |
draw(java.awt.Graphics g)
Draws the points on the image. |
void |
drawPixels(ImageProcessor ip)
Draws the selection outline on the specified ImageProcessor. |
ImageProcessor |
getMask()
Override Roi.nudge() to support splines. |
void |
setHideLabels(boolean hideLabels)
|
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()
|
Methods inherited from class ij.gui.AttributeRoi |
---|
copyAttributes, getAngle, getColor, getCPosition, getDefaultFillColor, getFeretsDiameter, getFeretValues, 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 |
Constructor Detail |
---|
public PointRoi(int[] ox, int[] oy, int points)
public PointRoi(float[] ox, float[] oy, int points)
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)
Method Detail |
---|
public void draw(java.awt.Graphics g)
draw
in interface RoiBeans
draw
in class PolygonRoi
public void drawPixels(ImageProcessor ip)
Roi
drawPixels
in interface RoiBeans
drawPixels
in class PolygonRoi
ImageProcessor.setColor(java.awt.Color)
,
ImageProcessor.setLineWidth(int)
public PointRoi addPoint(double x, double y)
public PointRoi addPoint(int x, int y)
public PointRoi subtractPoints(Roi roi)
public ImageProcessor getMask()
PolygonRoi
getMask
in interface RoiBeans
getMask
in class PolygonRoi
public boolean contains(int x, int y)
contains
in interface RoiBeans
contains
in class PolygonRoi
public void setHideLabels(boolean hideLabels)
public boolean subPixelResolution()
subPixelResolution
in interface RoiBeans
subPixelResolution
in class PolygonRoi
public java.lang.String toString()
toString
in interface RoiBeans
toString
in class Roi
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |