afreechart/src/main/java/org/afree/chart/plot/XYPlot.java
/**
     * Handles a 'click' on the plot by updating the anchor values.
     * 
     * @param x
     *            the x-coordinate, where the click occurred, in Java2D space.
     * @param y
     *            the y-coordinate, where the click occurred, in Java2D space.
     * @param info
     *            object containing information about the plot dimensions.
     */
Handles a 'click' on the plot by updating the anchor values.

@param x
the x-coordinate, where the click occurred, in Java2D space.
@param y
the y-coordinate, where the click occurred, in Java2D space.
@param info
object containing information about the plot dimensions.
Handles a ' click ' on the plot by updating the anchor values . @param x the x - coordinate where the click occurred in Java2D space . @param y the y - coordinate where the click occurred in Java2D space . @param info object containing information about the plot dimensions .
public void handleClick(int x, int y, PlotRenderingInfo info) {
        RectShape dataArea = info.getDataArea();
        if (dataArea.contains(x, y)) {
            ValueAxis xaxis = getDomainAxis();
            if (xaxis != null) {
                double hvalue = xaxis.java2DToValue(x, info.getDataArea(),
                        getDomainAxisEdge());
                setDomainCrosshairValue(hvalue);
            }
            ValueAxis yaxis = getRangeAxis();
            if (yaxis != null) {
                double vvalue = yaxis.java2DToValue(y, info.getDataArea(),
                        getRangeAxisEdge());
                setRangeCrosshairValue(vvalue);
            }
        }
    }
public void handleClick ( int x , int y , PlotRenderingInfo info ) { RectShape dataArea = info . getDataArea ( ) ; if ( dataArea . contains ( x , y ) ) { ValueAxis xaxis = getDomainAxis ( ) ; if ( xaxis != null ) { double hvalue = xaxis . java2DToValue ( x , info . getDataArea ( ) , getDomainAxisEdge ( ) ) ; setDomainCrosshairValue ( hvalue ) ; } ValueAxis yaxis = getRangeAxis ( ) ; if ( yaxis != null ) { double vvalue = yaxis . java2DToValue ( y , info . getDataArea ( ) , getRangeAxisEdge ( ) ) ; setRangeCrosshairValue ( vvalue ) ; } } }
Handles a 'click' on the plot by updating the anchor values.
Handles a ' click ' on the plot by updating the anchor values .
// set the anchor value for the horizontal axis... // set the anchor value for the vertical axis...