public class ROI2DLine extends ROI2DShape
Modifier and Type | Class and Description |
---|---|
class |
ROI2DLine.ROI2DLinePainter |
ROI2DShape.ROI2DShapePainter
ROI2D.ROI2DPainter
ROI.ROIIdComparator, ROI.ROINameComparator, ROI.ROIPainter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID_PT1 |
static java.lang.String |
ID_PT2 |
DEFAULT_COLOR, DEFAULT_NORMAL_COLOR, DEFAULT_OPACITY, DEFAULT_STROKE, ID_CLASSNAME, ID_COLOR, ID_ID, ID_NAME, ID_OPACITY, ID_READONLY, ID_ROI, ID_SELECTED, ID_SHOWNAME, ID_STROKE, idComparator, nameComparator, PROPERTY_COLOR, PROPERTY_CREATING, PROPERTY_ICON, PROPERTY_NAME, PROPERTY_OPACITY, PROPERTY_READONLY, PROPERTY_SHOWNAME, PROPERTY_STROKE
Constructor and Description |
---|
ROI2DLine() |
ROI2DLine(double x1,
double y1,
double x2,
double y2) |
ROI2DLine(java.awt.geom.Line2D line) |
ROI2DLine(java.awt.geom.Point2D pt) |
ROI2DLine(java.awt.geom.Point2D pt,
boolean cm)
Deprecated.
|
ROI2DLine(java.awt.geom.Point2D pt1,
java.awt.geom.Point2D pt2) |
ROI2DLine(Point5D pt)
Generic constructor for interactive mode
|
Modifier and Type | Method and Description |
---|---|
boolean |
canAddPoint()
Return true if this ROI support adding new point
|
boolean |
canRemovePoint()
Return true if this ROI support removing point
|
boolean |
canSetBounds()
Returns
true if this ROI accepts bounds change through the
ROI.setBounds5D(Rectangle5D) method. |
double |
computeNumberOfContourPoints()
Generic implementation for ROI2D using the BooleanMask object so the result is just an
approximation.
|
double |
computeNumberOfPoints()
Generic implementation for ROI2D using the BooleanMask object so the result is just an
approximation.
|
java.awt.geom.Line2D |
getLine() |
boolean |
loadFromXML(org.w3c.dom.Node node)
LOAD
|
boolean |
saveToXML(org.w3c.dom.Node node)
SAVE
|
void |
setBounds2D(java.awt.geom.Rectangle2D bounds)
Set the
ROI 2D bounds. |
void |
setLine(java.awt.geom.Line2D line) |
addNewPoint, addPoint, addPoint, addPointAt, canTranslate, computeBounds2D, contains, contains, contains, contains, contains, controlPointOverlayChanged, controlPointPositionChanged, getControlPoints, getPathIterator, getPathIterator, getPoints, getShape, hasSelectedPoint, intersects, intersects, intersects, isOverEdge, onChanged, painterChanged, removePoint, removePointAt, removeSelectedPoint, setSelected, translate
canSetPosition, computeBounds5D, contains, contains, getArea, getAsBooleanMask, getAsBooleanMask, getAsBooleanMask, getAsBooleanMask, getAsBooleanMask, getAsBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask2D, getBooleanMask2D, getBounds, getBounds2D, getC, getDimension, getPerimeter, getPosition, getPosition2D, getROI2DList, getROI2DList, getROI2DList, getT, getZ, intersects, isActiveFor, isActiveFor, isOver, isOver, isOverEdge, isOverEdge, isOverEdge, merge, setBounds5D, setC, setPosition, setPosition2D, setPosition5D, setT, setZ, substract, subtract
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, focusChanged, getAdjustedStroke, getAdjustedStroke, getBooleanMask2D, getBounds5D, getClassName, getColor, getCopy, getDisplayColor, getExclusiveUnion, getFirstSequence, getFocusedColor, getIcon, getId, getIntersection, getName, getNumberOfContourPoints, getNumberOfPoints, getOpacity, getOverlay, getPainter, getPosition5D, getPropertyValue, getROICount, getROIList, getROIList, getROIList, getROIsFromXML, getSelectedColor, getSequences, getShowName, getSimpleClassName, getStroke, getSubtraction, getUnion, getVolume, internalFocus, internalSelect, internalUnfocus, internalUnselect, intersects, isAttached, isCreating, isEditable, isFocused, isReadOnly, isSelected, isUpdating, loadFromXML, loadROIsFromXML, merge, nameChanged, painterChanged, propertyChanged, remove, remove, removeListener, roiChanged, roiChanged, saveROIsToXML, selectionChanged, setColor, setCreating, setEditable, setFocused, setIcon, setMousePos, setName, setOpacity, setPropertyValue, setReadOnly, setROIsFromXML, setSelected, setSelectedColor, setShowName, setStroke
public static final java.lang.String ID_PT1
public static final java.lang.String ID_PT2
public ROI2DLine(java.awt.geom.Point2D pt1, java.awt.geom.Point2D pt2)
public ROI2DLine(java.awt.geom.Line2D line)
@Deprecated public ROI2DLine(java.awt.geom.Point2D pt, boolean cm)
public ROI2DLine(java.awt.geom.Point2D pt)
public ROI2DLine(double x1, double y1, double x2, double y2)
public ROI2DLine()
public java.awt.geom.Line2D getLine()
public boolean canSetBounds()
ROI
true
if this ROI accepts bounds change through the
ROI.setBounds5D(Rectangle5D)
method.canSetBounds
in class ROI2D
public void setBounds2D(java.awt.geom.Rectangle2D bounds)
ROI2D
ROI
2D bounds.ROI2D.canSetBounds()
first to test if the operation is supported.setBounds2D
in class ROI2D
bounds
- new ROI 2D boundspublic void setLine(java.awt.geom.Line2D line)
public boolean canAddPoint()
ROI2DShape
canAddPoint
in class ROI2DShape
public boolean canRemovePoint()
ROI2DShape
canRemovePoint
in class ROI2DShape
public double computeNumberOfContourPoints()
ROI2D
computeNumberOfContourPoints
in class ROI2D
public double computeNumberOfPoints()
ROI2D
computeNumberOfPoints
in class ROI2D
public boolean loadFromXML(org.w3c.dom.Node node)
XMLPersistent
loadFromXML
in interface XMLPersistent
loadFromXML
in class ROI2D
public boolean saveToXML(org.w3c.dom.Node node)
XMLPersistent
saveToXML
in interface XMLPersistent
saveToXML
in class ROI2D