Class TextWrapper

    • Constructor Detail

      • TextWrapper

        public TextWrapper​(TextData text)
        Constructor of the TextWrapper class using a TextData.
        Parameters:
        text - The TextData to wrap.
      • 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​(java.lang.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

      • 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 Punctual
        Returns:
        See above.
      • setX

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

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

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