Package fr.igred.omero.roi
Class ShapeWrapper
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<T>
-
- fr.igred.omero.roi.GenericShapeWrapper<ShapeData>
-
- fr.igred.omero.roi.ShapeWrapper
-
public class ShapeWrapper extends GenericShapeWrapper<ShapeData>
-
-
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 ShapeWrapper(ShapeData shape)Constructor of the ShapeWrapper class using a ShapeData.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetText()Gets the text on the ShapeData.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
-
ShapeWrapper
public ShapeWrapper(ShapeData shape)
Constructor of the ShapeWrapper class using a ShapeData.- Parameters:
shape- the shape
-
-
Method Detail
-
getText
public String getText()
Gets the text on the ShapeData.- Specified by:
getTextin classGenericShapeWrapper<ShapeData>- Returns:
- the text
-
setText
public void setText(String text)
Sets the text on the ShapeData.- Specified by:
setTextin classGenericShapeWrapper<ShapeData>- Parameters:
text- the text
-
toAWTShape
public Shape toAWTShape()
Converts the shape to anShape.- Specified by:
toAWTShapein classGenericShapeWrapper<ShapeData>- Returns:
- The converted AWT Shape.
-
-