[Swift-commit] r5950 - usertools/plotter/src/plotter

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Wed Sep 26 11:57:04 CDT 2012


Author: wozniak
Date: 2012-09-26 11:57:04 -0500 (Wed, 26 Sep 2012)
New Revision: 5950

Modified:
   usertools/plotter/src/plotter/Lines.java
Log:
Support line.* property


Modified: usertools/plotter/src/plotter/Lines.java
===================================================================
--- usertools/plotter/src/plotter/Lines.java	2012-09-25 20:34:39 UTC (rev 5949)
+++ usertools/plotter/src/plotter/Lines.java	2012-09-26 16:57:04 UTC (rev 5950)
@@ -238,6 +238,8 @@
       Series series = collection.getSeries(i);
       if (! showShape(series.getDescription()))
         renderer.setSeriesShapesVisible(i, false);
+      if (! showLine(series.getDescription()))
+        renderer.setSeriesLinesVisible(i, false);
     }
 
     Plots.setupLegend(chart, properties);
@@ -420,6 +422,18 @@
     return true;
   }
 
+  static boolean showLine(String name)
+  {
+    String mode = properties.getProperty("line."+name);
+    // System.out.println(mode);
+    if ("none".equals(mode))
+      return false;
+    mode = properties.getProperty("line.all");
+    if ("none".equals(mode))
+      return false;
+    return true;
+  }
+
   static String toString(double[][] array)
   {
     StringBuilder sb = new StringBuilder();




More information about the Swift-commit mailing list