Package fr.igred.omero.roi
Class EllipseWrapper
- java.lang.Object
 - 
- fr.igred.omero.GenericObjectWrapper<T>
 - 
- fr.igred.omero.roi.GenericShapeWrapper<EllipseData>
 - 
- fr.igred.omero.roi.EllipseWrapper
 
 
 
 
- 
public class EllipseWrapper extends GenericShapeWrapper<EllipseData>
 
- 
- 
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 EllipseWrapper()Constructor of the EllipseWrapper class using a new empty EllipseData.EllipseWrapper(double x, double y, double radiusX, double radiusY)Constructor of the EllipseWrapper class using a new EllipseData.EllipseWrapper(EllipseData shape)Constructor of the EllipseWrapper class using a EllipseData. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]getCoordinates()Gets the coordinates of the MaskData shape.doublegetRadiusX()Returns the radius along the X-axis.doublegetRadiusY()Returns the radius along the Y-axis.StringgetText()Gets the text on the ShapeData.doublegetX()Returns the x-coordinate of the center of the ellipse.doublegetY()Returns the y-coordinate of the center of the ellipse.voidsetCoordinates(double[] coordinates)Sets the coordinates of the EllipseData shape.voidsetCoordinates(double x, double y, double radiusX, double radiusY)Sets the coordinates of the EllipseData shape.voidsetRadiusX(double x)Sets the radius along the X-axis.voidsetRadiusY(double y)Sets the radius along the Y-axis.voidsetText(String text)Sets the text on the ShapeData.voidsetX(double x)Sets the x-coordinate of the center of the ellipse.voidsetY(double y)Sets the y-coordinate of the center of the ellipse.ShapetoAWTShape()Converts the shape to anShape.RoitoImageJ()Converts shape to ImageJ ROI.- 
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 
- 
Methods inherited from class fr.igred.omero.GenericObjectWrapper
getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
EllipseWrapper
public EllipseWrapper(EllipseData shape)
Constructor of the EllipseWrapper class using a EllipseData.- Parameters:
 shape- the shape
 
- 
EllipseWrapper
public EllipseWrapper()
Constructor of the EllipseWrapper class using a new empty EllipseData. 
- 
EllipseWrapper
public EllipseWrapper(double x, double y, double radiusX, double radiusY)Constructor of the EllipseWrapper class using a new EllipseData.- Parameters:
 x- The x-coordinate of the center of the ellipse.y- The y-coordinate of the center of the ellipse.radiusX- The radius along the X-axis.radiusY- The radius along the Y-axis.
 
 - 
 
- 
Method Detail
- 
getText
public String getText()
Gets the text on the ShapeData.- Specified by:
 getTextin classGenericShapeWrapper<EllipseData>- Returns:
 - the text
 
 
- 
setText
public void setText(String text)
Sets the text on the ShapeData.- Specified by:
 setTextin classGenericShapeWrapper<EllipseData>- Parameters:
 text- the text
 
- 
toAWTShape
public Shape toAWTShape()
Converts the shape to anShape.- Specified by:
 toAWTShapein classGenericShapeWrapper<EllipseData>- Returns:
 - The converted AWT Shape.
 
 
- 
getX
public double getX()
Returns the x-coordinate of the center of the ellipse.- Returns:
 - See above.
 
 
- 
setX
public void setX(double x)
Sets the x-coordinate of the center of the ellipse.- Parameters:
 x- See above.
 
- 
getY
public double getY()
Returns the y-coordinate of the center of the ellipse.- Returns:
 - See above.
 
 
- 
setY
public void setY(double y)
Sets the y-coordinate of the center of the ellipse.- Parameters:
 y- See above.
 
- 
getRadiusX
public double getRadiusX()
Returns the radius along the X-axis.- Returns:
 - See above.
 
 
- 
setRadiusX
public void setRadiusX(double x)
Sets the radius along the X-axis.- Parameters:
 x- the value to set.
 
- 
getRadiusY
public double getRadiusY()
Returns the radius along the Y-axis.- Returns:
 - See above.
 
 
- 
setRadiusY
public void setRadiusY(double y)
Sets the radius along the Y-axis.- Parameters:
 y- The value to set.
 
- 
setCoordinates
public void setCoordinates(double x, double y, double radiusX, double radiusY)Sets the coordinates of the EllipseData shape.- Parameters:
 x- The x-coordinate of the center of the ellipse.y- The y-coordinate of the center of the ellipse.radiusX- The radius along the X-axis.radiusY- The radius along the Y-axis.
 
- 
getCoordinates
public double[] getCoordinates()
Gets the coordinates of the MaskData shape.- Returns:
 - Array of coordinates containing {X,Y,RadiusX,RadiusY}.
 
 
- 
setCoordinates
public void setCoordinates(double[] coordinates)
Sets the coordinates of the EllipseData shape.- Parameters:
 coordinates- Array of coordinates containing {X,Y,RadiusX,RadiusY}.
 
- 
toImageJ
public Roi toImageJ()
Converts shape to ImageJ ROI.- Overrides:
 toImageJin classGenericShapeWrapper<EllipseData>- Returns:
 - An ImageJ ROI.
 
 
 - 
 
 -