afreechart/src/main/java/org/afree/chart/StandardChartTheme.java
/**
     * Applies the attributes of this theme to the specified title.
     *
     * @param title  the title.
     */
Applies the attributes of this theme to the specified title.
@param title  the title.
Applies the attributes of this theme to the specified title . @param title the title .
protected void applyToTitle(Title title) {
        if (title instanceof TextTitle) {
            TextTitle tt = (TextTitle) title;
            tt.setFont(this.largeFont);
            tt.setPaintType(this.subtitlePaintType);
        }
        else if (title instanceof LegendTitle) {
            LegendTitle lt = (LegendTitle) title;
            if (lt.getBackgroundPaintType() != null) {
                lt.setBackgroundPaintType(this.legendBackgroundPaintType);
            }
            lt.setItemFont(this.regularFont);
            lt.setItemPaintType(this.legendItemPaintType);
            if (lt.getWrapper() != null) {
                applyToBlockContainer(lt.getWrapper());
            }
        }
    }
protected void applyToTitle ( Title title ) { if ( title instanceof TextTitle ) { TextTitle tt = ( TextTitle ) title ; tt . setFont ( this . largeFont ) ; tt . setPaintType ( this . subtitlePaintType ) ; } else if ( title instanceof LegendTitle ) { LegendTitle lt = ( LegendTitle ) title ; if ( lt . getBackgroundPaintType ( ) != null ) { lt . setBackgroundPaintType ( this . legendBackgroundPaintType ) ; } lt . setItemFont ( this . regularFont ) ; lt . setItemPaintType ( this . legendItemPaintType ) ; if ( lt . getWrapper ( ) != null ) { applyToBlockContainer ( lt . getWrapper ( ) ) ; } } }
Applies the attributes of this theme to the specified title.
Applies the attributes of this theme to the specified title .
//        else if (title instanceof PaintScaleLegend) { //            PaintScaleLegend psl = (PaintScaleLegend) title; //            psl.setBackgroundPaint(this.legendBackgroundPaint); //            ValueAxis axis = psl.getAxis(); //            if (axis != null) { //                applyToValueAxis(axis); //            } //        } //        else if (title instanceof CompositeTitle) { //            CompositeTitle ct = (CompositeTitle) title; //            BlockContainer bc = ct.getContainer(); //            List blocks = bc.getBlocks(); //            Iterator iterator = blocks.iterator(); //            while (iterator.hasNext()) { //                Block b = (Block) iterator.next(); //                if (b instanceof Title) { //                    applyToTitle((Title) b); //                } //            } //        }