Class LineWrapper

    • Constructor Detail

      • LineWrapper

        public LineWrapper​(LineData line)
        Constructor of the LineWrapper class using a LineData.
        Parameters:
        line - The LineData to wrap.
      • LineWrapper

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

        public LineWrapper​(Line line)
        Constructor of the LineWrapper class using an ImageJ Line ROI.
        Parameters:
        line - An ImageJ Line ROI.
      • LineWrapper

        public LineWrapper​(double x1,
                           double y1,
                           double x2,
                           double y2)
        Constructor of the RectangleWrapper class using a new LineData.
        Parameters:
        x1 - x1-coordinate of the shape.
        y1 - y1-coordinate of the shape.
        x2 - x2-coordinate of the shape.
        y2 - y2-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
      • getX1

        public double getX1()
        Returns the x-coordinate of the starting point of an untransformed line.
        Specified by:
        getX1 in interface Line
        Returns:
        See above.
      • setX1

        public void setX1​(double x1)
        Set the x-coordinate of the starting point of an untransformed line.
        Specified by:
        setX1 in interface Line
        Parameters:
        x1 - See above.
      • getX2

        public double getX2()
        Returns the x-coordinate of the end point of an untransformed line.
        Specified by:
        getX2 in interface Line
        Returns:
        See above.
      • setX2

        public void setX2​(double x2)
        Set the x-coordinate of the end point of an untransformed line.
        Specified by:
        setX2 in interface Line
        Parameters:
        x2 - See above.
      • getY1

        public double getY1()
        Returns the y-coordinate of the starting point of an untransformed line.
        Specified by:
        getY1 in interface Line
        Returns:
        See above.
      • setY1

        public void setY1​(double y1)
        Set the y-coordinate of the starting point of an untransformed line.
        Specified by:
        setY1 in interface Line
        Parameters:
        y1 - See above.
      • getY2

        public double getY2()
        Returns the y-coordinate of the end point of an untransformed line.
        Specified by:
        getY2 in interface Line
        Returns:
        See above.
      • setY2

        public void setY2​(double y2)
        Set the y-coordinate of the end point of an untransformed line.
        Specified by:
        setY2 in interface Line
        Parameters:
        y2 - See above.