Class Rectangle


  • public class Rectangle
    extends java.lang.Object
    • Field Detail

      • x

        public int x
      • y

        public int y
      • height

        public int height
      • width

        public int width
    • Constructor Detail

      • Rectangle

        public Rectangle​(int x,
                         int y,
                         int height,
                         int width)
    • Method Detail

      • getX

        public int getX()
      • getY

        public int getY()
      • setX

        public void setX​(int x)
      • setY

        public void setY​(int y)
      • getHeight

        public int getHeight()
      • setHeight

        public void setHeight​(int height)
      • getWidth

        public int getWidth()
      • setWidth

        public void setWidth​(int width)
      • getPoint

        public Point getPoint()
      • getDimension

        public Dimension getDimension()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object