public class PolygonWrapper extends ShapeWrapper<PolygonData> implements Polygon
Wraps function calls to the PolygonData contained.
ANNOTATION_LINKdata| Constructor and Description |
|---|
PolygonWrapper()
Constructor of the PolygonWrapper class using a new empty LineData.
|
PolygonWrapper(List<Point2D.Double> points)
Constructor of the PolygonWrapper class using a new LineData.
|
PolygonWrapper(PolygonData polygon)
Constructor of the PolygonWrapper class using a PolygonData.
|
PolygonWrapper(Roi ijRoi)
Constructor of the PolygonWrapper class using an ImageJ PolygonRoi.
|
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
getMaskPoints()
Returns the points in the polygon.
|
List<Point2D.Double> |
getPoints()
Returns the points in the polygonal shape.
|
String |
getText()
Gets the text on the ShapeData.
|
void |
setPoints(List<Point2D.Double> points)
Sets the points in the polygonal shape.
|
void |
setText(String text)
Sets the text on the ShapeData.
|
annotationLinkType, copyFromIJRoi, copyToIJRoi, getBoundingBox, getC, getFill, getFontSize, getStroke, getT, getZ, setC, setFill, setFontSize, setStroke, setT, setTransform, setZ, toAWTTransform, toImageJaddAndReplaceFile, addAndReplaceTable, addKeyValuePair, addTag, addTag, getAnnotations, getFileAnnotations, getMapAnnotations, getMyRating, getTable, getTags, rate, removeLink, unlinkasDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasDataObject, toAWTShapecreateTransformedAWTShape, getBoundingBox, getC, getCZT, getFill, getFontSize, getStroke, getT, getZ, link, setC, setCZT, setFill, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransform, toImageJaddAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addKeyValuePair, addTable, addTag, addTag, addTags, copyAnnotationLinks, getAnnotationData, getAnnotations, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getMyRating, getTable, getTables, getTags, getValues, isLinked, link, link, linkIfNotLinked, rate, unlinkcanAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdatepublic PolygonWrapper(PolygonData polygon)
polygon - The PolygonData to wrap.public PolygonWrapper()
public PolygonWrapper(Roi ijRoi)
ijRoi - An ImageJ ROI.public PolygonWrapper(List<Point2D.Double> points)
points - the points in the polyline.public String getText()
public void setText(String text)
public List<Point2D.Double> getPoints()
public void setPoints(List<Point2D.Double> points)
public List<Integer> getMaskPoints()
getMaskPoints in interface PolygonCopyright © 2020–2023 GReD. All rights reserved.