main/plugins/org.talend.libraries.jfreechart.jars/lib_src/jfreechart-1.0.12/source/org/jfree/chart/plot/PieLabelDistributor.java
/**
     * Labels are spaced evenly in the available space in an attempt to
     * eliminate the overlaps.
     *
     * @param minY  the minimum y value (in Java2D coordinate space).
     * @param height  the height available for all labels.
     */
Labels are spaced evenly in the available space in an attempt to
eliminate the overlaps.

@param minY  the minimum y value (in Java2D coordinate space).
@param height  the height available for all labels.
Labels are spaced evenly in the available space in an attempt to eliminate the overlaps . @param minY the minimum y value ( in Java2D coordinate space ) . @param height the height available for all labels .
protected void spreadEvenly(double minY, double height) {
        double y = minY;
        double sumOfLabelHeights = 0.0;
        for (int i = 0; i < this.labels.size(); i++) {
            sumOfLabelHeights += getPieLabelRecord(i).getLabelHeight();
        }
        double gap = height - sumOfLabelHeights;
        if (this.labels.size() > 1) {
            gap = gap / (this.labels.size() - 1);
        }
        for (int i = 0; i < this.labels.size(); i++) {
            PieLabelRecord record = getPieLabelRecord(i);
            y = y + record.getLabelHeight() / 2.0;
            record.setAllocatedY(y);
            y = y + record.getLabelHeight() / 2.0 + gap;
        }
    }
protected void spreadEvenly ( double minY , double height ) { double y = minY ; double sumOfLabelHeights = 0.0 ; for ( int i = 0 ; i < this . labels . size ( ) ; i ++ ) { sumOfLabelHeights += getPieLabelRecord ( i ) . getLabelHeight ( ) ; } double gap = height - sumOfLabelHeights ; if ( this . labels . size ( ) > 1 ) { gap = gap / ( this . labels . size ( ) - 1 ) ; } for ( int i = 0 ; i < this . labels . size ( ) ; i ++ ) { PieLabelRecord record = getPieLabelRecord ( i ) ; y = y + record . getLabelHeight ( ) / 2.0 ; record . setAllocatedY ( y ) ; y = y + record . getLabelHeight ( ) / 2.0 + gap ; } }
Labels are spaced evenly in the available space in an attempt to
 eliminate the overlaps.
Labels are spaced evenly in the available space in an attempt to eliminate the overlaps .