case COMBINED_XY :
final int layoutConst = getLayoutConstant(layout);
Plot plot = null;
switch (layoutConst) {
case DOMAIN :
ValueAxis domainAxis = new DateAxis(xAxisLabel);
plot = new CombinedDomainXYPlot(domainAxis);
for (int i = 0; i < plotDefinitions.size(); i++) {
PlotDefinition pd = (PlotDefinition) plotDefinitions.get(i);
check(pd.getDataset(), XYDataset.class, chartType);
XYPlot temp = (XYPlot) pd.getPlot(chartTypeConst);
NumberAxis na = new NumberAxis(pd.getYaxislabel());
if (pd.isYaxisinteger())
na.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
temp.setRangeAxis(na);
((CombinedDomainXYPlot) plot).add(temp);
}
return new JFreeChart(title, new Font("SansSerif", Font.BOLD, 18), plot, showLegend);
case RANGE :
ValueAxis rangeAxis = new NumberAxis(yAxisLabel);
plot = new CombinedRangeXYPlot(rangeAxis);
boolean allInteger = true;
for (int i = 0; i < plotDefinitions.size(); i++) {
PlotDefinition pd = (PlotDefinition) plotDefinitions.get(i);
if (! pd.isYaxisinteger())
allInteger = false;
check(pd.getDataset(), XYDataset.class, chartType);
XYPlot temp = (XYPlot) pd.getPlot(chartTypeConst);
temp.setDomainAxis(new DateAxis(pd.getXaxislabel()));
((CombinedRangeXYPlot) plot).add(temp);
}
if (allInteger)
((NumberAxis) rangeAxis).setStandardTickUnits(NumberAxis.createIntegerTickUnits());
return new JFreeChart(title, new Font("SansSerif", Font.BOLD, 18), plot, showLegend);