public class EllipseWrapper extends ShapeWrapper<EllipseData> implements Ellipse
Wraps function calls to the EllipseData contained.
ANNOTATION_LINK
data
Constructor and 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 ellipse)
Constructor of the EllipseWrapper class using a EllipseData.
|
EllipseWrapper(Roi ijRoi)
Constructor of the EllipseWrapper class using bounds from an ImageJ ROI.
|
Modifier and Type | Method and Description |
---|---|
double |
getRadiusX()
Returns the radius along the X-axis.
|
double |
getRadiusY()
Returns the radius along the Y-axis.
|
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(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.
|
annotationLinkType, copyFromIJRoi, copyToIJRoi, getBoundingBox, getC, getFill, getFontSize, getStroke, getT, getZ, setC, setFill, setFontSize, setStroke, setT, setTransform, setZ, toAWTTransform
addAndReplaceFile, addAndReplaceTable, addKeyValuePair, addTag, addTag, getAnnotations, getFileAnnotations, getMapAnnotations, getMyRating, getTable, getTags, rate, removeLink, unlink
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asDataObject, getCoordinates, setCoordinates, setCoordinates, toAWTShape
createTransformedAWTShape, getBoundingBox, getC, getCZT, getFill, getFontSize, getStroke, getT, getZ, link, setC, setCZT, setFill, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransform
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
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdate
public EllipseWrapper(EllipseData ellipse)
ellipse
- The EllipseData to wrap.public EllipseWrapper()
public EllipseWrapper(Roi ijRoi)
ijRoi
- An ImageJ ROI.public EllipseWrapper(double x, double y, double radiusX, double radiusY)
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.public String getText()
public void setText(String text)
public double getX()
public void setX(double x)
public double getY()
public void setY(double y)
public double getRadiusX()
getRadiusX
in interface Ellipse
public void setRadiusX(double x)
setRadiusX
in interface Ellipse
x
- the value to set.public double getRadiusY()
getRadiusY
in interface Ellipse
public void setRadiusY(double y)
setRadiusY
in interface Ellipse
y
- The value to set.public Roi toImageJ()
toImageJ
in interface Shape
toImageJ
in class ShapeWrapper<EllipseData>
Copyright © 2020–2023 GReD. All rights reserved.