Class RectangleData


  • public class RectangleData
    extends ShapeData
    Represents a rectangle in the Euclidean space R2.
    Since:
    3.0-Beta4
    • Constructor Detail

      • RectangleData

        public RectangleData​(omero.model.Shape shape)
        Creates a new instance.
        Parameters:
        shape - The shape this object represents.
      • RectangleData

        public RectangleData()
        Creates a new instance with a default rectangle.
      • RectangleData

        public RectangleData​(double x,
                             double y,
                             double width,
                             double height)
        Creates a new instance of the 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()
        Returns the text of the shape.
        Returns:
        See above.
      • setText

        public void setText​(java.lang.String text)
        Sets the text of the shape.
        Parameters:
        text - See above.
      • getX

        public double getX()
        Returns the x-coordinate of the top-left corner of an untransformed rectangle.
        Returns:
        See above.
      • setX

        public void setX​(double x)
        Sets the x-coordinate of the top-left corner of an untransformed rectangle.
        Parameters:
        x - See above.
      • getY

        public double getY()
        Returns the y-coordinate of the top-left corner of an untransformed rectangle.
        Returns:
        See above.
      • setY

        public void setY​(double y)
        Sets the y-coordinate of the top-left corner of an untransformed rectangle.
        Parameters:
        y - See above.
      • getWidth

        public double getWidth()
        Returns the width untransformed rectangle.
        Returns:
        See above.
      • setWidth

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

        public double getHeight()
        Returns the height untransformed rectangle.
        Returns:
        See above.
      • setHeight

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