类 RectangleShape

  • 所有已实现的接口:
    java.lang.Cloneable

    public class RectangleShape
    extends PolygonShape
    作者:
    yaqiang
    • 构造器详细资料

      • RectangleShape

        public RectangleShape()
        Constructor
      • RectangleShape

        public RectangleShape​(double x,
                              double y,
                              double width,
                              double height)
        Constructor
        参数:
        x - X
        y - Y
        width - Width
        height - Height
    • 方法详细资料

      • isRound

        public boolean isRound()
        Get is round or not
        返回:
        Boolean
      • getRoundX

        public double getRoundX()
        Get round x
        返回:
        Round x
      • setRoundX

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

        public double getRoundY()
        Get round y
        返回:
        Round y
      • setRoundY

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

        public java.lang.Object clone()
        Clone
        覆盖:
        clone 在类中 PolygonShape
        返回:
        RectangleShape object