Package fr.igred.omero.roi
Class PolygonWrapper
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<T>
-
- fr.igred.omero.AnnotatableWrapper<T>
-
- fr.igred.omero.roi.GenericShapeWrapper<PolygonData>
-
- fr.igred.omero.roi.PolygonWrapper
-
public class PolygonWrapper extends GenericShapeWrapper<PolygonData>
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
Constructors Constructor Description PolygonWrapper()
Constructor 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Integer>
getMaskPoints()
Returns the points in the polygon.List<Point2D.Double>
getPoints()
Returns the points in the Polygon.String
getText()
Gets the text on the ShapeData.void
setPoints(List<Point2D.Double> points)
Sets the points in the polyline.void
setText(String text)
Sets the text on the ShapeData.Shape
toAWTShape()
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, 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, saveAndUpdate, toString, wrap, wrap
-
-
-
-
Constructor Detail
-
PolygonWrapper
public PolygonWrapper(PolygonData polygon)
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
public PolygonWrapper(Roi ijRoi)
Constructor of the PolygonWrapper class using an ImageJ PolygonRoi.- Parameters:
ijRoi
- An ImageJ ROI.
-
PolygonWrapper
public PolygonWrapper(List<Point2D.Double> points)
Constructor of the PolygonWrapper class using a new LineData.- Parameters:
points
- the points in the polyline.
-
-
Method Detail
-
getText
public String getText()
Gets the text on the ShapeData.- Specified by:
getText
in classGenericShapeWrapper<PolygonData>
- Returns:
- the text
-
setText
public void setText(String text)
Sets the text on the ShapeData.- Specified by:
setText
in classGenericShapeWrapper<PolygonData>
- Parameters:
text
- the text
-
toAWTShape
public Shape toAWTShape()
Converts the shape to anShape
.- Specified by:
toAWTShape
in classGenericShapeWrapper<PolygonData>
- Returns:
- The converted AWT Shape.
-
getPoints
public List<Point2D.Double> getPoints()
Returns the points in the Polygon.- Returns:
- See above.
-
setPoints
public void setPoints(List<Point2D.Double> points)
Sets the points in the polyline.- Parameters:
points
- The points to set.
-
-