Class RectangleWrapper

    • Constructor Detail

      • RectangleWrapper

        public RectangleWrapper​(RectangleData rectangle)
        Constructor of the RectangleWrapper class using a RectangleData.
        Parameters:
        rectangle - The RectangleData to wrap.
      • RectangleWrapper

        public RectangleWrapper()
        Constructor of the RectangleWrapper class using a new empty RectangleData.
      • RectangleWrapper

        public RectangleWrapper​(Roi ijRoi)
        Constructor of the RectangleWrapper class using bounds from an ImageJ ROI.
        Parameters:
        ijRoi - An ImageJ ROI.
      • RectangleWrapper

        public RectangleWrapper​(double x,
                                double y,
                                double width,
                                double height)
        Constructor of the RectangleWrapper class using a new RectangleData.
        Parameters:
        x - The x-coordinate of the top-left corner.
        y - The y-coordinate of the top-left corner.
        width - The width of the rectangle.
        height - The height of the rectangle.
    • 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 shape.
        Specified by:
        getX in interface Rectangular
        Returns:
        See above.
      • setX

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

        public double getY()
        Returns the y coordinate of the shape.
        Specified by:
        getY in interface Rectangular
        Returns:
        See above.
      • setY

        public void setY​(double y)
        Sets the y-coordinate of the shape.
        Specified by:
        setY in interface Rectangular
        Parameters:
        y - See above.
      • getWidth

        public double getWidth()
        Returns the width untransformed rectangle.
        Specified by:
        getWidth in interface Rectangular
        Returns:
        See above.
      • setWidth

        public void setWidth​(double width)
        Sets width of an untransformed rectangle.
        Specified by:
        setWidth in interface Rectangular
        Parameters:
        width - See above.
      • getHeight

        public double getHeight()
        Returns the height untransformed rectangle.
        Specified by:
        getHeight in interface Rectangular
        Returns:
        See above.
      • setHeight

        public void setHeight​(double height)
        Sets the height of an untransformed rectangle.
        Specified by:
        setHeight in interface Rectangular
        Parameters:
        height - See above.