[Schmitzm-commits] r849 - branches/2.0-GP14/src/schmitzm/jfree/feature/style

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri May 21 12:24:53 CEST 2010


Author: alfonx
Date: 2010-05-21 12:24:52 +0200 (Fri, 21 May 2010)
New Revision: 849

Modified:
   branches/2.0-GP14/src/schmitzm/jfree/feature/style/FeatureChartUtil.java
Log:
Casting to Number instead of Double

Modified: branches/2.0-GP14/src/schmitzm/jfree/feature/style/FeatureChartUtil.java
===================================================================
--- branches/2.0-GP14/src/schmitzm/jfree/feature/style/FeatureChartUtil.java	2010-05-21 09:35:41 UTC (rev 848)
+++ branches/2.0-GP14/src/schmitzm/jfree/feature/style/FeatureChartUtil.java	2010-05-21 10:24:52 UTC (rev 849)
@@ -310,7 +310,7 @@
             QuantileBin1D aggrStat = statisticsForAggregation[attrIdx].get(xValue);
             if (aggrStat == null) {
               aggrStat = new DynamicBin1D();
-              statisticsForAggregation[attrIdx].put((Double) xValue, aggrStat);
+              statisticsForAggregation[attrIdx].put(((Number) xValue).doubleValue(), aggrStat);
             }
             aggrStat.add(yValue.doubleValue());
             // TODO: Mapping vormerken (??)
@@ -343,7 +343,7 @@
           yValue = normalize(yValue, yAttrName, statisticsForNormalization);
 
         // Fill series
-        xySeries[attrIdx].add((Double) xValue, yValue);
+        xySeries[attrIdx].add((Number) xValue, yValue);
         // TODO: Mapping setzen
         // Problem: Pro dataset item kann nur EINE FeatureID gesetzt
         // werden (Feature2DatasetMapping, Zeile 124)



More information about the Schmitzm-commits mailing list