KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > piaget > analyze > Coord


1 /*
2  * Coord.java
3  *
4  * Created on May 10, 2005, 11:14 AM
5  */

6
7 package org.netbeans.modules.piaget.analyze;
8
9 /**
10  *
11  * @author loicsegapelli
12  */

13 public class Coord {
14     
15     public long x;
16     public int y;
17     
18     /** Creates a new instance of Coord */
19     public Coord(long X, boolean activated){
20         x = X;
21         y = activated ? 1 : 0;
22     }
23     
24     public String JavaDoc toString(){
25         return "coord x:"+new Long JavaDoc(x).toString()+" y:"+new Integer JavaDoc(y).toString();
26     }
27     
28 }
29
Popular Tags