1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package net.jbeans.j3d.bean.property.editor;
24
25 /* ------------------ Import classes (packages) ------------------- *//package-summary/html">class="comment"> ------------------ Import classes (packages) ------------------- *//package-summary.html">class="comment">/* ------------------ Import classes (packages) ------------------- *//package-summary.html">class="comment"> ------------------ Import classes (packages) ------------------- */
26 import javax.vecmath.*;
27
28
29
30
31 /***
32 * A property editor for editing Point4i.
33 *
34 * @version $Revision: 1.3 $
35 * @author Masahiro Takatsuka (masa@jbeans.net)
36 * @see Tuple4iEditor
37 */
38
39 public final class Point4iEditor extends Tuple4iEditor {
40 public Point4iEditor() {
41 super();
42 }
43
44 public Object getValue() {
45 return new Point4i((Tuple4i) super.getValue());
46 }
47
48 public String getJavaInitializationString() {
49 Point4i point = (Point4i) getValue();
50 return "new javax.vecmath.Point4i(" + point.x + ", " + point.y + ", " + point.z + ", " + point.w + ")";
51 }
52 }