|
@@ -147,6 +147,7 @@ public class GUI implements CategoryListener {
|
|
private CpsObject tempCps = null;
|
|
private CpsObject tempCps = null;
|
|
|
|
|
|
private MyCanvas canvas;
|
|
private MyCanvas canvas;
|
|
|
|
+ private UnitGraph testgraph; // for testing, remove later
|
|
private final JSplitPane splitPane_3 = new JSplitPane();
|
|
private final JSplitPane splitPane_3 = new JSplitPane();
|
|
private final JSlider slider = new JSlider();
|
|
private final JSlider slider = new JSlider();
|
|
private final JLabel lblImageSize = new JLabel("Image Size");
|
|
private final JLabel lblImageSize = new JLabel("Image Size");
|
|
@@ -158,6 +159,7 @@ public class GUI implements CategoryListener {
|
|
this.controller = control;
|
|
this.controller = control;
|
|
this.model = control.getModel();
|
|
this.model = control.getModel();
|
|
this.canvas = new MyCanvas(model, control);
|
|
this.canvas = new MyCanvas(model, control);
|
|
|
|
+ this.testgraph = new UnitGraph(model, control); // for testing, remove later
|
|
control.initListener(this);
|
|
control.initListener(this);
|
|
initialize();
|
|
initialize();
|
|
updateCategories(model.getCategories());
|
|
updateCategories(model.getCategories());
|
|
@@ -210,6 +212,8 @@ public class GUI implements CategoryListener {
|
|
|
|
|
|
mnHelp.add(aboutUs);
|
|
mnHelp.add(aboutUs);
|
|
|
|
|
|
|
|
+ testgraph.setBackground(Color.WHITE);
|
|
|
|
+
|
|
canvas.setBackground(Color.WHITE);
|
|
canvas.setBackground(Color.WHITE);
|
|
canvas.setPreferredSize(new Dimension(10000, 10000));
|
|
canvas.setPreferredSize(new Dimension(10000, 10000));
|
|
JScrollPane canvasSP = new JScrollPane(canvas);
|
|
JScrollPane canvasSP = new JScrollPane(canvas);
|
|
@@ -259,7 +263,7 @@ public class GUI implements CategoryListener {
|
|
*/
|
|
*/
|
|
scrollProperties.setViewportView(tableProperties);
|
|
scrollProperties.setViewportView(tableProperties);
|
|
scrollElements.setViewportView(tableHolonElement);
|
|
scrollElements.setViewportView(tableHolonElement);
|
|
- scrollGraph.setViewportView(tableGraph);
|
|
|
|
|
|
+ scrollGraph.setViewportView(testgraph);
|
|
|
|
|
|
frmCyberPhysical.getContentPane().setLayout(new BorderLayout(0, 0));
|
|
frmCyberPhysical.getContentPane().setLayout(new BorderLayout(0, 0));
|
|
|
|
|