.. | .. |
---|
19 | 19 | import //weka.core. |
---|
20 | 20 | matrix.Matrix; |
---|
21 | 21 | |
---|
| 22 | +import grafeme.ui.*; |
---|
| 23 | + |
---|
22 | 24 | class ObjEditor /*extends JFrame*/ implements iCallBack, ObjectUI, |
---|
23 | 25 | ActionListener, ChangeListener, |
---|
24 | 26 | InputMethodListener, |
---|
.. | .. |
---|
1217 | 1219 | //frontView.object = copy; |
---|
1218 | 1220 | //sideView.object = copy; |
---|
1219 | 1221 | |
---|
1220 | | - XYZPanel = new JPanel(); |
---|
1221 | | - XYZPanel.setLayout(new GridLayout(3, 1, 5, 5)); |
---|
| 1222 | + XYZPanel = new cGridBag().setVertical(true); |
---|
| 1223 | + //XYZPanel.setLayout(new GridLayout(3, 1, 5, 5)); |
---|
1222 | 1224 | |
---|
1223 | | - XYZPanel.add(/*BorderLayout.SOUTH,*/sideView); // Scroll); |
---|
1224 | | - XYZPanel.add(/*BorderLayout.CENTER,*/frontView); // Scroll); |
---|
1225 | | - XYZPanel.add(/*BorderLayout.NORTH,*/topView); // Scroll); |
---|
| 1225 | + XYZPanel.addComponent(/*BorderLayout.SOUTH,*/sideView); // Scroll); |
---|
| 1226 | + XYZPanel.addComponent(/*BorderLayout.CENTER,*/frontView); // Scroll); |
---|
| 1227 | + XYZPanel.addComponent(/*BorderLayout.NORTH,*/topView); // Scroll); |
---|
1226 | 1228 | |
---|
1227 | 1229 | /* |
---|
1228 | 1230 | gridPanel = new JPanel(); //new BorderLayout()); |
---|
.. | .. |
---|
1292 | 1294 | optionsPanel = new JPanel(new GridBagLayout()); |
---|
1293 | 1295 | |
---|
1294 | 1296 | optionsPanel.setName("Options"); |
---|
| 1297 | + |
---|
| 1298 | + AddOptions(optionsPanel, aConstraints); |
---|
| 1299 | + |
---|
1295 | 1300 | scenePanel.add(optionsPanel); |
---|
1296 | 1301 | |
---|
1297 | 1302 | |
---|
.. | .. |
---|
1327 | 1332 | //bigPanel.setSize(new Dimension(10,10)); |
---|
1328 | 1333 | //bigPanel.add(ctrlPanel); |
---|
1329 | 1334 | //bigPanel.add(gridPanel); |
---|
| 1335 | + /** |
---|
1330 | 1336 | bigThree = new JPanel(); |
---|
1331 | 1337 | //big.setLayout(new FlowLayout(FlowLayout.LEFT)); |
---|
1332 | 1338 | bigThree.setLayout(new GridBagLayout()); //1,3,5,5)); |
---|
.. | .. |
---|
1350 | 1356 | // aConstraints.gridheight = 3; |
---|
1351 | 1357 | aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
1352 | 1358 | bigThree.add(XYZPanel, aWindowConstraints); |
---|
| 1359 | + /**/ |
---|
1353 | 1360 | |
---|
| 1361 | + bigThree = new cGridBag(); |
---|
| 1362 | + bigThree.addComponent(scenePanel); |
---|
| 1363 | + bigThree.addComponent(centralPanel); |
---|
| 1364 | + bigThree.addComponent(XYZPanel); |
---|
| 1365 | + |
---|
1354 | 1366 | // // SIDE EFFECT!!! |
---|
1355 | 1367 | // aConstraints.gridx = 0; |
---|
1356 | 1368 | // aConstraints.gridy = 0; |
---|
.. | .. |
---|
1393 | 1405 | }); |
---|
1394 | 1406 | } |
---|
1395 | 1407 | |
---|
| 1408 | + void AddOptions(JPanel panel, GridBagConstraints constraints) |
---|
| 1409 | + { |
---|
| 1410 | + } |
---|
| 1411 | + |
---|
1396 | 1412 | JTree GetTree() |
---|
1397 | 1413 | { |
---|
1398 | 1414 | return objEditor.jTree; |
---|
.. | .. |
---|
4539 | 4555 | JScrollPane infoPanel; |
---|
4540 | 4556 | JPanel optionsPanel; |
---|
4541 | 4557 | JTabbedPane objectPanel; |
---|
4542 | | - JPanel XYZPanel; |
---|
| 4558 | + cGridBag XYZPanel; |
---|
4543 | 4559 | JSplitPane gridPanel; |
---|
4544 | 4560 | JSplitPane bigPanel; |
---|
4545 | | - JPanel bigThree; |
---|
| 4561 | + cGridBag bigThree; |
---|
4546 | 4562 | JTabbedPane scenePanel; |
---|
4547 | 4563 | JPanel centralPanel; |
---|
4548 | 4564 | JSplitPane cameraPanel; |
---|