|
@@ -1,25 +1,36 @@
|
|
|
package ui.view;
|
|
|
|
|
|
-import javax.swing.JSplitPane;
|
|
|
-import javax.swing.JScrollPane;
|
|
|
-import javax.swing.JPanel;
|
|
|
-
|
|
|
+import java.awt.Color;
|
|
|
+import java.awt.Component;
|
|
|
+import java.awt.Dimension;
|
|
|
+import java.awt.event.ActionEvent;
|
|
|
+import java.awt.event.ActionListener;
|
|
|
+import java.awt.event.ItemEvent;
|
|
|
+import java.awt.event.ItemListener;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Hashtable;
|
|
|
import java.util.Random;
|
|
|
|
|
|
-import javax.swing.GroupLayout;
|
|
|
-import javax.swing.GroupLayout.Alignment;
|
|
|
+import javax.swing.Box;
|
|
|
+import javax.swing.BoxLayout;
|
|
|
+import javax.swing.JButton;
|
|
|
+import javax.swing.JComboBox;
|
|
|
import javax.swing.JLabel;
|
|
|
-import javax.swing.LayoutStyle.ComponentPlacement;
|
|
|
+import javax.swing.JMenuItem;
|
|
|
+import javax.swing.JPanel;
|
|
|
+import javax.swing.JPopupMenu;
|
|
|
+import javax.swing.JScrollPane;
|
|
|
+import javax.swing.JSplitPane;
|
|
|
+import javax.swing.JTextField;
|
|
|
+import javax.swing.JTree;
|
|
|
+import javax.swing.border.EmptyBorder;
|
|
|
+import javax.swing.border.LineBorder;
|
|
|
import javax.swing.event.DocumentEvent;
|
|
|
import javax.swing.event.DocumentListener;
|
|
|
import javax.swing.event.TreeSelectionEvent;
|
|
|
import javax.swing.event.TreeSelectionListener;
|
|
|
import javax.swing.tree.DefaultMutableTreeNode;
|
|
|
import javax.swing.tree.DefaultTreeModel;
|
|
|
-import javax.swing.tree.MutableTreeNode;
|
|
|
-import javax.swing.tree.TreeNode;
|
|
|
|
|
|
import DataSets.GraphDataSet;
|
|
|
import DataSets.PropertyDataSet;
|
|
@@ -31,31 +42,6 @@ import classes.TrackedDataSet;
|
|
|
import interfaces.GraphListener;
|
|
|
import ui.controller.Control;
|
|
|
|
|
|
-import javax.swing.JTextField;
|
|
|
-import javax.swing.JComboBox;
|
|
|
-import javax.swing.JButton;
|
|
|
-import javax.swing.JTree;
|
|
|
-import java.awt.Color;
|
|
|
-import java.awt.event.ActionEvent;
|
|
|
-import java.awt.event.ActionListener;
|
|
|
-import java.awt.event.ItemEvent;
|
|
|
-import java.awt.event.ItemListener;
|
|
|
-
|
|
|
-import javax.swing.border.CompoundBorder;
|
|
|
-import javax.swing.border.LineBorder;
|
|
|
-import javax.swing.JPopupMenu;
|
|
|
-import java.awt.Component;
|
|
|
-import java.awt.Dimension;
|
|
|
-import java.awt.event.MouseAdapter;
|
|
|
-import java.awt.event.MouseEvent;
|
|
|
-import javax.swing.JMenuItem;
|
|
|
-import javax.swing.BorderFactory;
|
|
|
-import javax.swing.Box;
|
|
|
-import javax.swing.BoxLayout;
|
|
|
-import java.awt.FlowLayout;
|
|
|
-import java.awt.BorderLayout;
|
|
|
-import javax.swing.border.EmptyBorder;
|
|
|
-
|
|
|
public class StatPanel2 extends JSplitPane implements GraphListener {
|
|
|
public static final String MAIN_GRID = "Main Grid";
|
|
|
public static final String HOLON = "Holons";
|
|
@@ -621,67 +607,67 @@ public class StatPanel2 extends JSplitPane implements GraphListener {
|
|
|
editPanel.setLayout(null);
|
|
|
|
|
|
JLabel lblObject = new JLabel("Object(s):");
|
|
|
- lblObject.setBounds(10, 11, 49, 14);
|
|
|
+ lblObject.setBounds(10, 11, 59, 20);
|
|
|
editPanel.add(lblObject);
|
|
|
|
|
|
showObjectlbl = new JLabel("...");
|
|
|
- showObjectlbl.setBounds(69, 11, 86, 14);
|
|
|
+ showObjectlbl.setBounds(69, 11, 101, 20);
|
|
|
editPanel.add(showObjectlbl);
|
|
|
|
|
|
JLabel lblProperty = new JLabel("Property:");
|
|
|
- lblProperty.setBounds(10, 36, 46, 14);
|
|
|
+ lblProperty.setBounds(10, 36, 59, 20);
|
|
|
editPanel.add(lblProperty);
|
|
|
|
|
|
showPropertylbl = new JLabel("...");
|
|
|
- showPropertylbl.setBounds(69, 36, 86, 14);
|
|
|
+ showPropertylbl.setBounds(69, 36, 101, 20);
|
|
|
editPanel.add(showPropertylbl);
|
|
|
|
|
|
JLabel lblGraph = new JLabel("Graph:");
|
|
|
- lblGraph.setBounds(10, 61, 33, 14);
|
|
|
+ lblGraph.setBounds(10, 61, 49, 23);
|
|
|
editPanel.add(lblGraph);
|
|
|
|
|
|
graphNrTxtField.setColumns(10);
|
|
|
- graphNrTxtField.setBounds(69, 61, 86, 20);
|
|
|
+ graphNrTxtField.setBounds(69, 61, 101, 23);
|
|
|
editPanel.add(graphNrTxtField);
|
|
|
|
|
|
JLabel lblColor = new JLabel("Color:");
|
|
|
- lblColor.setBounds(10, 86, 29, 14);
|
|
|
+ lblColor.setBounds(10, 95, 49, 23);
|
|
|
editPanel.add(lblColor);
|
|
|
|
|
|
- colorComboBox.setBounds(69, 83, 86, 20);
|
|
|
+ colorComboBox.setBounds(69, 95, 101, 23);
|
|
|
editPanel.add(colorComboBox);
|
|
|
|
|
|
JLabel lblR = new JLabel("R");
|
|
|
- lblR.setBounds(10, 111, 11, 14);
|
|
|
+ lblR.setBounds(10, 139, 11, 14);
|
|
|
editPanel.add(lblR);
|
|
|
|
|
|
redField.setColumns(10);
|
|
|
- redField.setBounds(20, 108, 37, 20);
|
|
|
+ redField.setBounds(22, 136, 37, 20);
|
|
|
editPanel.add(redField);
|
|
|
|
|
|
JLabel lblG = new JLabel("G");
|
|
|
- lblG.setBounds(58, 111, 11, 14);
|
|
|
+ lblG.setBounds(68, 139, 11, 14);
|
|
|
editPanel.add(lblG);
|
|
|
|
|
|
greenField.setColumns(10);
|
|
|
- greenField.setBounds(69, 108, 37, 20);
|
|
|
+ greenField.setBounds(79, 136, 37, 20);
|
|
|
editPanel.add(greenField);
|
|
|
|
|
|
JLabel lblB = new JLabel("B");
|
|
|
- lblB.setBounds(108, 111, 10, 14);
|
|
|
+ lblB.setBounds(126, 139, 10, 14);
|
|
|
editPanel.add(lblB);
|
|
|
|
|
|
blueField.setColumns(10);
|
|
|
- blueField.setBounds(116, 108, 39, 20);
|
|
|
+ blueField.setBounds(133, 136, 37, 20);
|
|
|
editPanel.add(blueField);
|
|
|
|
|
|
colorPanel = new JPanel();
|
|
|
colorPanel.setBorder(new LineBorder(new Color(0, 0, 0)));
|
|
|
colorPanel.setBackground(Color.WHITE);
|
|
|
- colorPanel.setBounds(10, 136, 49, 36);
|
|
|
+ colorPanel.setBounds(10, 164, 59, 38);
|
|
|
editPanel.add(colorPanel);
|
|
|
|
|
|
- btnAdd.setBounds(10, 175, 51, 23);
|
|
|
+ btnAdd.setBounds(10, 213, 59, 23);
|
|
|
editPanel.add(btnAdd);
|
|
|
splitPane.setDividerLocation(220);
|
|
|
|