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>
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class fr.igred.omero.GenericObjectWrapper
GenericObjectWrapper.SortById<U extends GenericObjectWrapper<?>> 
 - 
 
- 
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(List<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 List<Integer>getMaskPoints()Returns the points in the polygon.List<Point2D.Double>getPoints()Returns the points in the Polygon.StringgetText()Gets the text on the ShapeData.voidsetPoints(List<Point2D.Double> points)Sets the points in the polyline.voidsetText(String text)Sets the text on the ShapeData.ShapetoAWTShape()Converts the shape to anShape.- 
Methods inherited from class fr.igred.omero.roi.GenericShapeWrapper
asShapeData, createTransformedAWTShape, getBoundingBox, getC, getFontSize, getStroke, getT, getZ, setC, setCZT, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransform, toImageJ 
- 
Methods inherited from class fr.igred.omero.GenericObjectWrapper
getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString 
 - 
 
 - 
 
- 
- 
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(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:
 getTextin classGenericShapeWrapper<PolygonData>- Returns:
 - the text
 
 
- 
setText
public void setText(String text)
Sets the text on the ShapeData.- Specified by:
 setTextin classGenericShapeWrapper<PolygonData>- Parameters:
 text- the text
 
- 
toAWTShape
public Shape toAWTShape()
Converts the shape to anShape.- Specified by:
 toAWTShapein 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.
 
 - 
 
 -