KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Map > PointImpl


1 package Map;
2
3 /**
4  * <p>
5  * <ul>
6  * <li> <b>Java Class</b> PointImpl
7  * <li> <b>Source File</b> PointImpl.java
8  * <li> <b>IDL Source File</b> point.idl
9  * <li> <b>IDL Absolute Name</b> ::Point
10  * <li> <b>Repository Identifier</b> IDL:Point:1.0
11  * </ul>
12  * <b>IDL definition:</b>
13  * <pre>
14  * valuetype Point {
15  * ...
16  * };
17  * </pre>
18  * </p>
19  */

20
21 public class PointImpl
22     extends Point
23 {
24     public PointImpl() {}
25
26     public PointImpl(int a_x, int a_y, String JavaDoc a_label) {
27         x = a_x;
28         y = a_y;
29         label = a_label;
30     }
31
32     /**
33      * <p>
34      * Operation: <b>::Point::print</b>.
35      * <pre>
36      * void print ();
37      * </pre>
38      * </p>
39      */

40     public void print () {
41         System.out.println("Point is [" + label + ": (" + x + ", " + y + ")]");
42     }
43
44 }
45
Popular Tags