01: /*
02: * $Header: /cvs/j3dfly/J3dEditor/src/org/jdesktop/j3dedit/scenegrapheditor/nodeeditors/panels/BranchGroupPanel.java,v 1.1 2005/04/20 22:21:03 paulby Exp $
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 Paul Byrne.
12: * Portions created by Paul Byrne are Copyright (C) 2002.
13: * All Rights Reserved.
14: *
15: * Contributor(s): Paul Byrne.
16: *
17: **/
18: package org.jdesktop.j3dedit.scenegrapheditor.nodeeditors.panels;
19:
20: import javax.media.j3d.Node;
21: import javax.media.j3d.BranchGroup;
22: import org.jdesktop.j3dedit.scenegrapheditor.nodeeditors.NodeEditorPanel;
23:
24: /**
25: * @author Paul Byrne
26: * @version 1.5, 01/18/02
27: */
28: public class BranchGroupPanel extends NodeEditorPanel {
29:
30: /** Creates new form BranchGroupPanel */
31: public BranchGroupPanel() {
32: initComponents();
33: frameTitle = "BranchGroup";
34: }
35:
36: /** This method is called from within the constructor to
37: * initialize the form.
38: * WARNING: Do NOT modify this code. The content of this method is
39: * always regenerated by the FormEditor.
40: */
41: private void initComponents() {//GEN-BEGIN:initComponents
42: jLabel1 = new javax.swing.JLabel();
43: setLayout(new java.awt.BorderLayout());
44:
45: jLabel1.setText("BranchGroup - No Editable Parameters");
46:
47: add(jLabel1, java.awt.BorderLayout.CENTER);
48:
49: }//GEN-END:initComponents
50:
51: public void setControls() {
52: }
53:
54: public void applyChanges() {
55: setUpdateRequired(false);
56: }
57:
58: public void resetChanges() {
59: setUpdateRequired(false);
60: }
61:
62: protected void setReadCapabilityBits(Node node) {
63: node.setCapability(BranchGroup.ALLOW_CHILDREN_READ);
64: }
65:
66: protected void setReadWriteCapabilityBits(Node node) {
67: node.setCapability(BranchGroup.ALLOW_CHILDREN_READ);
68: node.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE);
69: node.setCapability(BranchGroup.ALLOW_DETACH);
70: node.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND);
71: }
72:
73: // Variables declaration - do not modify//GEN-BEGIN:variables
74: private javax.swing.JLabel jLabel1;
75: // End of variables declaration//GEN-END:variables
76:
77: }
|