Loading...
Searching...
No Matches
Rectangle.java
Go to the documentation of this file.
1package com.navigine.idl.java;
2
23public final class Rectangle {
24
25
26 /*package*/ final int x;
27
28 /*package*/ final int y;
29
30 /*package*/ final int width;
31
32 /*package*/ final int height;
33
37 public Rectangle(
38 int x,
39 int y,
40 int width,
41 int height) {
42 this.x = x;
43 this.y = y;
44 this.width = width;
45 this.height = height;
46 }
47
53 public int getX() {
54 return x;
55 }
56
61 public int getY() {
62 return y;
63 }
64
70 public int getWidth() {
71 return width;
72 }
73
79 public int getHeight() {
80 return height;
81 }
82
83 @Override
84 public String toString() {
85 return "Rectangle{" +
86 "x=" + x +
87 "," + "y=" + y +
88 "," + "width=" + width +
89 "," + "height=" + height +
90 "}";
91 }
92
93}