public class ROI2DPolygon extends ROI2DShape
ROI2DShape.ROI2DShapePainter
ROI2D.ROI2DPainter
ROI.ROIGroupId, ROI.ROIIdComparator, ROI.ROINameComparator, ROI.ROIPainter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID_POINT |
static java.lang.String |
ID_POINTS |
DEFAULT_COLOR, DEFAULT_NORMAL_COLOR, DEFAULT_OPACITY, DEFAULT_STROKE, defaultColor, defaultOpacity, defaultShowName, defaultStroke, ID_CLASSNAME, ID_COLOR, ID_GROUPID, ID_ID, ID_NAME, ID_OPACITY, ID_PROPERTIES, ID_READONLY, ID_ROI, ID_SELECTED, ID_SHOWNAME, ID_STROKE, idComparator, nameComparator, PROPERTY_COLOR, PROPERTY_CREATING, PROPERTY_GROUPID, PROPERTY_ICON, PROPERTY_NAME, PROPERTY_OPACITY, PROPERTY_READONLY, PROPERTY_SHOWNAME, PROPERTY_STROKE, ROI_CHANGED_ALL, ROI_CHANGED_POSITION
Constructor and Description |
---|
ROI2DPolygon() |
ROI2DPolygon(java.util.List<java.awt.geom.Point2D> points) |
ROI2DPolygon(java.awt.geom.Point2D pt) |
ROI2DPolygon(java.awt.geom.Point2D pt,
boolean cm)
Deprecated.
|
ROI2DPolygon(Point5D pt)
Generic constructor for interactive mode
|
ROI2DPolygon(java.awt.Polygon polygon)
Deprecated.
Better to use
ROI2DPolygon(Polygon2D) instead to have double point precision |
ROI2DPolygon(Polygon2D polygon) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultName() |
java.awt.Polygon |
getPolygon() |
Polygon2D |
getPolygon2D() |
boolean |
loadFromXML(org.w3c.dom.Node node)
LOAD
|
boolean |
saveToXML(org.w3c.dom.Node node)
SAVE
|
void |
setPoints(java.util.ArrayList<java.awt.geom.Point2D> pts)
Deprecated.
Use
setPoints(List) instead. |
void |
setPoints(java.util.List<java.awt.geom.Point2D> pts) |
void |
setPolygon(java.awt.Polygon polygon) |
void |
setPolygon2D(Polygon2D polygon2D) |
addNewPoint, addNewPoint, addPoint, addPoint, addPointAt, canAddPoint, canRemovePoint, canTranslate, computeBounds2D, computeNumberOfContourPoints, contains, contains, contains, contains, controlPointOverlayChanged, controlPointPositionChanged, getBooleanMask, getControlPoints, getExclusiveUnion, getIntersection, getLength, getPathIterator, getPathIterator, getPoints, getShape, getSubtraction, getUnion, hasSelectedPoint, intersects, intersects, isOverEdge, onChanged, painterChanged, removePoint, removePointAt, removeSelectedPoint, translate, unselectAllPoints
canSetBounds, canSetPosition, computeBounds5D, computeNumberOfPoints, computePerimeter, contains, contains, contains, getArea, getAsBooleanMask, getAsBooleanMask, getAsBooleanMask, getAsBooleanMask, getAsBooleanMask, getAsBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask2D, getBooleanMask2D, getBounds, getBounds2D, getC, getDimension, getPerimeter, getPerimeter, getPosition, getPosition2D, getROI2DList, getROI2DList, getROI2DList, getSubROI, getT, getZ, intersects, intersects, isActiveFor, isActiveFor, isOver, isOver, isOverEdge, isOverEdge, isOverEdge, merge, setBounds2D, setBounds5D, setC, setPosition, setPosition2D, setPosition5D, setT, setZ, substract, subtract
add, addListener, attachTo, beginUpdate, canvasToImageDeltaX, canvasToImageDeltaY, canvasToImageLogDeltaX, canvasToImageLogDeltaX, canvasToImageLogDeltaX, canvasToImageLogDeltaX, canvasToImageLogDeltaY, canvasToImageLogDeltaY, canvasToImageLogDeltaY, canvasToImageLogDeltaY, contains, contains, copyFrom, create, create, create, create, createFromXML, delete, delete, detachFrom, detachFromAll, detachFromAll, endUpdate, exclusiveAdd, focusChanged, getAdjustedStroke, getAdjustedStroke, getBooleanMask2D, getBounds5D, getClassName, getColor, getCopy, getDefaultColor, getDefaultOpacity, getDefaultShowName, getDefaultStroke, getDisplayColor, getFirstSequence, getFocusedColor, getGroupId, getIcon, getId, getName, getNameSuffix, getNumberOfContourPoints, getNumberOfPoints, getOpacity, getOverlay, getPainter, getPosition5D, getProperties, getProperty, getPropertyValue, getROICount, getROIList, getROIList, getROIList, getROIsFromXML, getSelectedColor, getSequences, getShowName, getSimpleClassName, getStroke, getVolume, internalFocus, internalSelect, internalUnfocus, internalUnselect, intersect, intersects, isAttached, isCreating, isDefaultName, isEditable, isEmpty, isFocused, isReadOnly, isSelected, isUpdating, loadFromXML, loadROIsFromXML, merge, mergeWith, nameChanged, painterChanged, propertyChanged, remove, remove, removeListener, roiChanged, roiChanged, roiChanged, saveROIsToXML, selectionChanged, setColor, setCreating, setDefaultColor, setDefaultOpacity, setDefaultShowName, setDefaultStroke, setEditable, setFocused, setGroupId, setIcon, setMousePos, setName, setOpacity, setProperty, setPropertyValue, setReadOnly, setROIsFromXML, setSelected, setSelected, setSelectedColor, setShowName, setStroke, subtract
public static final java.lang.String ID_POINTS
public static final java.lang.String ID_POINT
@Deprecated public ROI2DPolygon(java.awt.geom.Point2D pt, boolean cm)
public ROI2DPolygon(java.awt.geom.Point2D pt)
public ROI2DPolygon(Point5D pt)
public ROI2DPolygon(java.util.List<java.awt.geom.Point2D> points)
@Deprecated public ROI2DPolygon(java.awt.Polygon polygon)
ROI2DPolygon(Polygon2D)
instead to have double point precisionpublic ROI2DPolygon(Polygon2D polygon)
public ROI2DPolygon()
public java.lang.String getDefaultName()
getDefaultName
in class ROI2DShape
public void setPoints(java.util.List<java.awt.geom.Point2D> pts)
@Deprecated public void setPoints(java.util.ArrayList<java.awt.geom.Point2D> pts)
setPoints(List)
instead.public Polygon2D getPolygon2D()
public void setPolygon2D(Polygon2D polygon2D)
public java.awt.Polygon getPolygon()
public void setPolygon(java.awt.Polygon polygon)
public boolean loadFromXML(org.w3c.dom.Node node)
XMLPersistent
loadFromXML
in interface XMLPersistent
loadFromXML
in class ROI2DShape
public boolean saveToXML(org.w3c.dom.Node node)
XMLPersistent
saveToXML
in interface XMLPersistent
saveToXML
in class ROI2D