afreechart/src/main/java/org/afree/chart/StandardChartTheme.java
/**
     * Applies the attributes of this theme to the specified block.
     *
     * @param b  the block.
     */
Applies the attributes of this theme to the specified block.
@param b  the block.
Applies the attributes of this theme to the specified block . @param b the block .
protected void applyToBlock(Block b) {
        if (b instanceof Title) {
            applyToTitle((Title) b);
        }
        else if (b instanceof LabelBlock) {
            LabelBlock lb = (LabelBlock) b;
            lb.setFont(this.regularFont);
            lb.setPaintType(this.legendItemPaintType);
        }
    }
protected void applyToBlock ( Block b ) { if ( b instanceof Title ) { applyToTitle ( ( Title ) b ) ; } else if ( b instanceof LabelBlock ) { LabelBlock lb = ( LabelBlock ) b ; lb . setFont ( this . regularFont ) ; lb . setPaintType ( this . legendItemPaintType ) ; } }
Applies the attributes of this theme to the specified block.
Applies the attributes of this theme to the specified block .