afreechart/src/main/java/org/afree/chart/StandardChartTheme.java
/**
     * Applies the attributes of this theme to a {@link CategoryPlot}.
     *
     * @param plot  the plot (<code>null</code> not permitted).
     */
Applies the attributes of this theme to a  CategoryPlot.
@param plot  the plot (null not permitted).
Applies the attributes of this theme to a CategoryPlot . @param plot the plot ( null not permitted ) .
protected void applyToCategoryPlot(CategoryPlot plot) {
        plot.setAxisOffset(this.axisOffset);
        plot.setDomainGridlinePaintType(this.domainGridlinePaintType);
        plot.setRangeGridlinePaintType(this.rangeGridlinePaintType);
        plot.setRangeZeroBaselinePaintType(this.baselinePaintType);
        int domainAxisCount = plot.getDomainAxisCount();
        for (int i = 0; i < domainAxisCount; i++) {
            CategoryAxis axis = plot.getDomainAxis(i);
            if (axis != null) {
                applyToCategoryAxis(axis);
            }
        }
        int rangeAxisCount = plot.getRangeAxisCount();
        for (int i = 0; i < rangeAxisCount; i++) {
            ValueAxis axis = (ValueAxis) plot.getRangeAxis(i);
            if (axis != null) {
                applyToValueAxis(axis);
            }
        }
        int rendererCount = plot.getRendererCount();
        for (int i = 0; i < rendererCount; i++) {
            CategoryItemRenderer r = plot.getRenderer(i);
            if (r != null) {
                applyToCategoryItemRenderer(r);
            }
        }
        if (plot instanceof CombinedDomainCategoryPlot) {
            CombinedDomainCategoryPlot cp = (CombinedDomainCategoryPlot) plot;
            Iterator iterator = cp.getSubplots().iterator();
            while (iterator.hasNext()) {
                CategoryPlot subplot = (CategoryPlot) iterator.next();
                if (subplot != null) {
                    applyToPlot(subplot);
                }
            }
        }
        if (plot instanceof CombinedRangeCategoryPlot) {
            CombinedRangeCategoryPlot cp = (CombinedRangeCategoryPlot) plot;
            Iterator iterator = cp.getSubplots().iterator();
            while (iterator.hasNext()) {
                CategoryPlot subplot = (CategoryPlot) iterator.next();
                if (subplot != null) {
                    applyToPlot(subplot);
                }
            }
        }
    }
protected void applyToCategoryPlot ( CategoryPlot plot ) { plot . setAxisOffset ( this . axisOffset ) ; plot . setDomainGridlinePaintType ( this . domainGridlinePaintType ) ; plot . setRangeGridlinePaintType ( this . rangeGridlinePaintType ) ; plot . setRangeZeroBaselinePaintType ( this . baselinePaintType ) ; int domainAxisCount = plot . getDomainAxisCount ( ) ; for ( int i = 0 ; i < domainAxisCount ; i ++ ) { CategoryAxis axis = plot . getDomainAxis ( i ) ; if ( axis != null ) { applyToCategoryAxis ( axis ) ; } } int rangeAxisCount = plot . getRangeAxisCount ( ) ; for ( int i = 0 ; i < rangeAxisCount ; i ++ ) { ValueAxis axis = ( ValueAxis ) plot . getRangeAxis ( i ) ; if ( axis != null ) { applyToValueAxis ( axis ) ; } } int rendererCount = plot . getRendererCount ( ) ; for ( int i = 0 ; i < rendererCount ; i ++ ) { CategoryItemRenderer r = plot . getRenderer ( i ) ; if ( r != null ) { applyToCategoryItemRenderer ( r ) ; } } if ( plot instanceof CombinedDomainCategoryPlot ) { CombinedDomainCategoryPlot cp = ( CombinedDomainCategoryPlot ) plot ; Iterator iterator = cp . getSubplots ( ) . iterator ( ) ; while ( iterator . hasNext ( ) ) { CategoryPlot subplot = ( CategoryPlot ) iterator . next ( ) ; if ( subplot != null ) { applyToPlot ( subplot ) ; } } } if ( plot instanceof CombinedRangeCategoryPlot ) { CombinedRangeCategoryPlot cp = ( CombinedRangeCategoryPlot ) plot ; Iterator iterator = cp . getSubplots ( ) . iterator ( ) ; while ( iterator . hasNext ( ) ) { CategoryPlot subplot = ( CategoryPlot ) iterator . next ( ) ; if ( subplot != null ) { applyToPlot ( subplot ) ; } } } }
Applies the attributes of this theme to a {@link CategoryPlot}.
Applies the attributes of this theme to a { @link CategoryPlot } .
// process all domain axes // process all range axes // process all renderers