public class PolygonRoiPublic extends PolygonRoi
Modifier and Type | Field and Description |
---|---|
protected Color |
normalStrokeColor |
protected static Field |
nPointsField |
protected static Method |
resetBoundsMethod |
protected boolean |
specifiedByUser |
protected Color |
specifiedStrokeColor |
protected static Field |
xField |
protected static Field |
xpfField |
protected static Field |
xpField |
protected static Field |
yField |
protected static Field |
ypfField |
protected static Field |
ypField |
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, defaultColor, defaultFillColor, FERET_ARRAY_POINTOFFSET, FERET_ARRAYSIZE, fillColor, flattenScale, 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, type, updateFullWindow, wideLine, xMax, yMax
Constructor and Description |
---|
PolygonRoiPublic(int[] x,
int[] y,
int n,
int type) |
PolygonRoiPublic(PolygonRoi roi) |
Modifier and Type | Method and Description |
---|---|
int |
addHandle(int x,
int y) |
static void |
assertEquals(String name1,
boolean value1,
String name2,
boolean value2) |
static void |
assertEquals(String name1,
byte value1,
String name2,
byte value2) |
static void |
assertEquals(String name1,
double value1,
String name2,
double value2) |
static void |
assertEquals(String name1,
float value1,
String name2,
float value2) |
static void |
assertEquals(String name1,
int value1,
String name2,
int value2) |
static void |
assertEquals(String name1,
long value1,
String name2,
long value2) |
static void |
assertEquals(String name1,
Object object1,
String name2,
Object object2) |
static void |
assertEquals(String name1,
Object object1,
String name2,
Object object2,
int maxDepth) |
static void |
assertEquals(String name1,
short value1,
String name2,
short value2) |
static void |
assertEquals(String name1,
String value1,
String name2,
String value2) |
protected void |
copyXpfToXp() |
protected void |
copyXpToXpf() |
void |
deleteHandle(int handle) |
double |
distanceToHandle(int handle,
int x,
int y) |
void |
draw(Graphics g) |
void |
fitSpline() |
protected static int |
getNCoordinates(PolygonRoi roi) |
protected static int[] |
getXCoordinates(PolygonRoi roi) |
protected static int[] |
getYCoordinates(PolygonRoi roi) |
int |
insertHandle(int x,
int y) |
int |
insertHandle(int beforeHandle,
int x,
int y) |
boolean |
lineContains(int x,
int y) |
boolean |
lineContains(int x,
int y,
int tolerance) |
static void |
main(String[] args) |
void |
move(int deltaX,
int deltaY) |
void |
moveHandle(int handle,
int x,
int y) |
void |
resetBoundingRect() |
static float[] |
toFloat(int[] array) |
static int[] |
toIntR(float[] array) |
String |
toString() |
void |
updatePolygon() |
addOffset, clipRectMargin, clone, contains, containsPoint, deleteHandle, deletePoint, drawPixels, enableSubPixelResolution, exitConstructingMode, fitSpline, fitSplineForStraightening, getAngle, getClosestPoint, getDebugInfo, getFloatPolygon, getInterpolatedPolygon, getLength, getMask, getNCoordinates, getNonSplineCoordinates, getNonSplineFloatPolygon, getPolygon, getUncalibratedLength, getXCoordinates, getYCoordinates, grow, handleMouseUp, isHandle, isSplineFit, mouseDownInHandle, mouseMoved, moveHandle, removeSplineFit, setLocation, size, wipeBack
abortModification, abortPaste, addRoiListener, convertLineToArea, convertToPolygon, copyAttributes, create, create, drawOverlay, drawPixels, endPaste, equals, getAngle, getAntiAlias, getBoundingRect, getBounds, getColor, getContainedFloatPoints, getContainedPoints, getContourCentroid, getConvexHull, getCornerDiameter, getCPosition, getCurrentPasteMode, getDefaultFillColor, getDefaultGroup, getDefaultHandleSize, getDefaultStrokeWidth, getDrawOffset, getFeretsDiameter, getFeretValues, getFillColor, getFloatAngle, getFloatBounds, getFloatConvexHull, getFloatHeight, getFloatPolygon, getFloatWidth, getGroup, getGroupName, getGroupNames, getHandleSize, getHashCode, getImage, getImageID, getInterpolatedPolygon, getInterpolatedPolygon, getInverse, getListeners, getMagnification, getName, getPasteMode, getPosition, getPreviousRoi, getProperties, getProperty, getPropertyCount, getPrototypeOverlay, getRotationCenter, getRoundRectArcSize, getScaledStroke, getScaleStrokeWidth, getState, getStatistics, getStroke, getStrokeColor, getStrokeWidth, getTPosition, getType, getTypeAsString, getXBase, getYBase, getZPosition, handleMouseDown, handleMouseDrag, hasHyperStackPosition, isActiveOverlayRoi, isArea, isCursor, isDrawingTool, isInteger, isLine, isLineOrPoint, isVisible, iterator, lineCircleIntersection, magnificationForSubPixel, magnificationForSubPixel, mouseDragged, mouseReleased, notifyListeners, nudge, nudgeCorner, offScreenX, offScreenXD, offScreenY, offScreenYD, removeRoiListener, resetDefaultHandleSize, saveGroupNames, screenX, screenXD, screenY, screenYD, setAntiAlias, setBounds, setColor, setCornerDiameter, setDefaultColor, setDefaultFillColor, setDefaultGroup, setDefaultStrokeWidth, setDrawOffset, setFillColor, setFlattenScale, setGroup, setGroupName, setGroupNames, setHandleSize, setIgnoreClipRect, setImage, setInstanceColor, setIsCursor, setLineWidth, setLocation, setName, setNonScalable, setPasteMode, setPosition, setPosition, setPosition, setPreviousRoi, setProperties, setProperty, setPrototypeOverlay, setRenderingHint, setRotationCenter, setRoundRectArcSize, setStroke, setStrokeColor, setStrokeWidth, setStrokeWidth, setUnscalableStrokeWidth, showStatus, startPaste, subPixelResolution, temporarilyHide, toInt, toInt, update, updateClipRect, updateWideLine, useLineSubpixelConvention
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected boolean specifiedByUser
protected Color normalStrokeColor
protected Color specifiedStrokeColor
protected static Field nPointsField
protected static Field xField
protected static Field yField
protected static Field xpField
protected static Field ypField
protected static Field xpfField
protected static Field ypfField
protected static Method resetBoundsMethod
public PolygonRoiPublic(int[] x, int[] y, int n, int type)
public PolygonRoiPublic(PolygonRoi roi)
protected static int[] getXCoordinates(PolygonRoi roi)
protected static int[] getYCoordinates(PolygonRoi roi)
protected static int getNCoordinates(PolygonRoi roi)
public void updatePolygon()
updatePolygon
in class PolygonRoi
public void fitSpline()
fitSpline
in class PolygonRoi
public void draw(Graphics g)
draw
in class PolygonRoi
public void resetBoundingRect()
resetBoundingRect
in class PolygonRoi
protected void copyXpToXpf()
public static float[] toFloat(int[] array)
protected void copyXpfToXp()
public static int[] toIntR(float[] array)
public boolean lineContains(int x, int y)
public boolean lineContains(int x, int y, int tolerance)
public void moveHandle(int handle, int x, int y)
public int addHandle(int x, int y)
public int insertHandle(int beforeHandle, int x, int y)
public int insertHandle(int x, int y)
public void deleteHandle(int handle)
public void move(int deltaX, int deltaY)
public double distanceToHandle(int handle, int x, int y)
public static void main(String[] args)
public static void assertEquals(String name1, Object object1, String name2, Object object2)
public static void assertEquals(String name1, Object object1, String name2, Object object2, int maxDepth)
public static void assertEquals(String name1, boolean value1, String name2, boolean value2)
public static void assertEquals(String name1, short value1, String name2, short value2)
public static void assertEquals(String name1, float value1, String name2, float value2)
public static void assertEquals(String name1, double value1, String name2, double value2)
Copyright © 2015–2021 Fiji. All rights reserved.