Package fr.igred.omero.roi
Interface Ellipse
-
- All Superinterfaces:
Annotatable
,RemoteObject
,Shape
- All Known Implementing Classes:
EllipseWrapper
public interface Ellipse extends Shape
Interface to handle Ellipse shapes on OMERO.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EllipseData
asDataObject()
Returns anEllipseData
corresponding to the handled object.default double[]
getCoordinates()
Gets the coordinates of the MaskData shape.double
getRadiusX()
Returns the radius along the X-axis.double
getRadiusY()
Returns the radius along the Y-axis.double
getX()
Returns the x-coordinate of the center of the ellipse.double
getY()
Returns the y-coordinate of the center of the ellipse.default void
setCoordinates(double[] coordinates)
Sets the coordinates of the EllipseData shape.default void
setCoordinates(double x, double y, double radiusX, double radiusY)
Sets the coordinates of the EllipseData shape.void
setRadiusX(double x)
Sets the radius along the X-axis.void
setRadiusY(double y)
Sets the radius along the Y-axis.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.default java.awt.Shape
toAWTShape()
Converts the shape to anShape
.-
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.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, getText, getZ, link, setC, setCZT, setFill, setFontSize, setStroke, setT, setText, setTransform, setTransform, setZ, toAWTTransform, toImageJ
-
-
-
-
Method Detail
-
asDataObject
EllipseData asDataObject()
Returns anEllipseData
corresponding to the handled object.- Specified by:
asDataObject
in interfaceRemoteObject
- Specified by:
asDataObject
in interfaceShape
- Returns:
- See above.
-
toAWTShape
default java.awt.Shape toAWTShape()
Converts the shape to anShape
.- Specified by:
toAWTShape
in interfaceShape
- Returns:
- The converted AWT Shape.
-
getX
double getX()
Returns the x-coordinate of the center of the ellipse.- Returns:
- See above.
-
setX
void setX(double x)
Sets the x-coordinate of the center of the ellipse.- Parameters:
x
- See above.
-
getY
double getY()
Returns the y-coordinate of the center of the ellipse.- Returns:
- See above.
-
setY
void setY(double y)
Sets the y-coordinate of the center of the ellipse.- Parameters:
y
- See above.
-
getRadiusX
double getRadiusX()
Returns the radius along the X-axis.- Returns:
- See above.
-
setRadiusX
void setRadiusX(double x)
Sets the radius along the X-axis.- Parameters:
x
- the value to set.
-
getRadiusY
double getRadiusY()
Returns the radius along the Y-axis.- Returns:
- See above.
-
setRadiusY
void setRadiusY(double y)
Sets the radius along the Y-axis.- Parameters:
y
- The value to set.
-
setCoordinates
default 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
default double[] getCoordinates()
Gets the coordinates of the MaskData shape.- Returns:
- Array of coordinates containing {X,Y,RadiusX,RadiusY}.
-
setCoordinates
default void setCoordinates(double[] coordinates)
Sets the coordinates of the EllipseData shape.- Parameters:
coordinates
- Array of coordinates containing {X,Y,RadiusX,RadiusY}.
-
-