Package fr.igred.omero.roi
Class PolygonWrapper
- java.lang.Object
-
- fr.igred.omero.ObjectWrapper<T>
-
- fr.igred.omero.AnnotatableWrapper<T>
-
- fr.igred.omero.roi.ShapeWrapper<PolygonData>
-
- fr.igred.omero.roi.PolygonWrapper
-
- All Implemented Interfaces:
Annotatable
,RemoteObject
,Polygon
,Polygonal
,Shape
public class PolygonWrapper extends ShapeWrapper<PolygonData> implements Polygon
Class containing an PolygonData.Wraps function calls to the PolygonData contained.
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.roi.ShapeWrapper
ANNOTATION_LINK
-
Fields inherited from class fr.igred.omero.ObjectWrapper
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(java.util.List<java.awt.geom.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 java.util.List<java.lang.Integer>
getMaskPoints()
Returns the points in the polygon.java.util.List<java.awt.geom.Point2D.Double>
getPoints()
Returns the points in the polygonal shape.java.lang.String
getText()
Gets the text on the ShapeData.void
setPoints(java.util.List<java.awt.geom.Point2D.Double> points)
Sets the points in the polygonal shape.void
setText(java.lang.String text)
Sets the text on the ShapeData.-
Methods inherited from class fr.igred.omero.roi.ShapeWrapper
annotationLinkType, copyFromIJRoi, copyToIJRoi, getBoundingBox, getC, getFill, getFontSize, getStroke, getT, getZ, setC, setFill, setFontSize, setStroke, setT, setTransform, setZ, toAWTTransform, toImageJ
-
Methods inherited from class fr.igred.omero.AnnotatableWrapper
addAndReplaceFile, addAndReplaceTable, addKeyValuePair, addTag, addTag, getAnnotations, getFileAnnotations, getMapAnnotations, getMyRating, getTable, getTags, rate, removeLink, unlink
-
Methods inherited from class fr.igred.omero.ObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface fr.igred.omero.Annotatable
addAndReplaceFile, 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, unlink
-
Methods inherited from interface fr.igred.omero.roi.Polygon
asDataObject, toAWTShape
-
Methods inherited from interface fr.igred.omero.RemoteObject
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate
-
Methods inherited from interface fr.igred.omero.roi.Shape
createTransformedAWTShape, getBoundingBox, getC, getCZT, getFill, getFontSize, getStroke, getT, getZ, link, setC, setCZT, setFill, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransform, toImageJ
-
-
-
-
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(java.util.List<java.awt.geom.Point2D.Double> points)
Constructor of the PolygonWrapper class using a new LineData.- Parameters:
points
- the points in the polyline.
-
-
Method Detail
-
getText
public java.lang.String getText()
Gets the text on the ShapeData.
-
setText
public void setText(java.lang.String text)
Sets the text on the ShapeData.
-
getPoints
public java.util.List<java.awt.geom.Point2D.Double> getPoints()
Returns the points in the polygonal shape.
-
setPoints
public void setPoints(java.util.List<java.awt.geom.Point2D.Double> points)
Sets the points in the polygonal shape.
-
getMaskPoints
public java.util.List<java.lang.Integer> getMaskPoints()
Returns the points in the polygon.- Specified by:
getMaskPoints
in interfacePolygon
- Returns:
- See above.
-
-