Class EllipseWrapper

    • 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.
        Specified by:
        getText in interface Shape
        Returns:
        the text
      • setText

        public void setText​(java.lang.String text)
        Sets the text on the ShapeData.
        Specified by:
        setText in interface Shape
        Parameters:
        text - the text
      • getX

        public double getX()
        Returns the x-coordinate of the center of the ellipse.
        Specified by:
        getX in interface Ellipse
        Returns:
        See above.
      • setX

        public void setX​(double x)
        Sets the x-coordinate of the center of the ellipse.
        Specified by:
        setX in interface Ellipse
        Parameters:
        x - See above.
      • getY

        public double getY()
        Returns the y-coordinate of the center of the ellipse.
        Specified by:
        getY in interface Ellipse
        Returns:
        See above.
      • setY

        public void setY​(double y)
        Sets the y-coordinate of the center of the ellipse.
        Specified by:
        setY in interface Ellipse
        Parameters:
        y - See above.
      • getRadiusX

        public double getRadiusX()
        Returns the radius along the X-axis.
        Specified by:
        getRadiusX in interface Ellipse
        Returns:
        See above.
      • setRadiusX

        public void setRadiusX​(double x)
        Sets the radius along the X-axis.
        Specified by:
        setRadiusX in interface Ellipse
        Parameters:
        x - the value to set.
      • getRadiusY

        public double getRadiusY()
        Returns the radius along the Y-axis.
        Specified by:
        getRadiusY in interface Ellipse
        Returns:
        See above.
      • setRadiusY

        public void setRadiusY​(double y)
        Sets the radius along the Y-axis.
        Specified by:
        setRadiusY in interface Ellipse
        Parameters:
        y - The value to set.