mirror of https://github.com/apache/poi.git
don't wrap exceptions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903274 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0735103188
commit
59091db138
|
@ -106,7 +106,6 @@ public class XDDFBubbleChartData extends XDDFChartData {
|
||||||
public XDDFChartData.Series addSeries(XDDFDataSource<?> category,
|
public XDDFChartData.Series addSeries(XDDFDataSource<?> category,
|
||||||
XDDFNumericalDataSource<? extends Number> values) {
|
XDDFNumericalDataSource<? extends Number> values) {
|
||||||
final long index = this.parent.incrementSeriesCount();
|
final long index = this.parent.incrementSeriesCount();
|
||||||
try {
|
|
||||||
final CTBubbleSer ctSer = this.chart.addNewSer();
|
final CTBubbleSer ctSer = this.chart.addNewSer();
|
||||||
ctSer.addNewXVal();
|
ctSer.addNewXVal();
|
||||||
ctSer.addNewYVal();
|
ctSer.addNewYVal();
|
||||||
|
@ -115,9 +114,6 @@ public class XDDFBubbleChartData extends XDDFChartData {
|
||||||
final Series added = new Series(ctSer, category, values);
|
final Series added = new Series(ctSer, category, values);
|
||||||
this.series.add(added);
|
this.series.add(added);
|
||||||
return added;
|
return added;
|
||||||
} catch (Exception ex) {
|
|
||||||
throw new RuntimeException(ex);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Series extends XDDFChartData.Series {
|
public class Series extends XDDFChartData.Series {
|
||||||
|
@ -141,14 +137,10 @@ public class XDDFBubbleChartData extends XDDFChartData {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBubbleSizes(XDDFNumericalDataSource<?> values) {
|
public void setBubbleSizes(XDDFNumericalDataSource<?> values) {
|
||||||
try {
|
|
||||||
if (series.isSetBubbleSize()) series.unsetBubbleSize();
|
if (series.isSetBubbleSize()) series.unsetBubbleSize();
|
||||||
CTNumDataSource bubbleSizes = series.addNewBubbleSize();
|
CTNumDataSource bubbleSizes = series.addNewBubbleSize();
|
||||||
CTNumData cache = retrieveNumCache(bubbleSizes, values);
|
CTNumData cache = retrieveNumCache(bubbleSizes, values);
|
||||||
values.fillNumericalCache(cache);
|
values.fillNumericalCache(cache);
|
||||||
} catch (Exception ex) {
|
|
||||||
throw new RuntimeException(ex);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue