View Javadoc
1   package com.jed.util;
2   
3   /**
4    * Data object consisting of a height and width that is used to represent a Rectangle.
5    * 
6    * @author jlinde, Peter Colapietro
7    * @since 0.1.0
8    *
9    */
10  public final class Rectangle {
11      
12      /**
13       * 
14       */
15      private int width;
16      
17      /**
18       * 
19       */
20      private int height;
21  
22      /**
23       *
24       * @param width Width of the Rectangle.
25       * @param height Height of the Rectangle.
26       */
27  
28      public Rectangle(int width, int height) {
29          this.width = width;
30          this.height = height;
31      }
32  
33      /**
34       * 
35       * @return width
36       */
37      public int getWidth() {
38          return width;
39      }
40  
41      /**
42       * 
43       * @param width width
44       */
45      public void setWidth(int width) {
46          this.width = width;
47      }
48  
49      /**
50       * 
51       * @return height
52       */
53      public int getHeight() {
54          return height;
55      }
56  
57      /**
58       * 
59       * @param height height
60       */
61      public void setHeight(int height) {
62          this.height = height;
63      }
64  
65  }