01: /*
02: * MyGWT Widget Library
03: * Copyright(c) 2007, MyGWT.
04: * licensing@mygwt.net
05: *
06: * http://mygwt.net/license
07: */
08: package net.mygwt.ui.client.util;
09:
10: /**
11: * Instances of this class represent places on the (x, y) coordinate plane.
12: *
13: * @see Rectangle
14: */
15: public class Point {
16:
17: /**
18: * The x coordinate of the point
19: */
20: public int x;
21:
22: /**
23: * The y coordinate of the point
24: */
25: public int y;
26:
27: /**
28: * Constructs a new point with the given x and y coordinates.
29: *
30: * @param x the x coordinate of the new point
31: * @param y the y coordinate of the new point
32: */
33: public Point(int x, int y) {
34: this .x = x;
35: this .y = y;
36: }
37:
38: public String toString() {
39: return ("x: " + x + ", y: " + y);
40: }
41:
42: }
|