JRFontUtil.copyNonNullOwnProperties(legendSettings.getFont(), font);
JRFontUtil.copyNonNullOwnProperties(getChart().getLegendFont(), font);
font = new JRBaseFont(getChart(), font);
legend.setItemFont(JRFontUtil.getAwtFont(font, getLocale()));
Paint forePaint = getChart().getOwnLegendColor();
if (forePaint == null && legendSettings.getForegroundPaint() != null)
{
forePaint = legendSettings.getForegroundPaint().getPaint();
}
if (forePaint == null)
{
forePaint = getChart().getLegendColor();
}
if (forePaint != null)
legend.setItemPaint(forePaint);
Paint backPaint = getChart().getOwnLegendBackgroundColor();
if (backPaint == null && legendSettings.getBackgroundPaint() != null)
{
backPaint = legendSettings.getBackgroundPaint().getPaint();
}
if (backPaint == null)