01: package org.apache.ojb.broker;
02:
03: /**
04: * Point serves for graphic representation of graphs.
05: * @author Oleg Nitz
06: */
07: public class Point implements java.io.Serializable {
08: private int id;
09: private int x;
10: private int y;
11:
12: public Point() {
13: }
14:
15: public Point(int id, int x, int y) {
16: this .id = id;
17: this .x = x;
18: this .y = y;
19: }
20:
21: public Point(int x, int y) {
22: this .x = x;
23: this .y = y;
24: }
25:
26: public int getX() {
27: return x;
28: }
29:
30: public int getY() {
31: return y;
32: }
33:
34: public int getId() {
35: return id;
36: }
37:
38: public void setX(int x) {
39: this .x = x;
40: }
41:
42: public void setY(int y) {
43: this .y = y;
44: }
45:
46: public void setId(int id) {
47: this .id = id;
48: }
49:
50: public String toString() {
51: return "(" + x + "," + y + ")";
52: }
53: }
|