Class TextData


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

      • TextData

        public TextData​(omero.model.Shape shape)
        Creates a new instance of Text data from an existing shape.
        Parameters:
        shape - The shape this object represents.
      • TextData

        public TextData()
        Creates a new instance of TextData, creating a new TextI Object.
      • TextData

        public TextData​(java.lang.String text,
                        double x,
                        double y)
        Creates a new instance of the TextData, sets the centre and major, minor axes.
        Parameters:
        text - Object text.
        x - X-Coordinate of the text.
        y - Y-Coordinate of the text.
    • 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 text field.
        Returns:
        See above.
      • setX

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

        public double getY()
        Returns the y-coordinate text field.
        Returns:
        See above.
      • setY

        public void setY​(double y)
        Sets the y-coordinate of the text field.
        Parameters:
        y - See above.