Class Rectangle2


  • public class Rectangle2
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getH()  
      int getW()  
      int getX()  
      int getY()  
      boolean isValid()  
      void setH​(int h)  
      void setW​(int w)  
      void setX​(int x)  
      void setY​(int y)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Rectangle2

        public Rectangle2​(int x,
                          int y,
                          int w,
                          int h)
      • Rectangle2

        public Rectangle2​(Rectangle rectangle)
    • Method Detail

      • getX

        public int getX()
      • setX

        public void setX​(int x)
      • getY

        public int getY()
      • setY

        public void setY​(int y)
      • getW

        public int getW()
      • setW

        public void setW​(int w)
      • getH

        public int getH()
      • setH

        public void setH​(int h)
      • isValid

        public boolean isValid()