Class TextWrapper

    • Constructor Detail

      • TextWrapper

        public TextWrapper​(TextData shape)
        Constructor of the TextWrapper class using a TextData.
        Parameters:
        shape - the shape
      • TextWrapper

        public TextWrapper()
        Constructor of the TextWrapper class using a new empty ShapeData.
      • TextWrapper

        public TextWrapper​(TextRoi text)
        Constructor of the TextWrapper class using an ImageJ TextRoi.
        Parameters:
        text - An ImageJ TextRoi.
      • TextWrapper

        public TextWrapper​(String text,
                           double x,
                           double y)
        Creates a new instance of the TextWrapper, sets the centre and major, minor axes.
        Parameters:
        text - Object text.
        x - x-coordinate of the shape.
        y - y-coordinate of the shape.
    • Method Detail

      • getX

        public double getX()
        Returns the x-coordinate of the shape.
        Returns:
        See above.
      • setX

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

        public double getY()
        Returns the y coordinate of the shape.
        Returns:
        See above.
      • setY

        public void setY​(double y)
        Sets the y-coordinate of the shape.
        Parameters:
        y - See above.
      • setCoordinates

        public void setCoordinates​(double x,
                                   double y)
        Sets the coordinates of the TextData shape.
        Parameters:
        x - x-coordinate of the TextData shape.
        y - y-coordinate of the TextData shape.
      • getCoordinates

        public double[] getCoordinates()
        Gets the coordinates of the TextData shape.
        Returns:
        Array of coordinates containing {X,Y}.
      • setCoordinates

        public void setCoordinates​(double[] coordinates)
        Sets the coordinates of the TextData object.
        Parameters:
        coordinates - Array of coordinates containing {X,Y}.