if (seriesEvents == null && pointEvents == null) {
VConsole.log("No series/point events found for series type : "
+ seriesType);
continue;
}
GwtSeriesGeneralOptions seriesOptions = null;
if (seriesType.equals("line")) {
if (options.getPlotOptions().getLine() == null) {
options.getPlotOptions().setLine(
GwtLineOptions.createLineOptions());
}
seriesOptions = options.getPlotOptions().getLine();
} else if (seriesType.equals("spline")) {
if (options.getPlotOptions().getSpline() == null) {
options.getPlotOptions().setSpline(
GwtSplineOptions.createSplineOptions());
}
seriesOptions = options.getPlotOptions().getSpline();
} else if (seriesType.equals("area")) {
if (options.getPlotOptions().getArea() == null) {
options.getPlotOptions().setArea(
GwtAreaOptions.createAreaOptions());
}
seriesOptions = options.getPlotOptions().getArea();
} else if (seriesType.equals("areaspline")) {
if (options.getPlotOptions().getAreaSpline() == null) {
options.getPlotOptions().setAreaSpline(
GwtAreaSplineOptions.createAreaSplineOptions());
}
seriesOptions = options.getPlotOptions().getAreaSpline();
} else if (seriesType.equals("bar")) {
if (options.getPlotOptions().getBar() == null) {
options.getPlotOptions().setBar(
GwtBarOptions.createBarOptions());
}
seriesOptions = options.getPlotOptions().getBar();
} else if (seriesType.equals("column")) {
if (options.getPlotOptions().getColumn() == null) {
options.getPlotOptions().setColumn(
GwtColumnOptions.createColumnOptions());
}
seriesOptions = options.getPlotOptions().getColumn();
} else if (seriesType.equals("scatter")) {
if (options.getPlotOptions().getScatter() == null) {
options.getPlotOptions().setScatter(
GwtScatterOptions.createScatterOptions());
}
seriesOptions = options.getPlotOptions().getScatter();
} else if (seriesType.equals("pie")) {
if (options.getPlotOptions().getPie() == null) {
options.getPlotOptions().setPie(
GwtPieOptions.createPieOptions());
}
seriesOptions = options.getPlotOptions().getPie();
} else {
if (options.getPlotOptions().getSeries() == null) {
options.getPlotOptions().setSeries(
GwtSeriesGeneralOptions.createSeriesOptions());
}
seriesOptions = options.getPlotOptions().getSeries();
}
// Set series/point events
if (seriesEvents != null) {
seriesOptions.setEvents(seriesEvents);
}
if (pointEvents != null) {
seriesOptions.setPointEvents(pointEvents);
}
}
VConsole.log("Exit [updateOptionsWithSeriesAndPoingEvents]");
}