afreechart/src/main/java/org/afree/chart/axis/NumberAxis.java
/**
     * Converts a coordinate in Java2D space to the corresponding data value,
     * assuming that the axis runs along one edge of the specified dataArea.
     * 
     * @param java2DValue
     *            the coordinate in Java2D space.
     * @param area
     *            the area in which the data is plotted.
     * @param edge
     *            the location.
     * 
     * @return The data value.
     * 
     * @see #valueToJava2D(double, RectShape, RectangleEdge)
     */
Converts a coordinate in Java2D space to the corresponding data value,
assuming that the axis runs along one edge of the specified dataArea.

@param java2DValue
the coordinate in Java2D space.
@param area
the area in which the data is plotted.
@param edge
the location.

@return The data value.


Converts a coordinate in Java2D space to the corresponding data value assuming that the axis runs along one edge of the specified dataArea . @param java2DValue the coordinate in Java2D space . @param area the area in which the data is plotted . @param edge the location . @return The data value .
public double java2DToValue(double java2DValue, RectShape area,
            RectangleEdge edge) {
        Range range = getRange();
        double axisMin = range.getLowerBound();
        double axisMax = range.getUpperBound();
        double min = 0.0;
        double max = 0.0;
        if (RectangleEdge.isTopOrBottom(edge)) {
            min = area.getX();
            max = area.getMaxX();
        } else if (RectangleEdge.isLeftOrRight(edge)) {
            min = area.getMaxY();
            max = area.getY();
        }
        if (isInverted()) {
            return axisMax - (java2DValue - min) / (max - min)
                    * (axisMax - axisMin);
        } else {
            return axisMin + (java2DValue - min) / (max - min)
                    * (axisMax - axisMin);
        }
    }
public double java2DToValue ( double java2DValue , RectShape area , RectangleEdge edge ) { Range range = getRange ( ) ; double axisMin = range . getLowerBound ( ) ; double axisMax = range . getUpperBound ( ) ; double min = 0.0 ; double max = 0.0 ; if ( RectangleEdge . isTopOrBottom ( edge ) ) { min = area . getX ( ) ; max = area . getMaxX ( ) ; } else if ( RectangleEdge . isLeftOrRight ( edge ) ) { min = area . getMaxY ( ) ; max = area . getY ( ) ; } if ( isInverted ( ) ) { return axisMax - ( java2DValue - min ) / ( max - min ) * ( axisMax - axisMin ) ; } else { return axisMin + ( java2DValue - min ) / ( max - min ) * ( axisMax - axisMin ) ; } }
Converts a coordinate in Java2D space to the corresponding data value,
 assuming that the axis runs along one edge of the specified dataArea.
Converts a coordinate in Java2D space to the corresponding data value assuming that the axis runs along one edge of the specified dataArea .