01: // $Id: Node.java,v 1.2 2004/07/05 05:44:56 belaban Exp $
02:
03: package org.jgroups.demos.wb;
04:
05: import org.jgroups.Address;
06:
07: public class Node implements java.io.Serializable {
08: public double x, y, dx, dy;
09: public boolean fixed;
10: public String lbl = null;
11: public Address addr = null;
12: public int xloc = 0, yloc = 0;
13: public int width = 0;
14: public int height = 0;
15:
16: public String toString() {
17: StringBuffer ret = new StringBuffer();
18: ret.append("name=" + lbl + ", addr=" + addr + " at " + x + ','
19: + y);
20: return ret.toString();
21: }
22: }
|