Package fr.igred.omero.roi
Class EllipseWrapper
- java.lang.Object
-
- fr.igred.omero.ObjectWrapper<T>
-
- fr.igred.omero.AnnotatableWrapper<T>
-
- fr.igred.omero.roi.ShapeWrapper<EllipseData>
-
- fr.igred.omero.roi.EllipseWrapper
-
- All Implemented Interfaces:
Annotatable,RemoteObject,Ellipse,Shape
public class EllipseWrapper extends ShapeWrapper<EllipseData> implements Ellipse
Class containing an EllipseData.Wraps function calls to the EllipseData 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 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(Roi ijRoi)Constructor of the EllipseWrapper class using bounds from an ImageJ ROI.EllipseWrapper(EllipseData ellipse)Constructor of the EllipseWrapper class using a EllipseData.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetRadiusX()Returns the radius along the X-axis.doublegetRadiusY()Returns the radius along the Y-axis.java.lang.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.voidsetRadiusX(double x)Sets the radius along the X-axis.voidsetRadiusY(double y)Sets the radius along the Y-axis.voidsetText(java.lang.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.RoitoImageJ()Converts shape to ImageJ ROI.-
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
-
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.Ellipse
asDataObject, getCoordinates, setCoordinates, setCoordinates, 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
-
-
-
-
Constructor Detail
-
EllipseWrapper
public EllipseWrapper(EllipseData ellipse)
Constructor of the EllipseWrapper class using a EllipseData.- Parameters:
ellipse- The EllipseData to wrap.
-
EllipseWrapper
public EllipseWrapper()
Constructor of the EllipseWrapper class using a new empty EllipseData.
-
EllipseWrapper
public EllipseWrapper(Roi ijRoi)
Constructor of the EllipseWrapper class using bounds from an ImageJ ROI.- Parameters:
ijRoi- An ImageJ ROI.
-
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 java.lang.String getText()
Gets the text on the ShapeData.
-
setText
public void setText(java.lang.String text)
Sets the text on the ShapeData.
-
getX
public double getX()
Returns the x-coordinate of the center of the ellipse.
-
setX
public void setX(double x)
Sets the x-coordinate of the center of the ellipse.
-
getY
public double getY()
Returns the y-coordinate of the center of the ellipse.
-
setY
public void setY(double y)
Sets the y-coordinate of the center of the ellipse.
-
getRadiusX
public double getRadiusX()
Returns the radius along the X-axis.- Specified by:
getRadiusXin interfaceEllipse- Returns:
- See above.
-
setRadiusX
public void setRadiusX(double x)
Sets the radius along the X-axis.- Specified by:
setRadiusXin interfaceEllipse- Parameters:
x- the value to set.
-
getRadiusY
public double getRadiusY()
Returns the radius along the Y-axis.- Specified by:
getRadiusYin interfaceEllipse- Returns:
- See above.
-
setRadiusY
public void setRadiusY(double y)
Sets the radius along the Y-axis.- Specified by:
setRadiusYin interfaceEllipse- Parameters:
y- The value to set.
-
toImageJ
public Roi toImageJ()
Converts shape to ImageJ ROI.- Specified by:
toImageJin interfaceShape- Overrides:
toImageJin classShapeWrapper<EllipseData>- Returns:
- An ImageJ ROI.
-
-