1 3 package org.jgroups.demos.wb; 4 import org.jgroups.Address; 5 6 7 8 public class Node implements java.io.Serializable { 9 public double x, y, dx, dy; 10 public boolean fixed; 11 public String lbl=null; 12 public Address addr=null; 13 public int xloc=0, yloc=0; 14 public int width=0; 15 public int height=0; 16 17 18 public String toString() { 19 StringBuffer ret=new StringBuffer (); 20 ret.append("name=" + lbl + ", addr=" + addr + " at " + x + ',' + y); 21 return ret.toString(); 22 } 23 } 24 25 | Popular Tags |