01: /*
02: * TextureAttributes.java
03: *
04: * Sun Public License Notice
05: *
06: * The contents of this file are subject to the Sun Public License Version
07: * 1.0 (the "License"). You may not use this file except in compliance with
08: * the License. A copy of the License is available at http://www.sun.com/
09: *
10: * The Original Code is the Java 3D(tm) Scene Graph Editor.
11: * The Initial Developer of the Original Code is Jan Becicka.
12: * Portions created by Jan Becicka are Copyright (C) 2002.
13: * All Rights Reserved.
14: *
15: * Contributor(s): Jan Becicka.
16: *
17: * Created on 1. prosinec 2001, 11:49
18: */
19:
20: package org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.spec.javax.media.j3d;
21:
22: import com.sun.j3d.utils.image.TextureLoader;
23: import org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.NamePool;
24: import org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol.BeanCodeGenerator;
25:
26: /**
27: *
28: * @author Jan Becicka
29: * @version
30: */
31: public class TextureAttributes extends BeanCodeGenerator {
32:
33: private String filename;
34:
35: public TextureAttributes(Object bean, NamePool naming) {
36: super (bean, naming);
37: }
38:
39: /** Override this method, if you want to have different default instance (e.g. YourNean(10))
40: * @return instance of bean
41: */
42: protected Object createDefaultInstanceOfBean() {
43: javax.media.j3d.TextureAttributes retValue;
44: retValue = (javax.media.j3d.TextureAttributes) super
45: .createDefaultInstanceOfBean();
46:
47: retValue
48: .setCapability(javax.media.j3d.TextureAttributes.ALLOW_BLEND_COLOR_READ);
49: retValue
50: .setCapability(javax.media.j3d.TextureAttributes.ALLOW_COLOR_TABLE_READ);
51: retValue
52: .setCapability(javax.media.j3d.TextureAttributes.ALLOW_MODE_READ);
53: retValue
54: .setCapability(javax.media.j3d.TextureAttributes.ALLOW_TRANSFORM_READ);
55: ((javax.media.j3d.TextureAttributes) bean)
56: .setCapability(javax.media.j3d.TextureAttributes.ALLOW_BLEND_COLOR_READ);
57: ((javax.media.j3d.TextureAttributes) bean)
58: .setCapability(javax.media.j3d.TextureAttributes.ALLOW_COLOR_TABLE_READ);
59: ((javax.media.j3d.TextureAttributes) bean)
60: .setCapability(javax.media.j3d.TextureAttributes.ALLOW_MODE_READ);
61: ((javax.media.j3d.TextureAttributes) bean)
62: .setCapability(javax.media.j3d.TextureAttributes.ALLOW_TRANSFORM_READ);
63:
64: return retValue;
65: }
66:
67: }
|