KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > demos > wb > Node


1 // $Id: Node.java,v 1.2 2004/07/05 05:44:56 belaban Exp $
2

3 package org.jgroups.demos.wb;
4 import org.jgroups.Address;
5
6
7
8 public class Node implements java.io.Serializable JavaDoc {
9     public double x, y, dx, dy;
10     public boolean fixed;
11     public String JavaDoc 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 JavaDoc toString() {
19     StringBuffer JavaDoc ret=new StringBuffer JavaDoc();
20     ret.append("name=" + lbl + ", addr=" + addr + " at " + x + ',' + y);
21     return ret.toString();
22     }
23 }
24
25
Popular Tags