[Schmitzm-commits] r276 - in trunk/src/schmitzm/jfree: . chart/style

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sat Aug 1 20:26:53 CEST 2009


Author: alfonx
Date: 2009-08-01 20:26:53 +0200 (Sat, 01 Aug 2009)
New Revision: 276

Modified:
   trunk/src/schmitzm/jfree/JFreeChartUtil.java
   trunk/src/schmitzm/jfree/chart/style/ChartRendererStyle.java
Log:
* Hackingsession: Charts ... BUGFIX TT != Label

Modified: trunk/src/schmitzm/jfree/JFreeChartUtil.java
===================================================================
--- trunk/src/schmitzm/jfree/JFreeChartUtil.java	2009-08-01 18:07:08 UTC (rev 275)
+++ trunk/src/schmitzm/jfree/JFreeChartUtil.java	2009-08-01 18:26:53 UTC (rev 276)
@@ -130,7 +130,7 @@
    * @param renderer a renderer
    */
   public static void fireChangeEvent(AbstractRenderer renderer) {
-    renderer.notifyListeners( new RendererChangeEvent(renderer) );
+    renderer.notifyListeners( new RendererChangeEvent(renderer,true) );
   }
 
   /**

Modified: trunk/src/schmitzm/jfree/chart/style/ChartRendererStyle.java
===================================================================
--- trunk/src/schmitzm/jfree/chart/style/ChartRendererStyle.java	2009-08-01 18:07:08 UTC (rev 275)
+++ trunk/src/schmitzm/jfree/chart/style/ChartRendererStyle.java	2009-08-01 18:26:53 UTC (rev 276)
@@ -249,8 +249,8 @@
    * Returns a label generator based on the <b>legend label</b>
    * definitions of this style.
    */
-  public LegendTooltipGenerator getLegendLabelGenerator() {
-    return legendTooltipGenerator;
+  public LegendLabelGenerator getLegendLabelGenerator() {
+    return legendLabelGenerator;
   }
 
   /**
@@ -454,7 +454,7 @@
     
     public String generateLabel(int series) {
       // if label is not defined, generate no tooltip 
-      if ( getSeriesLegendLabel(series) == null )
+      if ( getSeriesLegendTooltip(series) == null )
         return null;
       return getSeriesLegendTooltip(series).getLabel();
     }



More information about the Schmitzm-commits mailing list