Class PointWrapper

    • Constructor Detail

      • PointWrapper

        public PointWrapper​(PointData point)
        Constructor of the PointWrapper class using a PointData.
        Parameters:
        point - The PointData to wrap.
      • PointWrapper

        public PointWrapper()
        Constructor of the PointWrapper class using a new empty PointData.
      • PointWrapper

        public PointWrapper​(double x,
                            double y)
        Constructor of the PointWrapper class using a new empty ShapeData.
        Parameters:
        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 punctual shape.
        Specified by:
        getX in interface Punctual
        Returns:
        See above.
      • setX

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

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

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