Normand Briere
2019-05-01 20c1a07b76c39462594aedfedfe6e6adb17cd552
ObjEditor.java
....@@ -19,6 +19,8 @@
1919 import //weka.core.
2020 matrix.Matrix;
2121
22
+import grafeme.ui.*;
23
+
2224 class ObjEditor /*extends JFrame*/ implements iCallBack, ObjectUI,
2325 ActionListener, ChangeListener,
2426 InputMethodListener,
....@@ -31,6 +33,9 @@
3133 boolean timeline;
3234 boolean wasFullScreen;
3335
36
+ GroupEditor callee;
37
+ JFrame frame;
38
+
3439 // SCRIPT
3540
3641 transient JFrame textpanel = null;
....@@ -121,47 +126,52 @@
121126 void keyPressed(int key, int modifiers)
122127 {
123128 System.out.println("KEY PRESSED");
124
- CameraPane.theRenderer.keyPressed(key, modifiers);
129
+ Globals.theRenderer.keyPressed(key, modifiers);
125130 }
126131 */
127132
128133 static GridBagConstraints aConstraints;
129134 static GridBagConstraints aWindowConstraints;
130
- GroupEditor callee;
131
- JFrame frame;
135
+
132136 static int GRIDWIDTH = 100; // 4;
133137
134138 public void closeUI()
135139 {
136140 //new Exception().printStackTrace();
137
- System.out.println("this = " + this);
138
- System.out.println("objEditor = " + objEditor);
141
+// System.out.println("this = " + this);
142
+// System.out.println("objEditor = " + objEditor);
139143 //nameField.removeActionListener(this);
140
- objEditor.ctrlPanel.remove(nameField);
144
+// objEditor.ctrlPanel.remove(nameField);
141145
142146 if (!GroupEditor.allparams)
143147 return;
144148
145
- objEditor.ctrlPanel.remove(liveCB);
146
- objEditor.ctrlPanel.remove(hideCB);
147
- objEditor.ctrlPanel.remove(markCB);
148
-
149
- objEditor.ctrlPanel.remove(randomCB);
150
- objEditor.ctrlPanel.remove(speedupCB);
151
- objEditor.ctrlPanel.remove(rewindCB);
152
-
153
- objEditor.ctrlPanel.remove(resetButton);
154
- objEditor.ctrlPanel.remove(stepButton);
155
-// objEditor.ctrlPanel.remove(stepAllButton);
156
-// objEditor.ctrlPanel.remove(resetAllButton);
157
- objEditor.ctrlPanel.remove(link2masterCB);
158
- //objEditor.ctrlPanel.remove(flipVCB);
159
- //objEditor.ctrlPanel.remove(texresMenu);
160
- objEditor.ctrlPanel.remove(slowerButton);
161
- objEditor.ctrlPanel.remove(fasterButton);
162
- objEditor.ctrlPanel.remove(remarkButton);
149
+// objEditor.ctrlPanel.remove(liveCB);
150
+// objEditor.ctrlPanel.remove(hideCB);
151
+// objEditor.ctrlPanel.remove(markCB);
152
+//
153
+// objEditor.ctrlPanel.remove(randomCB);
154
+// objEditor.ctrlPanel.remove(speedupCB);
155
+// objEditor.ctrlPanel.remove(rewindCB);
156
+//
157
+// objEditor.ctrlPanel.remove(resetButton);
158
+// objEditor.ctrlPanel.remove(stepButton);
159
+//// objEditor.ctrlPanel.remove(stepAllButton);
160
+//// objEditor.ctrlPanel.remove(resetAllButton);
161
+// objEditor.ctrlPanel.remove(link2masterCB);
162
+// //objEditor.ctrlPanel.remove(flipVCB);
163
+// //objEditor.ctrlPanel.remove(texresMenu);
164
+// objEditor.ctrlPanel.remove(slowerButton);
165
+// objEditor.ctrlPanel.remove(fasterButton);
166
+// objEditor.ctrlPanel.remove(remarkButton);
163167
164
- Remove(normalpushField);
168
+ objEditor.ctrlPanel.remove(namePanel);
169
+ objEditor.ctrlPanel.remove(setupPanel);
170
+ objEditor.ctrlPanel.remove(commandsPanel);
171
+ objEditor.ctrlPanel.remove(pushPanel);
172
+ //objEditor.ctrlPanel.remove(fillPanel);
173
+
174
+ //Remove(normalpushField);
165175 }
166176
167177 public ObjEditor GetEditor()
....@@ -309,7 +319,7 @@
309319 toggleTextureItem.setState(CameraPane.textureon);
310320 cameraMenu.add(toggleLiveItem = new CheckboxMenuItem("Live"));
311321 toggleLiveItem.addItemListener(this);
312
- toggleLiveItem.setState(CameraPane.isLIVE());
322
+ toggleLiveItem.setState(Globals.isLIVE());
313323 cameraMenu.add(stepItem = new MenuItem("Step"));
314324 stepItem.addActionListener(this);
315325 // cameraMenu.add(toggleDLItem = new CheckboxMenuItem("Display List"));
....@@ -349,21 +359,23 @@
349359 objectPanel = new JTabbedPane();
350360 toolbarPanel = new JPanel();
351361 toolbarPanel.setName("Toolbar");
352
- treePanel = new JPanel();
362
+ treePanel = new cGridBag();
353363 treePanel.setName("Tree");
354
- ctrlPanel = new JPanel(); // new GridBagLayout());
364
+ ctrlPanel = new cGridBag().setVertical(false); // new GridBagLayout());
355365 ctrlPanel.setName("Edit");
356
- materialPanel = new JPanel();
366
+ materialPanel = new cGridBag().setVertical(true);
357367 materialPanel.setName("Material");
358368 /*JTextPane*/
359369 infoarea = createTextPane();
370
+ doc = infoarea.getStyledDocument();
371
+
360372 infoarea.setEditable(true);
361373 SetText();
362374 // infoarea.setFont(infoarea.getFont().deriveFont(10, 14f));
363375 // infoarea.setOpaque(false);
364376 // //infoarea.setForeground(textcolor);
365
- infoarea.setLineWrap(true);
366
- infoarea.setWrapStyleWord(true);
377
+// TEXTAREA infoarea.setLineWrap(true);
378
+// TEXTAREA infoarea.setWrapStyleWord(true);
367379 infoPanel = new JScrollPane(infoarea, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //AS_NEEDED);
368380 infoPanel.setPreferredSize(new Dimension(50, 200));
369381 infoPanel.setName("Info");
....@@ -374,16 +386,16 @@
374386 mainPanel.setName("Main");
375387 mainPanel.setContinuousLayout(true);
376388 mainPanel.setOneTouchExpandable(true);
377
- mainPanel.setDividerLocation(1.0);
378389 mainPanel.setDividerSize(9);
379
- mainPanel.setResizeWeight(0);
390
+ mainPanel.setDividerLocation(0.5); //1.0);
391
+ mainPanel.setResizeWeight(0.5);
380392
381393 //ctrlPanel.setLayout(new GridLayout(4, 1, 5, 5));
382394 //mainPanel.setLayout(new GridBagLayout());
383395 toolbarPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
384
- treePanel.setLayout(new GridBagLayout());
385
- ctrlPanel.setLayout(new GridBagLayout());
386
- materialPanel.setLayout(new GridBagLayout());
396
+// treePanel.setLayout(new GridBagLayout());
397
+ //ctrlPanel.setLayout(new GridBagLayout());
398
+ //materialPanel.setLayout(new GridBagLayout());
387399
388400 aConstraints = new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0,
389401 GridBagConstraints.NORTHEAST, GridBagConstraints.BOTH, new Insets(1, 1, 1, 1), 0, 0);
....@@ -422,7 +434,7 @@
422434 static String newline = "\n";
423435 protected static final String buttonString = "JButton";
424436 StyledDocument doc;
425
- JTextArea infoarea;
437
+ JTextPane infoarea;
426438
427439 void ClearInfo()
428440 {
....@@ -489,7 +501,10 @@
489501 }
490502
491503 if (full)
492
- si.SendInfo(" BBox: " + minima + " - " + maxima, "regular");
504
+ {
505
+ si.SendInfo(" BBox min: " + minima, "regular");
506
+ si.SendInfo(" BBox max: " + maxima, "regular");
507
+ }
493508
494509 if (sel.bRep != null)
495510 {
....@@ -587,6 +602,9 @@
587602 {
588603 CameraPane.pointflow = (PointFlow) sel;
589604 }
605
+
606
+ si.SendInfo("_____________________", "regular");
607
+ si.SendInfo("", "regular");
590608 }
591609 }
592610
....@@ -618,52 +636,52 @@
618636 cameraView.ToggleFullScreen();
619637 }
620638
621
- private JTextArea createTextPane()
639
+ private JTextPane createTextPane()
622640 {
623
- String[] initString =
624
- {
625
- "This is an editable JTextPane, ", //regular
626
- "another ", //italic
627
- "styled ", //bold
628
- "text ", //small
629
- "component, ", //large
630
- "which supports embedded components..." + newline,//regular
631
- " " + newline, //button
632
- "...and embedded icons..." + newline, //regular
633
- " ", //icon
634
- newline + "JTextPane is a subclass of JEditorPane that "
635
- + "uses a StyledEditorKit and StyledDocument, and provides "
636
- + "cover methods for interacting with those objects."
637
- };
641
+// TEXTAREA String[] initString =
642
+// {
643
+// "This is an editable JTextPane, ", //regular
644
+// "another ", //italic
645
+// "styled ", //bold
646
+// "text ", //small
647
+// "component, ", //large
648
+// "which supports embedded components..." + newline,//regular
649
+// " " + newline, //button
650
+// "...and embedded icons..." + newline, //regular
651
+// " ", //icon
652
+// newline + "JTextPane is a subclass of JEditorPane that "
653
+// + "uses a StyledEditorKit and StyledDocument, and provides "
654
+// + "cover methods for interacting with those objects."
655
+// };
656
+//
657
+// String[] initStyles =
658
+// {
659
+// "regular", "italic", "bold", "small", "large",
660
+// "regular", "button", "regular", "icon",
661
+// "regular"
662
+// };
663
+//
664
+// JTextPane textPane = new JTextPane();
665
+// textPane.setEditable(true);
666
+// /*StyledDocument*/ doc = textPane.getStyledDocument();
667
+// addStylesToDocument(doc);
668
+//
669
+// try
670
+// {
671
+// for (int j = 0; j < 2; j++)
672
+// {
673
+// for (int i = 0; i < initString.length; i++)
674
+// {
675
+// doc.insertString(doc.getLength(), initString[i],
676
+// doc.getStyle(initStyles[i]));
677
+// }
678
+// }
679
+// } catch (BadLocationException ble)
680
+// {
681
+// System.err.println("Couldn't insert initial text into text pane.");
682
+// }
638683
639
- String[] initStyles =
640
- {
641
- "regular", "italic", "bold", "small", "large",
642
- "regular", "button", "regular", "icon",
643
- "regular"
644
- };
645
-
646
- JTextPane textPane = new JTextPane();
647
- textPane.setEditable(true);
648
- /*StyledDocument*/ doc = textPane.getStyledDocument();
649
- addStylesToDocument(doc);
650
-
651
- try
652
- {
653
- for (int j = 0; j < 2; j++)
654
- {
655
- for (int i = 0; i < initString.length; i++)
656
- {
657
- doc.insertString(doc.getLength(), initString[i],
658
- doc.getStyle(initStyles[i]));
659
- }
660
- }
661
- } catch (BadLocationException ble)
662
- {
663
- System.err.println("Couldn't insert initial text into text pane.");
664
- }
665
-
666
- return new JTextArea(); // textPane;
684
+ return new JTextPane(); // textPane;
667685 }
668686
669687 protected void addStylesToDocument(StyledDocument doc)
....@@ -763,115 +781,83 @@
763781 JButton slowerButton;
764782 JButton fasterButton;
765783 JButton remarkButton;
784
+
785
+ cGridBag namePanel;
786
+ cGridBag setupPanel;
787
+ cGridBag commandsPanel;
788
+ cGridBag pushPanel;
789
+ cGridBag fillPanel;
766790
767
- JCheckBox AddCheckBox(ObjEditor oe, String label, boolean on)
791
+ JCheckBox AddCheckBox(cGridBag panel, String label, boolean on)
768792 {
769793 JCheckBox cb;
770794
771
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
772
- oe.aConstraints.gridwidth = 1; // 3;
773
-// oe.aConstraints.weightx = 1;
774
-// oe.aConstraints.anchor = GridBagConstraints.WEST;
775
- oe.ctrlPanel.add(cb = new JCheckBox(label, on), oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
795
+ panel.add(cb = new JCheckBox(label, on)); //, oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
776796 cb.addItemListener(this);
777
-// oe.aConstraints.anchor = GridBagConstraints.EAST;
778
- oe.aConstraints.gridwidth = 1;
779
- oe.aConstraints.gridx += 1;
780797
781798 return cb;
782799 }
783800
784
- cButton AddButton(ObjEditor oe, String label)
801
+ cButton AddButton(cGridBag panel, String label)
785802 {
786803 cButton cb;
787804
788
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
789
- oe.aConstraints.gridwidth = 1;
790
-// oe.aConstraints.weightx = 1;
791
-// oe.aConstraints.anchor = GridBagConstraints.WEST;
792
- oe.ctrlPanel.add(cb = new cButton(label), oe.aConstraints, oe.ctrlPanel.getComponentCount() - 1);
805
+ panel.add(cb = new cButton(label)); //, oe.aConstraints, oe.ctrlPanel.getComponentCount() - 1);
793806 cb.addActionListener(this);
794
-// oe.aConstraints.anchor = GridBagConstraints.EAST;
795
- oe.aConstraints.gridwidth = 1;
796
- oe.aConstraints.gridx += 1;
797807
798808 return cb;
799809 }
800810
801
- JComboBox AddCombo(ObjEditor oe, java.util.Vector list, int item)
811
+ JComboBox AddCombo(cGridBag panel, java.util.Vector list, int item)
802812 {
803813 JComboBox combo;
804814
805
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
806
- oe.ctrlPanel.add(combo = new JComboBox(new cListModel(list, item)), oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
807
- oe.aConstraints.gridx += 1;
815
+ panel.add(combo = new JComboBox(new cListModel(list, item))); //, oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
808816 combo.addActionListener(this);
809817
810818 return combo;
811819 }
812820
813
- NumberSlider AddSlider(JPanel ctrlPanel, String label, double min, double max, double current, double pow)
821
+ cGridBag AddSlider(cGridBag panel, String label, double min, double max, double current, double pow)
814822 {
815
- NumberSlider combo;
823
+ cGridBag control = new cGridBag();
824
+
825
+ cNumberSlider combo;
816826
817827 JLabel jlabel = new JLabel(label);
818
-
819
- aConstraints.fill = GridBagConstraints.VERTICAL;
820828 jlabel.setHorizontalAlignment(SwingConstants.TRAILING);
821
- aConstraints.gridwidth = 1;
822
- ctrlPanel.add(jlabel, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
823
- aConstraints.gridx += 1;
824
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
825
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
826
- ctrlPanel.add(combo = new NumberSlider(min, max, pow), aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
827
- aConstraints.gridx += 1;
828
- aConstraints.gridwidth = 1;
829
-
829
+ control.add(jlabel); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
830
+ control.add(combo = new cNumberSlider(this, min, max, pow)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
830831 combo.setFloat(current);
831
-
832
- combo.label = jlabel;
833
-
834
- combo.addChangeListener(this);
835
-
836
- return combo;
832
+
833
+ panel.add(control);
834
+
835
+ return control;
837836 }
838837
839
- NumberSlider AddSlider(JPanel ctrlPanel, String label, int min, int max, int current)
838
+ cGridBag AddSlider(cGridBag panel, String label, int min, int max, int current)
840839 {
841
- NumberSlider combo;
840
+ cGridBag control = new cGridBag();
841
+
842
+ cNumberSlider combo;
842843
843844 JLabel jlabel = new JLabel(label);
844
-
845
- aConstraints.fill = GridBagConstraints.VERTICAL;
846845 jlabel.setHorizontalAlignment(SwingConstants.TRAILING);
847
- aConstraints.gridwidth = 2;
848
- ctrlPanel.add(jlabel, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
849
- aConstraints.gridx += 1;
850
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
851
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
852
- ctrlPanel.add(combo = new NumberSlider(min, max), aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
853
- aConstraints.gridx += 1;
854
- aConstraints.gridwidth = 1;
855
-
846
+ control.add(jlabel); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
847
+ control.add(combo = new cNumberSlider(this, min, max)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
856848 combo.setInteger(current);
857849
858
- combo.label = jlabel;
859
-
860
- combo.addChangeListener(this);
861
-
862
- return combo;
850
+ panel.add(control);
851
+
852
+ return control;
863853 }
864854
865
- JTextArea AddText(JPanel ctrlPanel, String name)
855
+ JTextArea AddText(cGridBag ctrlPanel, String name)
866856 {
867857 JTextArea text;
868858
869
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
870
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
871
- ctrlPanel.add(text = new JTextArea(name), aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
859
+ ctrlPanel.add(text = new JTextArea(name)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);
872860 text.addCaretListener(this);
873
- aConstraints.gridx += 1;
874
- aConstraints.gridwidth = 1;
875861
876862 return text;
877863 }
....@@ -901,9 +887,16 @@
901887 objEditor.ctrlPanel.remove(j);
902888 }
903889
890
+ void Remove(cNumberSlider j)
891
+ {
892
+ j.removeChangeListener(this);
893
+ //objEditor.ctrlPanel.remove(j.label);
894
+ objEditor.ctrlPanel.remove(j);
895
+ }
896
+
904897 /*
905898 */
906
- void Return() // ObjEditor oe)
899
+ void Return0() // ObjEditor oe)
907900 {
908901 aConstraints.gridy += 1;
909902 aConstraints.gridx = 0;
....@@ -962,33 +955,52 @@
962955 // oe.aConstraints.weighty = 0;
963956 // oe.aConstraints.gridx = 0;
964957 // oe.aConstraints.gridy = 0;
965
- SetupName(oe);
958
+ //SetupName(oe);
959
+
960
+ namePanel = new cGridBag();
961
+
962
+ nameField = AddText(namePanel, copy.GetName());
963
+ namePanel.add(nameField);
964
+ oe.ctrlPanel.add(namePanel);
965
+
966
+ oe.ctrlPanel.Return();
966967
967968 if (!GroupEditor.allparams)
968969 return;
969970
970
- liveCB = AddCheckBox(oe, "Live", copy.live);
971
- link2masterCB = AddCheckBox(oe, "Supp", copy.link2master);
972
- hideCB = AddCheckBox(oe, "Hide", copy.hide);
971
+ setupPanel = new cGridBag().setVertical(false);
972
+
973
+ liveCB = AddCheckBox(setupPanel, "Live", copy.live);
974
+ link2masterCB = AddCheckBox(setupPanel, "Supp", copy.link2master);
975
+ hideCB = AddCheckBox(setupPanel, "Hide", copy.hide);
973976 // Return();
974
- markCB = AddCheckBox(oe, "Mark", copy.marked);
975
- rewindCB = AddCheckBox(oe, "Rew", copy.rewind);
976
- randomCB = AddCheckBox(oe, "Rand", copy.random);
977
- Return();
978
- resetButton = AddButton(oe, "Reset");
979
- stepButton = AddButton(oe, "Step");
977
+ markCB = AddCheckBox(setupPanel, "Mark", copy.marked);
978
+ rewindCB = AddCheckBox(setupPanel, "Rew", copy.rewind);
979
+ randomCB = AddCheckBox(setupPanel, "Rand", copy.random);
980
+
981
+ oe.ctrlPanel.add(setupPanel);
982
+ oe.ctrlPanel.Return();
983
+
984
+ commandsPanel = new cGridBag().setVertical(false);
985
+
986
+ resetButton = AddButton(commandsPanel, "Reset");
987
+ stepButton = AddButton(commandsPanel, "Step");
980988 // resetAllButton = AddButton(oe, "Reset All");
981989 // stepAllButton = AddButton(oe, "Step All");
982
- speedupCB = AddCheckBox(oe, "Speed", copy.speedup);
990
+ speedupCB = AddCheckBox(commandsPanel, "Speed", copy.speedup);
983991 // Return();
984
- slowerButton = AddButton(oe, "Slow");
985
- fasterButton = AddButton(oe, "Fast");
986
- remarkButton = AddButton(oe, "Rem");
992
+ slowerButton = AddButton(commandsPanel, "Slow");
993
+ fasterButton = AddButton(commandsPanel, "Fast");
994
+ remarkButton = AddButton(commandsPanel, "Remark");
987995
988
- Return();
996
+ oe.ctrlPanel.add(commandsPanel);
997
+ oe.ctrlPanel.Return();
989998
990
- normalpushField = AddSlider(oe.ctrlPanel, "Push", -10, 10, 0, -1);
991
- Return();
999
+ pushPanel = AddSlider(oe.ctrlPanel, "Push", -10, 10, 0, 1);
1000
+ normalpushField = (cNumberSlider)pushPanel.getComponent(1);
1001
+ //Return();
1002
+
1003
+ oe.ctrlPanel.Return();
9921004
9931005 // oe.ctrlPanel.add(stepButton = new cButton("Step"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2);
9941006 // ObjEditor.aConstraints.gridx += 1;
....@@ -1083,7 +1095,7 @@
10831095 oe.aConstraints.gridwidth = 1;
10841096 /**/
10851097 nameField = AddText(oe.ctrlPanel, copy.GetName());
1086
- Return();
1098
+ oe.ctrlPanel.Return();
10871099
10881100 //ctrlPanel.add(textureButton = new Button("Texture..."));
10891101 //textureButton.setEnabled(false);
....@@ -1185,7 +1197,8 @@
11851197 //JPanel worldPanel =
11861198 // new gov.nasa.worldwind.examples.ApplicationTemplate.AppPanel(null, true);
11871199 //worldPanel.setName("World");
1188
- centralPanel = new JPanel(new BorderLayout());
1200
+ centralPanel = new cGridBag();
1201
+ centralPanel.preferredWidth = 20;
11891202 timelinePanel = new JPanel(new BorderLayout());
11901203 timelineMenubar = new timeflow.app.TimeflowApp().TimeFlowWindow(timelinePanel);
11911204
....@@ -1215,12 +1228,13 @@
12151228 //frontView.object = copy;
12161229 //sideView.object = copy;
12171230
1218
- XYZPanel = new JPanel();
1219
- XYZPanel.setLayout(new GridLayout(3, 1, 5, 5));
1231
+ XYZPanel = new cGridBag().setVertical(true);
1232
+ //XYZPanel.setLayout(new GridLayout(3, 1, 5, 5));
12201233
1221
- XYZPanel.add(/*BorderLayout.SOUTH,*/sideView); // Scroll);
1222
- XYZPanel.add(/*BorderLayout.CENTER,*/frontView); // Scroll);
1223
- XYZPanel.add(/*BorderLayout.NORTH,*/topView); // Scroll);
1234
+ XYZPanel.preferredWidth = 5;
1235
+ XYZPanel.addComponent(/*BorderLayout.SOUTH,*/sideView); // Scroll);
1236
+ XYZPanel.addComponent(/*BorderLayout.CENTER,*/frontView); // Scroll);
1237
+ XYZPanel.addComponent(/*BorderLayout.NORTH,*/topView); // Scroll);
12241238
12251239 /*
12261240 gridPanel = new JPanel(); //new BorderLayout());
....@@ -1258,10 +1272,11 @@
12581272 //JScrollPane tmp = new JScrollPane(ctrlPanel, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
12591273 //tmp.setName("Edit");
12601274 objectPanel.add(materialPanel);
1261
- JPanel north = new JPanel(new BorderLayout());
1262
- north.setName("Edit");
1263
- north.add(ctrlPanel, BorderLayout.NORTH);
1264
- objectPanel.add(north);
1275
+// JPanel north = new JPanel(new BorderLayout());
1276
+// north.setName("Edit");
1277
+// north.add(ctrlPanel, BorderLayout.NORTH);
1278
+// objectPanel.add(north);
1279
+ objectPanel.add(ctrlPanel);
12651280 objectPanel.add(infoPanel);
12661281
12671282 /*
....@@ -1282,16 +1297,23 @@
12821297 scrollpane.setWheelScrollingEnabled(true);
12831298 scrollpane.addMouseWheelListener(this); // Default not fast enough
12841299
1285
- /*JTabbedPane*/ scenePanel = new JTabbedPane();
1286
- scenePanel.add(scrollpane);
1300
+ /*JTabbedPane*/ scenePanel = new cGridBag();
1301
+ scenePanel.preferredWidth = 7;
1302
+
1303
+ JTabbedPane tabbedPane = new JTabbedPane();
1304
+ tabbedPane.add(scrollpane);
12871305
1288
- scenePanel.add(FSPane = new cFileSystemPane(this));
1306
+ tabbedPane.add(FSPane = new cFileSystemPane(this));
12891307
1290
- optionsPanel = new JPanel(new GridBagLayout());
1308
+ optionsPanel = new cGridBag().setVertical(true);
12911309
12921310 optionsPanel.setName("Options");
1293
- scenePanel.add(optionsPanel);
1294
-
1311
+
1312
+ AddOptions(optionsPanel); //, aConstraints);
1313
+
1314
+ tabbedPane.add(optionsPanel);
1315
+
1316
+ scenePanel.add(tabbedPane);
12951317
12961318 /*
12971319 cTree jTree = new cTree(null);
....@@ -1325,6 +1347,7 @@
13251347 //bigPanel.setSize(new Dimension(10,10));
13261348 //bigPanel.add(ctrlPanel);
13271349 //bigPanel.add(gridPanel);
1350
+ /**
13281351 bigThree = new JPanel();
13291352 //big.setLayout(new FlowLayout(FlowLayout.LEFT));
13301353 bigThree.setLayout(new GridBagLayout()); //1,3,5,5));
....@@ -1348,7 +1371,13 @@
13481371 // aConstraints.gridheight = 3;
13491372 aWindowConstraints.fill = GridBagConstraints.VERTICAL;
13501373 bigThree.add(XYZPanel, aWindowConstraints);
1374
+ /**/
13511375
1376
+ bigThree = new cGridBag();
1377
+ bigThree.addComponent(scenePanel);
1378
+ bigThree.addComponent(centralPanel);
1379
+ bigThree.addComponent(XYZPanel);
1380
+
13521381 // // SIDE EFFECT!!!
13531382 // aConstraints.gridx = 0;
13541383 // aConstraints.gridy = 0;
....@@ -1369,7 +1398,8 @@
13691398 //worldPane.add(bigPanel);
13701399 //worldPane.add(worldPanel);
13711400 /**/
1372
- frame.getContentPane().add(/*"Center",*/framePanel);
1401
+ //frame.getContentPane().add(/*"Center",*/framePanel);
1402
+ frame.add(/*"Center",*/framePanel);
13731403 //frame.getContentPane().add(/*"Center",*/ worldPane);
13741404
13751405 // aConstraints = gbc; // (GridBagConstraints) GrafreeD.clone(gbc);
....@@ -1390,6 +1420,10 @@
13901420 });
13911421 }
13921422
1423
+ void AddOptions(cGridBag panel) //, GridBagConstraints constraints)
1424
+ {
1425
+ }
1426
+
13931427 JTree GetTree()
13941428 {
13951429 return objEditor.jTree;
....@@ -1401,260 +1435,170 @@
14011435 ctrlPanel.removeAll();
14021436 }
14031437
1404
- void SetupMaterial(JPanel ctrlPanel)
1438
+ void SetupMaterial(cGridBag panel)
14051439 {
1406
- aConstraints.weighty = 0;
1407
- //aConstraints.weightx = 1;
1408
- /*
1440
+ /*
14091441 ctrlPanel.add(materialLabel = new JLabel("MATERIAL : "), aConstraints);
14101442 materialLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1411
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1412
- aConstraints.gridx += 1;
14131443 */
14141444
1415
- aConstraints.gridwidth = 1;
1416
- ctrlPanel.add(createMaterialButton = new cButton("Create"), aConstraints);
1417
- aConstraints.gridx += 1;
1418
- aConstraints.weighty = 0;
1419
- aConstraints.gridwidth = 1;
1445
+ cGridBag editBar = new cGridBag().setVertical(false);
1446
+
1447
+ editBar.add(createMaterialButton = new cButton("Create", !GrafreeD.NIMBUSLAF)); // , aConstraints);
1448
+ createMaterialButton.setToolTipText("Create material");
14201449
14211450 /*
14221451 ctrlPanel.add(resetSlidersButton = new cButton("Reset All"), aConstraints);
1423
- aConstraints.gridx += 1;
1424
- aConstraints.weighty = 0;
1425
- aConstraints.gridwidth = 1;
14261452 */
14271453
1428
- ctrlPanel.add(clearMaterialButton = new cButton("Clear"), aConstraints);
1429
- aConstraints.gridx += 1;
1454
+ editBar.add(clearMaterialButton = new cButton("Clear", !GrafreeD.NIMBUSLAF)); // , aConstraints);
1455
+ clearMaterialButton.setToolTipText("Clear material");
1456
+
1457
+ editBar.add(resetSlidersButton = new cButton("Reset", !GrafreeD.NIMBUSLAF)); // , aConstraints);
1458
+ editBar.add(propagateToggle = new cCheckBox("Prop", propagate)); // , aConstraints);
1459
+ editBar.add(multiplyToggle = new cCheckBox("Mult", false)); // , aConstraints);
14301460
1431
- ctrlPanel.add(resetSlidersButton = new cButton("Reset"), aConstraints);
1432
-
1433
- aConstraints.gridx += 1;
1434
-
1435
- ctrlPanel.add(propagateToggle = new cCheckBox("Prop", propagate), aConstraints);
1436
-
1437
- aConstraints.gridx += 1;
1438
-
1439
- ctrlPanel.add(multiplyToggle = new cCheckBox("Mult", false), aConstraints);
1440
-
1441
- aConstraints.gridx = 0;
1442
- aConstraints.gridy += 1;
1443
- aConstraints.weighty = 0;
1444
- aConstraints.gridwidth = 1;
1461
+ editBar.preferredHeight = 15;
1462
+
1463
+ panel.add(editBar);
1464
+
14451465 /**/
14461466 //aConstraints.weighty = 0;
14471467 ////aConstraints.weightx = 1;
14481468 //aConstraints.weighty = 1;
14491469 aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100;
14501470 //aConstraints.gridx += 1;
1451
- ctrlPanel.add(new JLabel("----------------------------------"), aConstraints);
1452
- aConstraints.weighty = 0;
1453
- aConstraints.gridx = 0;
1454
- aConstraints.gridy += 1;
1455
- aConstraints.gridwidth = 1;
1471
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
14561472
1457
- ctrlPanel.add(colorLabel = new JLabel("Color/hue"), aConstraints);
1458
- colorLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1459
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1460
- aConstraints.gridx += 1;
1461
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1462
- //aConstraints.weightx = 0;
1463
- ctrlPanel.add(colorField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1464
- aConstraints.gridx = 0;
1465
- aConstraints.gridy += 1;
1466
- aConstraints.gridwidth = 1;
1473
+ cGridBag colorSection = new cGridBag().setVertical(true);
1474
+
1475
+ cGridBag color = new cGridBag();
1476
+ color.add(colorLabel = new JLabel("Color/hue")); // , aConstraints);
1477
+ colorLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1478
+ color.add(colorField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1479
+ //colorField.preferredWidth = 200;
1480
+ colorSection.add(color);
14671481
1468
- ctrlPanel.add(modulationLabel = new JLabel("Saturation"), aConstraints);
1469
- modulationLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1470
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1471
- aConstraints.gridx += 1;
1472
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1473
- ctrlPanel.add(modulationField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1474
- aConstraints.gridx = 0;
1475
- aConstraints.gridy += 1;
1476
- aConstraints.gridwidth = 1;
1482
+ cGridBag modulation = new cGridBag();
1483
+ modulation.add(modulationLabel = new JLabel("Saturation")); // , aConstraints);
1484
+ modulationLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1485
+ modulation.add(modulationField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1486
+ colorSection.add(modulation);
14771487
1478
- ctrlPanel.add(textureLabel = new JLabel("Texture"), aConstraints);
1479
- textureLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1480
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1481
- aConstraints.gridx += 1;
1482
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1483
- ctrlPanel.add(textureField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1484
- aConstraints.gridx = 0;
1485
- aConstraints.gridy += 1;
1486
- aConstraints.gridwidth = 1;
1488
+ cGridBag texture = new cGridBag();
1489
+ texture.add(textureLabel = new JLabel("Texture")); // , aConstraints);
1490
+ textureLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1491
+ texture.add(textureField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1492
+ colorSection.add(texture);
14871493
1488
- ctrlPanel.add(anisoLabel = new JLabel("AnisoU"), aConstraints);
1489
- anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1490
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1491
- aConstraints.gridx += 1;
1492
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1493
- ctrlPanel.add(anisoField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1494
- aConstraints.gridx = 0;
1495
- aConstraints.gridy += 1;
1496
- aConstraints.gridwidth = 1;
1494
+ cGridBag anisoU = new cGridBag();
1495
+ anisoU.add(anisoLabel = new JLabel("AnisoU")); // , aConstraints);
1496
+ anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1497
+ anisoU.add(anisoField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1498
+ colorSection.add(anisoU);
14971499
1498
- ctrlPanel.add(anisoVLabel = new JLabel("AnisoV"), aConstraints);
1499
- anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1500
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1501
- aConstraints.gridx += 1;
1502
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1503
- ctrlPanel.add(anisoVField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1504
- aConstraints.gridx = 0;
1505
- aConstraints.gridy += 1;
1506
- aConstraints.gridwidth = 1;
1500
+ cGridBag anisoV = new cGridBag();
1501
+ anisoV.add(anisoVLabel = new JLabel("AnisoV")); // , aConstraints);
1502
+ anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1503
+ anisoV.add(anisoVField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1504
+ colorSection.add(anisoV);
15071505
1508
- ctrlPanel.add(shadowbiasLabel = new JLabel("Shadowbias"), aConstraints);
1509
- shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1510
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1511
- aConstraints.gridx += 1;
1512
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1513
- ctrlPanel.add(shadowbiasField = new NumberSlider(0.001, 50, -1), aConstraints);
1514
- aConstraints.gridx = 0;
1515
- aConstraints.gridy += 1;
1516
- aConstraints.gridwidth = 1;
1506
+ cGridBag shadowbias = new cGridBag();
1507
+ shadowbias.add(shadowbiasLabel = new JLabel("Shadowbias")); // , aConstraints);
1508
+ shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1509
+ shadowbias.add(shadowbiasField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1510
+ colorSection.add(shadowbias);
15171511
1518
- //aConstraints.weighty = 1;
1519
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100;
1520
- //aConstraints.gridx += 1;
1521
- ctrlPanel.add(new JLabel("----------------------------------"), aConstraints);
1522
- aConstraints.weighty = 0;
1523
- aConstraints.gridx = 0;
1524
- aConstraints.gridy += 1;
1525
- aConstraints.gridwidth = 1;
1512
+ panel.add(new JSeparator());
1513
+
1514
+ panel.add(colorSection);
1515
+
1516
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
1517
+
1518
+ cGridBag diffuseSection = new cGridBag().setVertical(true);
1519
+
1520
+ cGridBag diffuse = new cGridBag();
1521
+ diffuse.add(diffuseLabel = new JLabel("Diffuse")); // , aConstraints);
1522
+ diffuseLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1523
+ diffuse.add(diffuseField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1524
+ diffuseSection.add(diffuse);
15261525
1527
- ctrlPanel.add(diffuseLabel = new JLabel("Diffuse"), aConstraints);
1528
- diffuseLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1529
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1530
- aConstraints.gridx += 1;
1531
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1532
- ctrlPanel.add(diffuseField = new NumberSlider(0.001, 50, -1), aConstraints);
1533
- aConstraints.gridx = 0;
1534
- aConstraints.gridy += 1;
1535
- aConstraints.gridwidth = 1;
1526
+ cGridBag diffuseness = new cGridBag();
1527
+ diffuseness.add(diffusenessLabel = new JLabel("Diffusion")); // , aConstraints);
1528
+ diffusenessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1529
+ diffuseness.add(diffusenessField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1530
+ diffuseSection.add(diffuseness);
15361531
1537
- ctrlPanel.add(diffusenessLabel = new JLabel("Diffusion"), aConstraints);
1538
- diffusenessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1539
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1540
- aConstraints.gridx += 1;
1541
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1542
- ctrlPanel.add(diffusenessField = new NumberSlider(0.001, 50, -1), aConstraints);
1543
- aConstraints.gridx = 0;
1544
- aConstraints.gridy += 1;
1545
- aConstraints.gridwidth = 1;
1532
+ cGridBag selfshadow = new cGridBag();
1533
+ selfshadow.add(selfshadowLabel = new JLabel("Selfshadow")); // , aConstraints);
1534
+ selfshadowLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1535
+ selfshadow.add(selfshadowField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1536
+ diffuseSection.add(selfshadow);
15461537
1547
- ctrlPanel.add(selfshadowLabel = new JLabel("Selfshadow"), aConstraints);
1548
- selfshadowLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1549
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1550
- aConstraints.gridx += 1;
1551
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1552
- ctrlPanel.add(selfshadowField = new NumberSlider(0.001, 50, -1), aConstraints);
1553
- aConstraints.gridx = 0;
1554
- aConstraints.gridy += 1;
1555
- aConstraints.gridwidth = 1;
1538
+ cGridBag sheen = new cGridBag();
1539
+ sheen.add(sheenLabel = new JLabel("Sheen")); // , aConstraints);
1540
+ sheenLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1541
+ sheen.add(sheenField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1542
+ diffuseSection.add(sheen);
15561543
1557
- ctrlPanel.add(sheenLabel = new JLabel("Sheen"), aConstraints);
1558
- sheenLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1559
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1560
- aConstraints.gridx += 1;
1561
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1562
- ctrlPanel.add(sheenField = new NumberSlider(0.001, 50, -1), aConstraints);
1563
- aConstraints.gridx = 0;
1564
- aConstraints.gridy += 1;
1565
- aConstraints.gridwidth = 1;
1544
+ cGridBag subsurface = new cGridBag();
1545
+ subsurface.add(subsurfaceLabel = new JLabel("Subsurface")); // , aConstraints);
1546
+ subsurfaceLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1547
+ subsurface.add(subsurfaceField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1548
+ diffuseSection.add(subsurface);
15661549
1567
- ctrlPanel.add(subsurfaceLabel = new JLabel("Subsurface"), aConstraints);
1568
- subsurfaceLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1569
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1570
- aConstraints.gridx += 1;
1571
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1572
- ctrlPanel.add(subsurfaceField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1573
- aConstraints.gridx = 0;
1574
- aConstraints.gridy += 1;
1575
- aConstraints.gridwidth = 1;
1550
+ cGridBag shadow = new cGridBag();
1551
+ shadow.add(shadowLabel = new JLabel("Shadowing")); // , aConstraints);
1552
+ shadowLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1553
+ shadow.add(shadowField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1554
+ diffuseSection.add(shadow);
15761555
1577
- ctrlPanel.add(shadowLabel = new JLabel("Shadowing"), aConstraints);
1578
- shadowLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1579
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1580
- aConstraints.gridx += 1;
1581
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1582
- ctrlPanel.add(shadowField = new NumberSlider(0.001, 50, -1), aConstraints);
1583
- aConstraints.gridx = 0;
1584
- aConstraints.gridy += 1;
1585
- aConstraints.gridwidth = 1;
1556
+ cGridBag fakedepth = new cGridBag();
1557
+ fakedepth.add(fakedepthLabel = new JLabel("Fakedepth")); // , aConstraints);
1558
+ fakedepthLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1559
+ fakedepth.add(fakedepthField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1560
+ diffuseSection.add(fakedepth);
15861561
1587
- ctrlPanel.add(fakedepthLabel = new JLabel("Fakedepth"), aConstraints);
1588
- fakedepthLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1589
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1590
- aConstraints.gridx += 1;
1591
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1592
- ctrlPanel.add(fakedepthField = new NumberSlider(0.001, 50, -1), aConstraints);
1593
- aConstraints.gridx = 0;
1594
- aConstraints.gridy += 1;
1595
- aConstraints.gridwidth = 1;
1562
+ panel.add(new JSeparator());
1563
+
1564
+ panel.add(diffuseSection);
1565
+
1566
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
1567
+
1568
+ cGridBag specularSection = new cGridBag().setVertical(true);
15961569
1597
- //aConstraints.weighty = 1;
1598
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100;
1599
- //aConstraints.gridx += 1;
1600
- ctrlPanel.add(new JLabel("----------------------------------"), aConstraints);
1601
- aConstraints.weighty = 0;
1602
- aConstraints.gridx = 0;
1603
- aConstraints.gridy += 1;
1604
- aConstraints.gridwidth = 1;
1570
+ cGridBag specular = new cGridBag();
1571
+ specular.add(specularLabel = new JLabel("Specular")); // , aConstraints);
1572
+ specularLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1573
+ specular.add(specularField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1574
+ specularSection.add(specular);
16051575
1606
- ctrlPanel.add(specularLabel = new JLabel("Specular"), aConstraints);
1607
- specularLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1608
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1609
- aConstraints.gridx += 1;
1610
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1611
- ctrlPanel.add(specularField = new NumberSlider(0.001, 50, -1), aConstraints);
1612
- aConstraints.gridx = 0;
1613
- aConstraints.gridy += 1;
1614
- aConstraints.gridwidth = 1;
1576
+ cGridBag lightarea = new cGridBag();
1577
+ lightarea.add(lightareaLabel = new JLabel("Lightarea")); // , aConstraints);
1578
+ lightareaLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1579
+ lightarea.add(lightareaField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1580
+ specularSection.add(lightarea);
16151581
1616
- ctrlPanel.add(lightareaLabel = new JLabel("Lightarea"), aConstraints);
1617
- lightareaLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1618
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1619
- aConstraints.gridx += 1;
1620
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1621
- ctrlPanel.add(lightareaField = new NumberSlider(0.001, 50, -1), aConstraints);
1622
- aConstraints.gridx = 0;
1623
- aConstraints.gridy += 1;
1624
- aConstraints.gridwidth = 1;
1582
+ cGridBag shininess = new cGridBag();
1583
+ shininess.add(shininessLabel = new JLabel("Roughness")); // , aConstraints);
1584
+ shininessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1585
+ shininess.add(shininessField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1586
+ specularSection.add(shininess);
16251587
1626
- ctrlPanel.add(shininessLabel = new JLabel("Roughness"), aConstraints);
1627
- shininessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1628
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1629
- aConstraints.gridx += 1;
1630
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1631
- ctrlPanel.add(shininessField = new NumberSlider(0.001, 50, -1), aConstraints);
1632
- aConstraints.gridx = 0;
1633
- aConstraints.gridy += 1;
1634
- aConstraints.gridwidth = 1;
1588
+ cGridBag metalness = new cGridBag();
1589
+ metalness.add(metalnessLabel = new JLabel("Metalness")); // , aConstraints);
1590
+ metalnessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1591
+ metalness.add(metalnessField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1592
+ specularSection.add(metalness);
16351593
1636
- ctrlPanel.add(metalnessLabel = new JLabel("Metalness"), aConstraints);
1637
- metalnessLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1638
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1639
- aConstraints.gridx += 1;
1640
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1641
- ctrlPanel.add(metalnessField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1642
- aConstraints.gridx = 0;
1643
- aConstraints.gridy += 1;
1644
- aConstraints.gridwidth = 1;
1594
+ cGridBag velvet = new cGridBag();
1595
+ velvet.add(velvetLabel = new JLabel("Velvet")); // , aConstraints);
1596
+ velvetLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1597
+ velvet.add(velvetField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1598
+ specularSection.add(velvet);
16451599
1646
- ctrlPanel.add(velvetLabel = new JLabel("Velvet"), aConstraints);
1647
- velvetLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1648
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1649
- aConstraints.gridx += 1;
1650
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1651
- ctrlPanel.add(velvetField = new NumberSlider(0.001, 50, -1), aConstraints);
1652
- aConstraints.gridx = 0;
1653
- aConstraints.gridy += 1;
1654
- aConstraints.gridwidth = 1;
1655
-
1656
- shiftField = AddSlider(ctrlPanel, "Shift", 0.001, 50, copy.material.shift, -1);
1657
- Return();
1600
+ shiftField = (cNumberSlider)AddSlider(specularSection, "Shift", 0.001, 50, copy.material.shift, -1).getComponent(1);
1601
+ //Return();
16581602 // ctrlPanel.add(shiftLabel = new JLabel("Shift"), aConstraints);
16591603 // shiftLabel.setHorizontalAlignment(SwingConstants.TRAILING);
16601604 // aConstraints.fill = GridBagConstraints.HORIZONTAL;
....@@ -1665,130 +1609,93 @@
16651609 // aConstraints.gridy += 1;
16661610 // aConstraints.gridwidth = 1;
16671611
1668
- //aConstraints.weighty = 1;
1669
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100;
1670
- //aConstraints.gridx += 1;
1671
- ctrlPanel.add(new JLabel("----------------------------------"), aConstraints);
1672
- aConstraints.weighty = 0;
1673
- aConstraints.gridx = 0;
1674
- aConstraints.gridy += 1;
1675
- aConstraints.gridwidth = 1;
16761612
1677
- ctrlPanel.add(cameraLabel = new JLabel("GlobalLight"), aConstraints);
1678
- cameraLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1679
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1680
- aConstraints.gridx += 1;
1681
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1682
- ctrlPanel.add(cameraField = new NumberSlider(0.001, 50, -1), aConstraints);
1683
- aConstraints.gridx = 0;
1684
- aConstraints.gridy += 1;
1685
- aConstraints.gridwidth = 1;
1613
+ panel.add(new JSeparator());
1614
+
1615
+ panel.add(specularSection);
1616
+
1617
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
1618
+
1619
+ cGridBag globalSection = new cGridBag().setVertical(true);
16861620
1687
- ctrlPanel.add(ambientLabel = new JLabel("Ambient"), aConstraints);
1688
- ambientLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1689
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1690
- aConstraints.gridx += 1;
1691
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1692
- ctrlPanel.add(ambientField = new NumberSlider(0.001, 50, -1), aConstraints);
1693
- aConstraints.gridx = 0;
1694
- aConstraints.gridy += 1;
1695
- aConstraints.gridwidth = 1;
1621
+ cGridBag camera = new cGridBag();
1622
+ camera.add(cameraLabel = new JLabel("GlobalLight")); // , aConstraints);
1623
+ cameraLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1624
+ camera.add(cameraField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1625
+ globalSection.add(camera);
16961626
1697
- ctrlPanel.add(backlitLabel = new JLabel("Backlit"), aConstraints);
1698
- backlitLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1699
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1700
- aConstraints.gridx += 1;
1701
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1702
- ctrlPanel.add(backlitField = new NumberSlider(0.001, 50, -1), aConstraints);
1703
- aConstraints.gridx = 0;
1704
- aConstraints.gridy += 1;
1705
- aConstraints.gridwidth = 1;
1627
+ cGridBag ambient = new cGridBag();
1628
+ ambient.add(ambientLabel = new JLabel("Ambient")); // , aConstraints);
1629
+ ambientLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1630
+ ambient.add(ambientField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1631
+ globalSection.add(ambient);
17061632
1707
- ctrlPanel.add(opacityLabel = new JLabel("Opacity"), aConstraints);
1708
- opacityLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1709
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1710
- aConstraints.gridx += 1;
1711
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1712
- ctrlPanel.add(opacityField = new NumberSlider(0.001, 1, -0.5), aConstraints);
1713
- aConstraints.gridx = 0;
1714
- aConstraints.gridy += 1;
1715
- aConstraints.gridwidth = 1;
1716
- aConstraints.weighty = 0;
1633
+ cGridBag backlit = new cGridBag();
1634
+ backlit.add(backlitLabel = new JLabel("Backlit")); // , aConstraints);
1635
+ backlitLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1636
+ backlit.add(backlitField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1637
+ globalSection.add(backlit);
17171638
1718
- ctrlPanel.add(bumpLabel = new JLabel("Bump"), aConstraints);
1719
- bumpLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1720
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1721
- aConstraints.gridx += 1;
1722
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1723
- ctrlPanel.add(bumpField = new NumberSlider(0.0, 2), aConstraints);
1724
- aConstraints.gridx = 0;
1725
- aConstraints.gridy += 1;
1726
- aConstraints.gridwidth = 1;
1639
+ cGridBag opacity = new cGridBag();
1640
+ opacity.add(opacityLabel = new JLabel("Opacity")); // , aConstraints);
1641
+ opacityLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1642
+ opacity.add(opacityField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1643
+ globalSection.add(opacity);
17271644
1728
- ctrlPanel.add(noiseLabel = new JLabel("Noise"), aConstraints);
1729
- noiseLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1730
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1731
- aConstraints.gridx += 1;
1732
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1733
- ctrlPanel.add(noiseField = new NumberSlider(0.0, 1/*5*/), aConstraints);
1734
- aConstraints.gridx = 0;
1735
- aConstraints.gridy += 1;
1736
- aConstraints.gridwidth = 1;
1645
+ panel.add(new JSeparator());
1646
+
1647
+ panel.add(globalSection);
1648
+
1649
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
1650
+
1651
+ cGridBag textureSection = new cGridBag().setVertical(true);
17371652
1738
- ctrlPanel.add(powerLabel = new JLabel("Turbulance"), aConstraints);
1739
- powerLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1740
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1741
- aConstraints.gridx += 1;
1742
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1743
- ctrlPanel.add(powerField = new NumberSlider(0.0, 5), aConstraints);
1744
- aConstraints.gridx = 0;
1745
- aConstraints.gridy += 1;
1746
- aConstraints.gridwidth = 1;
1653
+ cGridBag bump = new cGridBag();
1654
+ bump.add(bumpLabel = new JLabel("Bump")); // , aConstraints);
1655
+ bumpLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1656
+ bump.add(bumpField = new cNumberSlider(this, 0.0, 2)); // , aConstraints);
1657
+ textureSection.add(bump);
17471658
1748
- ctrlPanel.add(borderfadeLabel = new JLabel("Borderfade"), aConstraints);
1749
- borderfadeLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1750
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1751
- aConstraints.gridx += 1;
1752
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1753
- ctrlPanel.add(borderfadeField = new NumberSlider(0.0, 2), aConstraints);
1754
- aConstraints.gridx = 0;
1755
- aConstraints.gridy += 1;
1756
- aConstraints.gridwidth = 1;
1659
+ cGridBag noise = new cGridBag();
1660
+ noise.add(noiseLabel = new JLabel("Noise")); // , aConstraints);
1661
+ noiseLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1662
+ noise.add(noiseField = new cNumberSlider(this, 0.0, 1/*5*/)); // , aConstraints);
1663
+ textureSection.add(noise);
17571664
1758
- ctrlPanel.add(fogLabel = new JLabel("Punch"), aConstraints);
1759
- fogLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1760
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1761
- aConstraints.gridx += 1;
1762
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1763
- ctrlPanel.add(fogField = new NumberSlider(0.0, 20), aConstraints);
1764
- aConstraints.gridx = 0;
1765
- aConstraints.gridy += 1;
1766
- aConstraints.gridwidth = 1;
1665
+ cGridBag power = new cGridBag();
1666
+ power.add(powerLabel = new JLabel("Turbulance")); // , aConstraints);
1667
+ powerLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1668
+ power.add(powerField = new cNumberSlider(this, 0.0, 5)); // , aConstraints);
1669
+ textureSection.add(power);
17671670
1768
- ctrlPanel.add(opacityPowerLabel = new JLabel("Halo"), aConstraints);
1769
- opacityPowerLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1770
- aConstraints.fill = GridBagConstraints.HORIZONTAL;
1771
- aConstraints.gridx += 1;
1772
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
1773
- ctrlPanel.add(opacityPowerField = new NumberSlider(0.0, 10 /*10 dec 2013*/), aConstraints);
1774
- aConstraints.gridx = 0;
1775
- aConstraints.gridy += 1;
1776
- aConstraints.gridwidth = 1;
1671
+ cGridBag borderfade = new cGridBag();
1672
+ borderfade.add(borderfadeLabel = new JLabel("Borderfade")); // , aConstraints);
1673
+ borderfadeLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1674
+ borderfade.add(borderfadeField = new cNumberSlider(this, 0.0, 2)); // , aConstraints);
1675
+ textureSection.add(borderfade);
17771676
1778
- //aConstraints.weighty = 1;
1779
- aConstraints.gridwidth = ObjEditor.GRIDWIDTH; // 100;
1780
- //aConstraints.gridx += 1;
1781
- ctrlPanel.add(new JLabel("----------------------------------"), aConstraints);
1782
- aConstraints.weighty = 0;
1677
+ cGridBag fog = new cGridBag();
1678
+ fog.add(fogLabel = new JLabel("Punch")); // , aConstraints);
1679
+ fogLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1680
+ fog.add(fogField = new cNumberSlider(this, 0.0, 20)); // , aConstraints);
1681
+ textureSection.add(fog);
17831682
1784
- aConstraints.gridx = 0;
1785
- aConstraints.gridy = 0;
1786
- aConstraints.gridwidth = 1;
1683
+ cGridBag opacityPower = new cGridBag();
1684
+ opacityPower.add(opacityPowerLabel = new JLabel("Halo")); // , aConstraints);
1685
+ opacityPowerLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1686
+ opacityPower.add(opacityPowerField = new cNumberSlider(this, 0.0, 10 /*10 dec 2013*/)); // , aConstraints);
1687
+ textureSection.add(opacityPower);
1688
+
1689
+ panel.add(new JSeparator());
1690
+
1691
+ panel.add(textureSection);
1692
+
1693
+ //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
17871694
17881695 SetMaterial(copy); // .GetMaterial());
17891696
1790
- colorField.addChangeListener(this);
1791
- modulationField.addChangeListener(this);
1697
+ //colorField.addChangeListener(this);
1698
+// modulationField.addChangeListener(this);
17921699 metalnessField.addChangeListener(this);
17931700 diffuseField.addChangeListener(this);
17941701 specularField.addChangeListener(this);
....@@ -2600,6 +2507,7 @@
26002507 }
26012508 if (input == null)
26022509 {
2510
+ new Exception().printStackTrace();
26032511 System.exit(0);
26042512 }
26052513
....@@ -3136,7 +3044,8 @@
31363044 objEditor.refreshContents();
31373045 } else if (event.getSource() == stepItem)
31383046 {
3139
- cameraView.ONESTEP = true;
3047
+ //cameraView.ONESTEP = true;
3048
+ Globals.ONESTEP = true;
31403049 cameraView.repaint();
31413050 return;
31423051 } else if (event.getSource() == stepButton)
....@@ -3293,25 +3202,25 @@
32933202
32943203 void ToggleAnimation()
32953204 {
3296
- if (!CameraPane.ANIMATION)
3205
+ if (!Globals.ANIMATION)
32973206 {
32983207 FileDialog browser = new FileDialog(frame, "Save Animation As...", FileDialog.SAVE);
3299
- browser.show();
3208
+ browser.setVisible(true);
33003209 String filename = browser.getFile();
33013210 if (filename != null && filename.length() > 0)
33023211 {
3303
- CameraPane.filename = browser.getDirectory() + filename;
3212
+ Globals.filename = browser.getDirectory() + filename;
33043213 //CameraPane.framecount = 0;
3305
- CameraPane.imagecount = 0;
3214
+ Globals.imagecount = 0;
33063215
3307
- CameraPane.ANIMATION ^= true;
3216
+ Globals.ANIMATION ^= true;
33083217
33093218 GrafreeD.wav.cursor = 0;
33103219 GrafreeD.wav.loop = 0;
33113220 }
33123221 } else
33133222 {
3314
- CameraPane.ANIMATION ^= true;
3223
+ Globals.ANIMATION ^= true;
33153224 }
33163225 }
33173226
....@@ -3328,6 +3237,7 @@
33283237 callee.refreshContents();
33293238 } else
33303239 {
3240
+ new Exception().printStackTrace();
33313241 System.exit(0);
33323242 }
33333243 }
....@@ -3490,7 +3400,7 @@
34903400 current.fakedepth = (float) fakedepthField.getFloat();
34913401 current.shadowbias = (float) shadowbiasField.getFloat();
34923402
3493
- if (!NumberSlider.frozen)
3403
+ if (!cNumberSlider.frozen)
34943404 {
34953405 //System.out.println("Propagate = " + propagate);
34963406 copy.UpdateMaterial(anchor, current, propagate);
....@@ -3538,6 +3448,7 @@
35383448 || e.getSource() == apertureField
35393449 || e.getSource() == shadowblurField)
35403450 {
3451
+ new Exception().printStackTrace();
35413452 System.exit(0);
35423453 cameraView.options1[0] = (float) focusField.getFloat() * 10;
35433454 cameraView.options1[1] = (float) apertureField.getFloat() / 1000;
....@@ -3863,7 +3774,7 @@
38633774
38643775 radioPanel.revalidate();
38653776 radioPanel.repaint();
3866
- ctrlPanel.revalidate(); // ? new
3777
+ ctrlPanel.validate(); // ? new
38673778 ctrlPanel.repaint();
38683779 }
38693780 }
....@@ -4509,8 +4420,8 @@
45094420 //MenuItem normalLensItem;
45104421 MenuItem editCameraItem;
45114422 MenuItem revertCameraItem;
4512
- CheckboxMenuItem toggleLiveItem;
45134423 MenuItem stepItem;
4424
+ CheckboxMenuItem toggleLiveItem;
45144425 CheckboxMenuItem toggleFullScreenItem;
45154426 CheckboxMenuItem toggleTimelineItem;
45164427 CheckboxMenuItem toggleRenderItem;
....@@ -4527,20 +4438,20 @@
45274438 JSplitPane mainPanel;
45284439 JScrollPane scrollpane;
45294440 JPanel toolbarPanel;
4530
- JPanel treePanel;
4441
+ cGridBag treePanel;
45314442 JPanel radioPanel;
45324443 ButtonGroup buttonGroup;
4533
- JPanel ctrlPanel;
4534
- JPanel materialPanel;
4444
+ cGridBag ctrlPanel;
4445
+ cGridBag materialPanel;
45354446 JScrollPane infoPanel;
4536
- JPanel optionsPanel;
4447
+ cGridBag optionsPanel;
45374448 JTabbedPane objectPanel;
4538
- JPanel XYZPanel;
4449
+ cGridBag XYZPanel;
45394450 JSplitPane gridPanel;
45404451 JSplitPane bigPanel;
4541
- JPanel bigThree;
4542
- JTabbedPane scenePanel;
4543
- JPanel centralPanel;
4452
+ cGridBag bigThree;
4453
+ cGridBag scenePanel;
4454
+ cGridBag centralPanel;
45444455 JSplitPane cameraPanel;
45454456 JPanel timelinePanel;
45464457 JMenuBar timelineMenubar;
....@@ -4593,67 +4504,67 @@
45934504 // MATERIAL
45944505 JLabel materialLabel;
45954506 JLabel colorLabel;
4596
- NumberSlider colorField;
4507
+ cNumberSlider colorField;
45974508 JLabel modulationLabel;
4598
- NumberSlider modulationField;
4509
+ cNumberSlider modulationField;
45994510 JLabel metalnessLabel;
4600
- NumberSlider metalnessField;
4511
+ cNumberSlider metalnessField;
46014512 JLabel diffuseLabel;
4602
- NumberSlider diffuseField;
4513
+ cNumberSlider diffuseField;
46034514 JLabel specularLabel;
4604
- NumberSlider specularField;
4515
+ cNumberSlider specularField;
46054516 JLabel shininessLabel;
4606
- NumberSlider shininessField;
4517
+ cNumberSlider shininessField;
46074518 JLabel shiftLabel;
4608
- NumberSlider shiftField;
4519
+ cNumberSlider shiftField;
46094520 JLabel ambientLabel;
4610
- NumberSlider ambientField;
4521
+ cNumberSlider ambientField;
46114522 JLabel lightareaLabel;
4612
- NumberSlider lightareaField;
4523
+ cNumberSlider lightareaField;
46134524 JLabel diffusenessLabel;
4614
- NumberSlider diffusenessField;
4525
+ cNumberSlider diffusenessField;
46154526 JLabel velvetLabel;
4616
- NumberSlider velvetField;
4527
+ cNumberSlider velvetField;
46174528 JLabel sheenLabel;
4618
- NumberSlider sheenField;
4529
+ cNumberSlider sheenField;
46194530 JLabel subsurfaceLabel;
4620
- NumberSlider subsurfaceField;
4531
+ cNumberSlider subsurfaceField;
46214532 //JLabel bumpLabel;
46224533 //NumberSlider bumpField;
46234534 JLabel backlitLabel;
4624
- NumberSlider backlitField;
4535
+ cNumberSlider backlitField;
46254536 JLabel anisoLabel;
4626
- NumberSlider anisoField;
4537
+ cNumberSlider anisoField;
46274538 JLabel anisoVLabel;
4628
- NumberSlider anisoVField;
4539
+ cNumberSlider anisoVField;
46294540 JLabel cameraLabel;
4630
- NumberSlider cameraField;
4541
+ cNumberSlider cameraField;
46314542 JLabel selfshadowLabel;
4632
- NumberSlider selfshadowField;
4543
+ cNumberSlider selfshadowField;
46334544 JLabel shadowLabel;
4634
- NumberSlider shadowField;
4545
+ cNumberSlider shadowField;
46354546 JLabel textureLabel;
4636
- NumberSlider textureField;
4547
+ cNumberSlider textureField;
46374548 JLabel opacityLabel;
4638
- NumberSlider opacityField;
4549
+ cNumberSlider opacityField;
46394550 JLabel fakedepthLabel;
4640
- NumberSlider fakedepthField;
4551
+ cNumberSlider fakedepthField;
46414552 JLabel shadowbiasLabel;
4642
- NumberSlider shadowbiasField;
4553
+ cNumberSlider shadowbiasField;
46434554 JLabel bumpLabel;
4644
- NumberSlider bumpField;
4555
+ cNumberSlider bumpField;
46454556 JLabel noiseLabel;
4646
- NumberSlider noiseField;
4557
+ cNumberSlider noiseField;
46474558 JLabel powerLabel;
4648
- NumberSlider powerField;
4559
+ cNumberSlider powerField;
46494560 JLabel borderfadeLabel;
4650
- NumberSlider borderfadeField;
4561
+ cNumberSlider borderfadeField;
46514562 JLabel fogLabel;
4652
- NumberSlider fogField;
4563
+ cNumberSlider fogField;
46534564 JLabel opacityPowerLabel;
4654
- NumberSlider opacityPowerField;
4565
+ cNumberSlider opacityPowerField;
46554566 JTree jTree;
46564567 //ObjectUI parent;
46574568
4658
- NumberSlider normalpushField;
4569
+ cNumberSlider normalpushField;
46594570 }