true,
false );
configureChart(jfreeChart, getPlot());
CategoryPlot categoryPlot = (CategoryPlot)jfreeChart.getPlot();
JRBar3DPlot bar3DPlot = (JRBar3DPlot)getPlot();
BarRenderer3D barRenderer3D =
new BarRenderer3D(
bar3DPlot.getXOffsetDouble() == null ? BarRenderer3D.DEFAULT_X_OFFSET : bar3DPlot.getXOffsetDouble().doubleValue(),
bar3DPlot.getYOffsetDouble() == null ? BarRenderer3D.DEFAULT_Y_OFFSET : bar3DPlot.getYOffsetDouble().doubleValue()
);
boolean isShowLabels = bar3DPlot.getShowLabels() == null ? false : bar3DPlot.getShowLabels().booleanValue();
barRenderer3D.setBaseItemLabelsVisible( isShowLabels );
if(isShowLabels)
{
JRItemLabel itemLabel = bar3DPlot.getItemLabel();
JRFont font = itemLabel != null && itemLabel.getFont() != null ? itemLabel.getFont() : new JRBaseFont(getChart(), null);
barRenderer3D.setBaseItemLabelFont(JRFontUtil.getAwtFont(font, getLocale()));
if(itemLabel != null)
{
if(itemLabel.getColor() != null)
{
barRenderer3D.setBaseItemLabelPaint(itemLabel.getColor());
}
else
{
barRenderer3D.setBaseItemLabelPaint(getChart().getForecolor());
}
// categoryRenderer.setBaseFillPaint(itemLabel.getBackgroundColor());
// if(itemLabel.getMask() != null)
// {
// barRenderer3D.setBaseItemLabelGenerator(new StandardCategoryItemLabelGenerator(
// StandardCategoryItemLabelGenerator.DEFAULT_LABEL_FORMAT_STRING,
// new DecimalFormat(itemLabel.getMask())));
// }
// else
// {
barRenderer3D.setBaseItemLabelGenerator((CategoryItemLabelGenerator)getLabelGenerator());
// }
}
else
{
barRenderer3D.setBaseItemLabelGenerator((CategoryItemLabelGenerator)getLabelGenerator());
barRenderer3D.setBaseItemLabelPaint(getChart().getForecolor());
}
}
categoryPlot.setRenderer(barRenderer3D);
// Handle the axis formating for the category axis
configureAxis(categoryPlot.getDomainAxis(), bar3DPlot.getCategoryAxisLabelFont(),
bar3DPlot.getCategoryAxisLabelColor(), bar3DPlot.getCategoryAxisTickLabelFont(),
bar3DPlot.getCategoryAxisTickLabelColor(), bar3DPlot.getCategoryAxisTickLabelMask(),bar3DPlot.getCategoryAxisVerticalTickLabels(),
bar3DPlot.getOwnCategoryAxisLineColor(), getDomainAxisSettings(),
(Comparable)evaluateExpression(bar3DPlot.getDomainAxisMinValueExpression()),
(Comparable)evaluateExpression(bar3DPlot.getDomainAxisMaxValueExpression())
);
// Handle the axis formating for the value axis
configureAxis(categoryPlot.getRangeAxis(), bar3DPlot.getValueAxisLabelFont(),
bar3DPlot.getValueAxisLabelColor(), bar3DPlot.getValueAxisTickLabelFont(),
bar3DPlot.getValueAxisTickLabelColor(), bar3DPlot.getValueAxisTickLabelMask(),bar3DPlot.getValueAxisVerticalTickLabels(),
bar3DPlot.getOwnValueAxisLineColor(), getRangeAxisSettings(),
(Comparable)evaluateExpression(bar3DPlot.getRangeAxisMinValueExpression()),
(Comparable)evaluateExpression(bar3DPlot.getRangeAxisMaxValueExpression())