color = jrPlot.getNeedleColor();
if (color != null)
chartPlot.setNeedlePaint(color);
JRBaseFont font = new JRBaseFont();
JRFontUtil.copyNonNullOwnProperties(getPlotSettings().getTickLabelFont(), font);
JRFontUtil.copyNonNullOwnProperties(jrPlot.getTickLabelFont(), font);
font = new JRBaseFont(getChart(), font);
chartPlot.setTickLabelFont(JRFontUtil.getAwtFont(font, getLocale()));
// Set how the value is displayed.
JRValueDisplay display = jrPlot.getValueDisplay();
if (display != null)
{
if (display.getColor() != null)
{
chartPlot.setValuePaint(display.getColor());
}
if (display.getMask() != null)
{
chartPlot.setTickLabelFormat(new DecimalFormat(display.getMask()));
}
font = new JRBaseFont();
JRFontUtil.copyNonNullOwnProperties(getPlotSettings().getDisplayFont(), font);
JRFontUtil.copyNonNullOwnProperties(jrPlot.getValueDisplay().getFont(), font);
font = new JRBaseFont(getChart(), font);
chartPlot.setValueFont(JRFontUtil.getAwtFont(font, getLocale()));
}
color = jrPlot.getTickColor();