[Schmitzm-commits] r850 - trunk/src/schmitzm/jfree/feature/style
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri May 21 12:25:08 CEST 2010
Author: alfonx
Date: 2010-05-21 12:25:08 +0200 (Fri, 21 May 2010)
New Revision: 850
Modified:
trunk/src/schmitzm/jfree/feature/style/FeatureChartUtil.java
Log:
Casting to Number instead of Double
Modified: trunk/src/schmitzm/jfree/feature/style/FeatureChartUtil.java
===================================================================
--- trunk/src/schmitzm/jfree/feature/style/FeatureChartUtil.java 2010-05-21 10:24:52 UTC (rev 849)
+++ trunk/src/schmitzm/jfree/feature/style/FeatureChartUtil.java 2010-05-21 10:25:08 UTC (rev 850)
@@ -315,7 +315,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 (??)
@@ -348,7 +348,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