afreechart/src/main/java/org/afree/chart/plot/CategoryPlot.java
/**
     * A utility method that returns a list of datasets that are mapped to a
     * given range axis.
     * 
     * @param index
     *            the axis index.
     * 
     * @return A list of datasets.
     */
A utility method that returns a list of datasets that are mapped to a
given range axis.

@param index
the axis index.

@return A list of datasets.
A utility method that returns a list of datasets that are mapped to a given range axis . @param index the axis index . @return A list of datasets .
private List datasetsMappedToRangeAxis(int index) {
        Integer key = new Integer(index);
        List result = new ArrayList();
        for (int i = 0; i < this.datasets.size(); i++) {
            List mappedAxes = (List) this.datasetToRangeAxesMap
                    .get(new Integer(i));
            if (mappedAxes == null) {
                if (key.equals(ZERO)) {
                    result.add(this.datasets.get(i));
                }
            } else {
                if (mappedAxes.contains(key)) {
                    result.add(this.datasets.get(i));
                }
            }
        }
        return result;
    }
private List datasetsMappedToRangeAxis ( int index ) { Integer key = new Integer ( index ) ; List result = new ArrayList ( ) ; for ( int i = 0 ; i < this . datasets . size ( ) ; i ++ ) { List mappedAxes = ( List ) this . datasetToRangeAxesMap . get ( new Integer ( i ) ) ; if ( mappedAxes == null ) { if ( key . equals ( ZERO ) ) { result . add ( this . datasets . get ( i ) ) ; } } else { if ( mappedAxes . contains ( key ) ) { result . add ( this . datasets . get ( i ) ) ; } } } return result ; }
A utility method that returns a list of datasets that are mapped to a
 given range axis.
A utility method that returns a list of datasets that are mapped to a given range axis .