01: /*
02: * Tuple4d.java
03: * Sun Public License Notice
04: *
05: * The contents of this file are subject to the Sun Public License Version
06: * 1.0 (the "License"). You may not use this file except in compliance with
07: * the License. A copy of the License is available at http://www.sun.com/
08: *
09: * The Original Code is the Java 3D(tm) Scene Graph Editor.
10: * The Initial Developer of the Original Code is Jan Becicka.
11: * Portions created by Jan Becicka are Copyright (C) 2002.
12: * All Rights Reserved.
13: *
14: * Contributor(s): Jan Becicka.
15: *
16: * Created on 5. říjen 2001, 18:50
17: */
18:
19: package org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.vecmath;
20:
21: import org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.NamePool;
22: import org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.BeanCodeGenerator;
23: import org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.Literals;
24:
25: /**
26: *
27: * @author Jan Becicka
28: * @version
29: */
30: public class Tuple4d extends BeanCodeGenerator {
31:
32: public Tuple4d(Object bean, NamePool naming) {
33: super (bean, naming);
34: }
35:
36: /** creates setters e.g. <CODE>t.setTransform(..);</CODE>
37: */
38: protected void createCustomizationCode() {
39: // nothing to set
40: }
41:
42: /** Override this method, if you want to create parametric constructor constr
43: */
44: protected void createConstructionCode() {
45: javax.vecmath.Tuple4d tuple = (javax.vecmath.Tuple4d) bean;
46: constructionCode = getFieldName() + " = new " + beanClassName
47: + "(" + tuple.x + "," + tuple.y + "," + tuple.z + ","
48: + tuple.w + ");\n";
49: }
50: }
|