Browse Source

Removed debug. The UI bugs me, though.

Ludwig Tietze 6 years ago
parent
commit
73ba930e22
2 changed files with 3 additions and 5 deletions
  1. 1 3
      src/ui/view/StatisticGraph.java
  2. 2 2
      src/ui/view/StatisticPanel.java

+ 1 - 3
src/ui/view/StatisticGraph.java

@@ -539,7 +539,6 @@ public class StatisticGraph extends JPanel {
             path.moveTo(DISTANCE_IN_GRAPH * this.getWidth() / model.getIterations(), convertToCanvasY(set.getValues()[1]));
         }
         for (int i = 0; i < range; i++) {
-        	System.out.println(i);
             if (set.getValues()[i + 1] != -1) {
                 path.lineTo((i + 1) * this.getWidth() / model.getIterations(),
                         convertToCanvasY(set.getValues()[i + 1]));
@@ -772,9 +771,8 @@ public class StatisticGraph extends JPanel {
         paintComponent(g);
     }
 
-	public void updateIterations() {
+	void updateIterations() {
 		for(TrackedDataSet dataSet:dataSets){
-			System.out.println("Updating: "+dataSet);
 			dataSet.updateIterations();
 		}
 	}

+ 2 - 2
src/ui/view/StatisticPanel.java

@@ -59,7 +59,7 @@ public class StatisticPanel extends JSplitPane implements GraphListener {
     private DefaultMutableTreeNode groupNode;
 
     private Hashtable<String, GraphDataSet> objectHashtable;
-    private Hashtable<String, StatisticGraphPanel> graphHashtable;//TODO: this
+    private Hashtable<String, StatisticGraphPanel> graphHashtable;
     private Hashtable<String, PropertyDataSet> holonHashtable;
     private Hashtable<String, Integer> propValTable;
 
@@ -569,7 +569,7 @@ public class StatisticPanel extends JSplitPane implements GraphListener {
                             absCps = dataSet.getObject();
                         }
                         TrackedDataSet tds = new TrackedDataSet(absCps, propValTable.get(property),
-                                currentProperty.getColor(),cont.getModel().getIterations());//TODO
+                                currentProperty.getColor(),cont.getModel().getIterations());
                         graphHashtable.get(graphNrTxtField.getText()).addObject(tds);
                     }
                 }