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;
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 java.beans.*;
27 import javax.media.j3d.*;
28 import javax.vecmath.*;
29
30 import net.jbeans.bean.factory.*;
31 import net.jbeans.util.debug.*;
32
33
34
35
36 /***
37 * J3DBeanUtil defines various helper methods.
38 *
39 * @version $Revision: 1.3 $
40 * @author Masahiro Takatsuka (masa@jbeans.net)
41 */
42
43 public class J3DBeanUtil {
44 private static final boolean DEBUG = Debug.getDebugFlag(J3DBeanUtil.class);
45
46 private static boolean propertyEditorsSet = false;
47 static {
48 if (!propertyEditorsSet) {
49 setPropertyEditors();
50 propertyEditorsSet = true;
51 }
52 }
53 private static boolean factorySet = false;
54
55
56
57
58
59
60
61 private J3DBeanUtil() {
62 super();
63 }
64
65 private static final void setPropertyEditors() {
66 PropertyEditorManager.registerEditor(javax.media.j3d.Transform3D.class, net.jbeans.j3d.bean.property.editor.Transform3DEditor.class);
67 PropertyEditorManager.registerEditor(javax.vecmath.Color3b.class, net.jbeans.j3d.bean.property.editor.Color3bEditor.class);
68 PropertyEditorManager.registerEditor(javax.vecmath.Color3f.class, net.jbeans.j3d.bean.property.editor.Color3fEditor.class);
69 PropertyEditorManager.registerEditor(javax.vecmath.Color4b.class, net.jbeans.j3d.bean.property.editor.Color4bEditor.class);
70 PropertyEditorManager.registerEditor(javax.vecmath.Color4f.class, net.jbeans.j3d.bean.property.editor.Color4fEditor.class);
71 PropertyEditorManager.registerEditor(javax.vecmath.Point2d.class, net.jbeans.j3d.bean.property.editor.Point2dEditor.class);
72 PropertyEditorManager.registerEditor(javax.vecmath.Point2f.class, net.jbeans.j3d.bean.property.editor.Point2fEditor.class);
73 PropertyEditorManager.registerEditor(javax.vecmath.Point3d.class, net.jbeans.j3d.bean.property.editor.Point3dEditor.class);
74 PropertyEditorManager.registerEditor(javax.vecmath.Point3f.class, net.jbeans.j3d.bean.property.editor.Point3fEditor.class);
75 PropertyEditorManager.registerEditor(javax.vecmath.Point3i.class, net.jbeans.j3d.bean.property.editor.Point3iEditor.class);
76 PropertyEditorManager.registerEditor(javax.vecmath.Point4d.class, net.jbeans.j3d.bean.property.editor.Point4dEditor.class);
77 PropertyEditorManager.registerEditor(javax.vecmath.Point4f.class, net.jbeans.j3d.bean.property.editor.Point4fEditor.class);
78 PropertyEditorManager.registerEditor(javax.vecmath.Point4i.class, net.jbeans.j3d.bean.property.editor.Point4iEditor.class);
79 PropertyEditorManager.registerEditor(javax.vecmath.Vector2d.class, net.jbeans.j3d.bean.property.editor.Vector2dEditor.class);
80 PropertyEditorManager.registerEditor(javax.vecmath.Vector2f.class, net.jbeans.j3d.bean.property.editor.Vector2fEditor.class);
81 PropertyEditorManager.registerEditor(javax.vecmath.Vector3d.class, net.jbeans.j3d.bean.property.editor.Vector3dEditor.class);
82 PropertyEditorManager.registerEditor(javax.vecmath.Vector3f.class, net.jbeans.j3d.bean.property.editor.Vector3fEditor.class);
83 PropertyEditorManager.registerEditor(javax.vecmath.Vector4d.class, net.jbeans.j3d.bean.property.editor.Vector4dEditor.class);
84 PropertyEditorManager.registerEditor(javax.vecmath.Vector4f.class, net.jbeans.j3d.bean.property.editor.Vector4fEditor.class);
85 }
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102 }