Package fr.igred.omero.roi
Class PolygonWrapper
Class containing an PolygonData.
Wraps function calls to the PolygonData contained.
-
Field Summary
Fields inherited from class fr.igred.omero.roi.GenericShapeWrapper
ANNOTATION_LINK
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
Constructor Summary
ConstructorDescriptionConstructor of the PolygonWrapper class using a new empty LineData.PolygonWrapper
(Roi ijRoi) Constructor of the PolygonWrapper class using an ImageJ PolygonRoi.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. -
Method Summary
Modifier and TypeMethodDescriptionReturns the points in the polygon.Returns the points in the Polygon.getText()
Gets the text on the ShapeData.void
setPoints
(List<Point2D.Double> points) Sets the points in the polyline.void
Sets the text on the ShapeData.Converts the shape to anShape
.Methods inherited from class fr.igred.omero.roi.GenericShapeWrapper
annotationLinkType, asShapeData, copyFromIJRoi, copyToIJRoi, createTransformedAWTShape, getBoundingBox, getC, getFill, getFontSize, getStroke, getT, getZ, link, setC, setCZT, setFill, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransform, toImageJ
Methods inherited from class fr.igred.omero.AnnotatableWrapper
addAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addFileAnnotation, addKeyValuePair, addMapAnnotation, addPairKeyValue, addTable, addTag, addTag, addTag, addTags, addTags, copyAnnotationLinks, getAnnotations, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getMyRating, getRatings, getTable, getTables, getTags, getValue, isLinked, link, link, linkIfNotLinked, rate, removeLink, unlink
Methods inherited from class fr.igred.omero.GenericObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, flatten, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap
-
Constructor Details
-
PolygonWrapper
Constructor of the PolygonWrapper class using a PolygonData.- Parameters:
polygon
- The PolygonData to wrap.
-
PolygonWrapper
public PolygonWrapper()Constructor of the PolygonWrapper class using a new empty LineData. -
PolygonWrapper
Constructor of the PolygonWrapper class using an ImageJ PolygonRoi.- Parameters:
ijRoi
- An ImageJ ROI.
-
PolygonWrapper
Constructor of the PolygonWrapper class using a new LineData.- Parameters:
points
- the points in the polyline.
-
-
Method Details
-
getText
Gets the text on the ShapeData.- Specified by:
getText
in classGenericShapeWrapper<PolygonData>
- Returns:
- the text
-
setText
Sets the text on the ShapeData.- Specified by:
setText
in classGenericShapeWrapper<PolygonData>
- Parameters:
text
- the text
-
toAWTShape
Converts the shape to anShape
.- Specified by:
toAWTShape
in classGenericShapeWrapper<PolygonData>
- Returns:
- The converted AWT Shape.
-
getPoints
Returns the points in the Polygon.- Returns:
- See above.
-
setPoints
Sets the points in the polyline.- Parameters:
points
- The points to set.
-
getMaskPoints
Returns the points in the polygon.- Returns:
- See above.
-