afreechart/src/main/java/org/afree/chart/renderer/category/BarRenderer.java
/**
     * Calculates the coordinates for the length of a single bar.
     * 
     * @param value
     *            the value represented by the bar.
     * 
     * @return The coordinates for each end of the bar (or <code>null</code> if
     *         the bar is not visible for the current axis range).
     */
Calculates the coordinates for the length of a single bar.

@param value
the value represented by the bar.

@return The coordinates for each end of the bar (or null if
the bar is not visible for the current axis range).
Calculates the coordinates for the length of a single bar . @param value the value represented by the bar . @return The coordinates for each end of the bar ( or null if the bar is not visible for the current axis range ) .
protected double[] calculateBarL0L1(double value) {
        double lclip = getLowerClip();
        double uclip = getUpperClip();
        double barLow = Math.min(this.base, value);
        double barHigh = Math.max(this.base, value);
        if (barHigh < lclip) { 
            return null;
        }
        if (barLow > uclip) { 
            return null;
        }
        barLow = Math.max(barLow, lclip);
        barHigh = Math.min(barHigh, uclip);
        return new double[] { barLow, barHigh };
    }
protected double [ ] calculateBarL0L1 ( double value ) { double lclip = getLowerClip ( ) ; double uclip = getUpperClip ( ) ; double barLow = Math . min ( this . base , value ) ; double barHigh = Math . max ( this . base , value ) ; if ( barHigh < lclip ) { return null ; } if ( barLow > uclip ) { return null ; } barLow = Math . max ( barLow , lclip ) ; barHigh = Math . min ( barHigh , uclip ) ; return new double [ ] { barLow , barHigh } ; }
Calculates the coordinates for the length of a single bar.
Calculates the coordinates for the length of a single bar .
// bar is not visible // bar is not visible