Class Rect


  • public class Rect
    extends java.lang.Object
    Simplified rectangle class. Very much similar like java.awt.Rectangle, but we want to decouple the packages ...
    • Constructor Summary

      Constructors 
      Constructor Description
      Rect()  
    • Method Summary

      Modifier and Type Method Description
      void setBounds​(int x, int y, int width, int height)  
      void setBounds​(Rect rect)  
      • Methods inherited from class java.lang.Object

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

      • Rect

        public Rect()
    • Method Detail

      • setBounds

        public void setBounds​(Rect rect)
        Parameters:
        rect - a rect angle
      • setBounds

        public void setBounds​(int x,
                              int y,
                              int width,
                              int height)
        Parameters:
        x - the new X coordinate for the upper-left corner of this rectangle
        y - the new Y coordinate for the upper-left corner of this rectangle
        width - the new width for this rectangle
        height - the new height for this rectangle