afreechart/src/main/java/org/afree/chart/StandardChartTheme.java
/**
     * Applies the settings of this theme to the specified renderer.
     *
     * @param renderer  the renderer (<code>null</code> not permitted).
     */
Applies the settings of this theme to the specified renderer.
@param renderer  the renderer (null not permitted).
Applies the settings of this theme to the specified renderer . @param renderer the renderer ( null not permitted ) .
protected void applyToXYItemRenderer(XYItemRenderer renderer) {
        if (renderer == null) {
            throw new IllegalArgumentException("Null 'renderer' argument.");
        }
        if (renderer instanceof AbstractRenderer) {
            applyToAbstractRenderer((AbstractRenderer) renderer);
        }
        renderer.setBaseItemLabelFont(this.regularFont);
        renderer.setBaseItemLabelPaintType(this.itemLabelPaintType);
        if (renderer instanceof XYBarRenderer) {
            XYBarRenderer br = (XYBarRenderer) renderer;
            br.setBarPainter(this.xyBarPainter);
            br.setShadowVisible(this.shadowVisible);
        }
    }
protected void applyToXYItemRenderer ( XYItemRenderer renderer ) { if ( renderer == null ) { throw new IllegalArgumentException ( "Null 'renderer' argument." ) ; } if ( renderer instanceof AbstractRenderer ) { applyToAbstractRenderer ( ( AbstractRenderer ) renderer ) ; } renderer . setBaseItemLabelFont ( this . regularFont ) ; renderer . setBaseItemLabelPaintType ( this . itemLabelPaintType ) ; if ( renderer instanceof XYBarRenderer ) { XYBarRenderer br = ( XYBarRenderer ) renderer ; br . setBarPainter ( this . xyBarPainter ) ; br . setShadowVisible ( this . shadowVisible ) ; } }
Applies the settings of this theme to the specified renderer.
Applies the settings of this theme to the specified renderer .