Class RectangleShape

    • Constructor Detail

      • RectangleShape

        public RectangleShape​()
        Constructor
      • RectangleShape

        public RectangleShape​(double x,
                              double y,
                              double width,
                              double height)
        Constructor
        Parameters:
        x - X
        y - Y
        width - Width
        height - Height
    • Method Detail

      • isRound

        public boolean isRound​()
        Get is round or not
        Returns:
        Boolean
      • getRoundX

        public double getRoundX​()
        Get round x
        Returns:
        Round x
      • setRoundX

        public void setRoundX​(double value)
        Set round y
        Parameters:
        value - Round y
      • getRoundY

        public double getRoundY​()
        Get round y
        Returns:
        Round y
      • setRoundY

        public void setRoundY​(double value)
        Set round y
        Parameters:
        value - Round y
      • clone

        public java.lang.Object clone​()
        Clone
        Overrides:
        clone in class PolygonShape
        Returns:
        RectangleShape object