/*
* Takes all the report's charts and inserts them in their corresponding bands
*/
protected void layoutCharts() {
//Pre-sort charts by group column
MultiMap mmap = new MultiHashMap();
for (Iterator iter = getReport().getCharts().iterator(); iter.hasNext();) {
DJChart djChart = (DJChart) iter.next();
mmap.put(djChart.getColumnsGroup(), djChart);
}
for (Iterator iterator = mmap.keySet().iterator(); iterator.hasNext();) {
Object key = iterator.next();
Collection charts = (Collection) mmap.get(key);
ArrayList l = new ArrayList(charts);
//Reverse iteration of the charts to meet insertion order
for (int i = l.size(); i > 0; i--) {
DJChart djChart = (DJChart) l.get(i-1);
JRDesignChart chart = createChart(djChart);