Print

Print


Commit in java/trunk/monitoring-app/src/main/java/org/hps/monitoring on MAIN
MonitoringAnalysisFactory.java+9113 -> 114
MonitoringApplication.java+6-3113 -> 114
+15-3
2 modified files
add configuration of JFreeChart to override some default settings

java/trunk/monitoring-app/src/main/java/org/hps/monitoring
MonitoringAnalysisFactory.java 113 -> 114
--- java/trunk/monitoring-app/src/main/java/org/hps/monitoring/MonitoringAnalysisFactory.java	2014-01-24 00:09:15 UTC (rev 113)
+++ java/trunk/monitoring-app/src/main/java/org/hps/monitoring/MonitoringAnalysisFactory.java	2014-01-24 00:52:23 UTC (rev 114)
@@ -1,6 +1,10 @@
 package org.hps.monitoring;
 
+import org.jfree.chart.ChartFactory;
+import org.jfree.chart.renderer.xy.XYBarRenderer;
+
 import hep.aida.IPlotterFactory;
+import hep.aida.jfree.chart.DefaultChartTheme;
 import hep.aida.ref.AnalysisFactory;
 
 /**
@@ -27,6 +31,11 @@
     final static void register() {
         System.setProperty("hep.aida.IAnalysisFactory", MonitoringAnalysisFactory.class.getName());
     }
+    
+    public static void configure() {
+        ChartFactory.setChartTheme(new DefaultChartTheme());
+        XYBarRenderer.setDefaultShadowsVisible(false);
+    }
 
     /**
      * Create a named plotter factory for the monitoring application.

java/trunk/monitoring-app/src/main/java/org/hps/monitoring
MonitoringApplication.java 113 -> 114
--- java/trunk/monitoring-app/src/main/java/org/hps/monitoring/MonitoringApplication.java	2014-01-24 00:09:15 UTC (rev 113)
+++ java/trunk/monitoring-app/src/main/java/org/hps/monitoring/MonitoringApplication.java	2014-01-24 00:52:23 UTC (rev 114)
@@ -101,8 +101,8 @@
 // classes.
 // TODO: Capture std err and out and redirect to a text panel within the application.
 // TODO: Review use of Resettable and Redrawable to see if they can be removed and the
-// standard Driver API used instead.  Resettable can maybe be replaced by startOfData().
-// TODO: Add JFreeChart backend support and make CL option to use it.
+//       standard Driver API used instead.  Resettable can maybe be replaced by startOfData().
+//       Not sure about Redrawable; maybe it isn't needed at all.
 // FIXME: Tracebacks from errors should be caught and written into the log table.
 public class MonitoringApplication {
 
@@ -224,9 +224,12 @@
         log("Application initialized successfully.");
     }
 
+    /**
+     * Setup and configure the AIDA plotting backend.
+     */
     private void setupAida() {
-        //AnalysisFactory.configure();
         MonitoringAnalysisFactory.register();
+        MonitoringAnalysisFactory.configure();
         MonitoringPlotFactory.setRootPane(plotPane);
     }
 
SVNspam 0.1