Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.astro.louisville.edu/software/astroimagej/imagej/api/ij/gui/PointRoi.html
Дата изменения: Thu Dec 2 23:03:10 2010 Дата индексирования: Mon Oct 1 21:41:48 2012 Кодировка: Поисковые слова: vela |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object 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.PolygonRoi |
---|
maxPoints, nPoints, splinePoints, xp, xp2, xSpline, yp, yp2, ySpline |
Fields inherited from class ij.gui.Roi |
---|
ANGLE, asp_bk, aspect, cachedMask, center, clipboard, clipHeight, clipWidth, clipX, clipY, COMPOSITE, constrain, CONSTRUCTING, defaultFillColor, fillColor, FREELINE, FREEROI, HANDLE_SIZE, handleColor, ic, imp, instanceColor, LINE, lineWidth, mag, MOVING, MOVING_HANDLE, name, nonScalable, NORMAL, NOT_PASTING, oldHeight, oldWidth, oldX, oldY, onePixelWide, OVAL, overlay, pasteMode, POINT, POLYGON, POLYLINE, previousRoi, RECTANGLE, RESIZING, ROIColor, stroke, strokeColor, TRACED_ROI, type, updateFullWindow, wideLine, xMax, yMax |
Constructor Summary | |
---|---|
PointRoi(int[] ox,
int[] oy,
int points)
Creates a new PointRoi using the specified arrays of offscreen coordinates. |
|
PointRoi(int ox,
int oy)
Creates a new PointRoi using the specified offscreen 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(int x,
int y)
Returns a copy of this PointRoi with a point at (x,y) added. |
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. |
protected void |
handleMouseUp(int sx,
int sy)
|
PointRoi |
subtractPoints(Roi roi)
Subtract the points that intersect the specified ROI and return the result. |
Methods inherited from class ij.gui.PolygonRoi |
---|
addOffset, clipRectMargin, clone, exitConstructingMode, fitSpline, fitSpline, fitSplineForStraightening, getAngle, getConvexHull, getFloatPolygon, getLength, getNCoordinates, getNonSplineCoordinates, getPolygon, getUncalibratedLength, getXCoordinates, getYCoordinates, grow, isHandle, isSplineFit, mouseDownInHandle, moveHandle, removeSplineFit, updatePolygon |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PointRoi(int[] ox, int[] oy, int points)
public PointRoi(java.awt.Polygon poly)
public PointRoi(int ox, int oy)
public PointRoi(int sx, int sy, ImagePlus imp)
Method Detail |
---|
protected void handleMouseUp(int sx, int sy)
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 PointRoi addPoint(int x, int y)
public PointRoi subtractPoints(Roi roi)
public ImageProcessor getMask()
PolygonRoi
getMask
in class PolygonRoi
public boolean contains(int x, int y)
contains
in class PolygonRoi
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |