}
}
}
// add tooltip if enabled
if(enableToolTips){
MyCategoryToolTipGenerator generatorToolTip=new MyCategoryToolTipGenerator(freeToolTips, seriesTooltip, categoriesTooltip, seriesCaptions);
barRenderer.setToolTipGenerator(generatorToolTip);
barRenderer2.setToolTipGenerator(generatorToolTip);
}
//defines url for drill
boolean document_composition=false;
if(mode.equalsIgnoreCase(SpagoBIConstants.DOCUMENT_COMPOSITION))document_composition=true;
logger.debug("Calling Url Generation");
MyCategoryUrlGenerator mycatUrl=null;
if(super.rootUrl!=null){
logger.debug("Set MycatUrl");
mycatUrl=new MyCategoryUrlGenerator(super.rootUrl);
mycatUrl.setDocument_composition(document_composition);
mycatUrl.setCategoryUrlLabel(super.categoryUrlName);
mycatUrl.setSerieUrlLabel(super.serieUrlname);
mycatUrl.setDrillDocTitle(drillDocTitle);
mycatUrl.setTarget(target);
}
if(mycatUrl!=null && (!mycatUrl.getCategoryUrlLabel().equals("") || !mycatUrl.getSerieUrlLabel().equals(""))){
barRenderer.setItemURLGenerator(mycatUrl);
barRenderer2.setItemURLGenerator(mycatUrl);
}
plot.setDataset(2,datasetBarFirstAxis);
plot.setDataset(3,datasetBarSecondAxis);
plot.setRenderer(2,barRenderer);
plot.setRenderer(3,barRenderer2);
}
if(useLines){
LineAndShapeRenderer lineRenderer = new LineAndShapeRenderer();
LineAndShapeRenderer lineRenderer2 = new LineAndShapeRenderer();
//lineRenderer.setShapesFilled(false);
lineRenderer.setShapesFilled(true);
lineRenderer2.setShapesFilled(true);
// no shapes for line_no_shapes series
for (Iterator iterator = lineNoShapeSeries1.iterator(); iterator.hasNext();) {
String ser = (String) iterator.next();
// if there iS a abel associated search for that
String label=null;
if(seriesLabelsMap!=null){
label=(String)seriesLabelsMap.get(ser);
}
if(label==null)label=ser;
int index=datasetLineFirstAxis.getRowIndex(label);
if(index!=-1){
lineRenderer.setSeriesShapesVisible(index, false);
}
}
for (Iterator iterator = lineNoShapeSeries2.iterator(); iterator.hasNext();) {
String ser = (String) iterator.next();
// if there iS a abel associated search for that
String label=null;
if(seriesLabelsMap!=null){
label=(String)seriesLabelsMap.get(ser);
}
if(label==null)label=ser;
int index=datasetLineSecondAxis.getRowIndex(label);
if(index!=-1){
lineRenderer2.setSeriesShapesVisible(index, false);
}
}
if(enableToolTips){
MyCategoryToolTipGenerator generatorToolTip=new MyCategoryToolTipGenerator(freeToolTips, seriesTooltip, categoriesTooltip, seriesCaptions);
lineRenderer.setToolTipGenerator(generatorToolTip);
lineRenderer2.setToolTipGenerator(generatorToolTip);
}
if(showValueLabels){