afreechart/src/main/java/org/afree/chart/StandardChartTheme.java
/**
     * Applies this theme to the supplied chart.
     *
     * @param chart  the chart (<code>null</code> not permitted).
     */
Applies this theme to the supplied chart.
@param chart  the chart (null not permitted).
Applies this theme to the supplied chart . @param chart the chart ( null not permitted ) .
public void apply(AFreeChart chart) {
        if (chart == null) {
            throw new IllegalArgumentException("Null 'chart' argument.");
        }
        TextTitle title = chart.getTitle();
        if (title != null) {
            title.setFont(this.extraLargeFont);
            title.setPaintType(this.titlePaintType);
        }
        int subtitleCount = chart.getSubtitleCount();
        for (int i = 0; i < subtitleCount; i++) {
            applyToTitle(chart.getSubtitle(i));
        }
        chart.setBackgroundPaintType(this.chartBackgroundPaintType);
        Plot plot = chart.getPlot();
        if (plot != null) {
            applyToPlot(plot);
        }
    }
public void apply ( AFreeChart chart ) { if ( chart == null ) { throw new IllegalArgumentException ( "Null 'chart' argument." ) ; } TextTitle title = chart . getTitle ( ) ; if ( title != null ) { title . setFont ( this . extraLargeFont ) ; title . setPaintType ( this . titlePaintType ) ; } int subtitleCount = chart . getSubtitleCount ( ) ; for ( int i = 0 ; i < subtitleCount ; i ++ ) { applyToTitle ( chart . getSubtitle ( i ) ) ; } chart . setBackgroundPaintType ( this . chartBackgroundPaintType ) ; Plot plot = chart . getPlot ( ) ; if ( plot != null ) { applyToPlot ( plot ) ; } }
Applies this theme to the supplied chart.
Applies this theme to the supplied chart .
// now process the plot if there is one