Package fr.igred.omero.roi
Class PolygonWrapper
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<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.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(java.util.List<java.awt.geom.Point2D.Double> points)
Constructor of the PolygonWrapper class using a new LineData.PolygonWrapper(PolygonData shape)
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 Polygon.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 polyline.void
setText(java.lang.String text)
Sets the text on the ShapeData.java.awt.Shape
toAWTShape()
Converts the shape to anShape
.-
Methods inherited from class fr.igred.omero.roi.GenericShapeWrapper
asShapeData, copy, createTransformedAWTShape, getBoundingBox, getC, getFill, getFontSize, getStroke, getT, getZ, setC, setCZT, setFill, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransform, toImageJ
-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
-
-
-
Constructor Detail
-
PolygonWrapper
public PolygonWrapper(PolygonData shape)
Constructor of the PolygonWrapper class using a PolygonData.- Parameters:
shape
- the shape.
-
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.- Specified by:
getText
in classGenericShapeWrapper<PolygonData>
- Returns:
- the text
-
setText
public void setText(java.lang.String text)
Sets the text on the ShapeData.- Specified by:
setText
in classGenericShapeWrapper<PolygonData>
- Parameters:
text
- the text
-
toAWTShape
public java.awt.Shape toAWTShape()
Converts the shape to anShape
.- Specified by:
toAWTShape
in classGenericShapeWrapper<PolygonData>
- Returns:
- The converted AWT Shape.
-
getPoints
public java.util.List<java.awt.geom.Point2D.Double> getPoints()
Returns the points in the Polygon.- Returns:
- See above.
-
setPoints
public void setPoints(java.util.List<java.awt.geom.Point2D.Double> points)
Sets the points in the polyline.- Parameters:
points
- The points to set.
-
getMaskPoints
public java.util.List<java.lang.Integer> getMaskPoints()
Returns the points in the polygon.- Returns:
- See above.
-
-