afreechart/src/main/java/org/afree/chart/plot/PiePlot.java
/**
     * Returns the outline paint for the specified section. The lookup involves
     * these steps:
     * <ul>
     * <li>if {@link #getSectionOutlinePaintType()} is non-<code>null</code>,
     * return it;</li>
     * <li>otherwise, if {@link #getSectionOutlinePaintType(int)} is non-
     * <code>null</code> return it;</li>
     * <li>if {@link #getSectionOutlinePaintType(int)} is <code>null</code> but
     * <code>autoPopulate</code> is <code>true</code>, attempt to fetch a new
     * outline paint from the drawing supplier ({@link #getDrawingSupplier()});
     * <li>if all else fails, return {@link #getBaseSectionOutlinePaintType()}.
     * </ul>
     * 
     * @param key
     *            the section key.
     * @param autoPopulate
     *            a flag that controls whether the drawing supplier is used to
     *            auto-populate the section outline paint settings.
     * 
     * @return The paint type.
     * 
     * @since JFreeChart 1.0.3
     */
Returns the outline paint for the specified section.

@param key
the section key.
@param autoPopulate
a flag that controls whether the drawing supplier is used to
auto-populate the section outline paint settings.

@return The paint type.


Returns the outline paint for the specified section . @param key the section key . @param autoPopulate a flag that controls whether the drawing supplier is used to auto - populate the section outline paint settings . @return The paint type .
protected PaintType lookupSectionOutlinePaintType(Comparable key, boolean autoPopulate) {
        PaintType result = getSectionOutlinePaintType();
        if (result != null) {
            return result;
        }
        result = this.sectionOutlinePaintTypeMap.getPaintType(key);
        if (result != null) {
            return result;
        }
        if (autoPopulate) {
            DrawingSupplier ds = getDrawingSupplier();
            if (ds != null) {
                result = ds.getNextOutlinePaintType();
                this.sectionOutlinePaintTypeMap.put(key, result);
            } else {
                result = this.baseSectionOutlinePaintType;
            }
        } else {
            result = this.baseSectionOutlinePaintType;
        }
        return result;
    }
protected PaintType lookupSectionOutlinePaintType ( Comparable key , boolean autoPopulate ) { PaintType result = getSectionOutlinePaintType ( ) ; if ( result != null ) { return result ; } result = this . sectionOutlinePaintTypeMap . getPaintType ( key ) ; if ( result != null ) { return result ; } if ( autoPopulate ) { DrawingSupplier ds = getDrawingSupplier ( ) ; if ( ds != null ) { result = ds . getNextOutlinePaintType ( ) ; this . sectionOutlinePaintTypeMap . put ( key , result ) ; } else { result = this . baseSectionOutlinePaintType ; } } else { result = this . baseSectionOutlinePaintType ; } return result ; }
Returns the outline paint for the specified section.
Returns the outline paint for the specified section .
// is there an override? // if not, check if there is a paint defined for the specified key // nothing defined - do we autoPopulate?