private GwtPlotOptions getPlotOptions(UIDL uidl) {
VConsole.log("Enter [getPlotOptions]");
VConsole.log("Tag Name : " + uidl.getTag());
GwtPlotOptions plotOptions = GwtPlotOptions.create();
for (int cnt = 0; cnt < uidl.getChildCount(); cnt++) {
UIDL seriesUIDL = uidl.getChildUIDL(cnt);
String seriesType = seriesUIDL.getTag();
VConsole.log("Series Type : " + seriesType);
GwtSeriesGeneralOptions seriesOptions = getSeriesOptions(
seriesType, seriesUIDL);
if (seriesOptions == null) {
continue;
}
if (seriesType.equals("series")) {
plotOptions.setSeries(seriesOptions);
} else if (seriesType.equals("line")) {
plotOptions.setLine((GwtLineOptions) seriesOptions);
} else if (seriesType.equals("scatter")) {
plotOptions.setScatter((GwtScatterOptions) seriesOptions);
} else if (seriesType.equals("spline")) {
plotOptions.setSpline((GwtSplineOptions) seriesOptions);
} else if (seriesType.equals("area")) {
plotOptions.setArea((GwtAreaOptions) seriesOptions);
} else if (seriesType.equals("areaspline")) {
plotOptions.setAreaSpline((GwtAreaSplineOptions) seriesOptions);
} else if (seriesType.equals("bar")) {
plotOptions.setBar((GwtBarOptions) seriesOptions);
} else if (seriesType.equals("column")) {
plotOptions.setColumn((GwtColumnOptions) seriesOptions);
} else if (seriesType.equals("pie")) {
plotOptions.setPie((GwtPieOptions) seriesOptions);
}
}
VConsole.log("Exit [getPlotOptions]");
return plotOptions;