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 double
getRadiusX()
Returns the radius along the X-axis.double
getRadiusY()
Returns the radius along the Y-axis.java.lang.String
getText()
Gets the text on the ShapeData.double
getX()
Returns the x-coordinate of the center of the ellipse.double
getY()
Returns the y-coordinate of the center of the ellipse.void
setRadiusX(double x)
Sets the radius along the X-axis.void
setRadiusY(double y)
Sets the radius along the Y-axis.void
setText(java.lang.String text)
Sets the text on the ShapeData.void
setX(double x)
Sets the x-coordinate of the center of the ellipse.void
setY(double y)
Sets the y-coordinate of the center of the ellipse.Roi
toImageJ()
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:
getRadiusX
in interfaceEllipse
- Returns:
- See above.
-
setRadiusX
public void setRadiusX(double x)
Sets the radius along the X-axis.- Specified by:
setRadiusX
in interfaceEllipse
- Parameters:
x
- the value to set.
-
getRadiusY
public double getRadiusY()
Returns the radius along the Y-axis.- Specified by:
getRadiusY
in interfaceEllipse
- Returns:
- See above.
-
setRadiusY
public void setRadiusY(double y)
Sets the radius along the Y-axis.- Specified by:
setRadiusY
in interfaceEllipse
- Parameters:
y
- The value to set.
-
toImageJ
public Roi toImageJ()
Converts shape to ImageJ ROI.- Specified by:
toImageJ
in interfaceShape
- Overrides:
toImageJ
in classShapeWrapper<EllipseData>
- Returns:
- An ImageJ ROI.
-
-