/** * Returns the range (<SPAN CLASS="MATH"><I>y</I></SPAN>-coordinates) min and max values. * * @return range min and max values. * */ public double[] getRangeBounds() { double max=0, min=0; DefaultBoxAndWhiskerCategoryDataset tempSeriesCollection = (DefaultBoxAndWhiskerCategoryDataset)seriesCollection; if(tempSeriesCollection.getColumnCount() != 0 && tempSeriesCollection.getRowCount() != 0) { max = tempSeriesCollection.getItem(0, 0).getMaxOutlier().doubleValue() ; min = tempSeriesCollection.getItem(0, 0).getMinOutlier().doubleValue() ; } for(int i = 0; i < tempSeriesCollection.getRowCount(); i++) { for( int j = 0; j < tempSeriesCollection.getColumnCount(); j++) { max = Math.max(max, tempSeriesCollection.getItem(i, j).getMaxOutlier().doubleValue() ); min = Math.min(min, tempSeriesCollection.getItem(i, j).getMinOutlier().doubleValue() ); } } double[] retour = {min, max}; return retour; }
for (int r = 0; r < rowCount; r++) { for (int c = 0; c < columnCount; c++) { BoxAndWhiskerItem item = getItem(r, c); if (item != null) { Number min = item.getMinOutlier();
for (int r = 0; r < rowCount; r++) { for (int c = 0; c < columnCount; c++) { BoxAndWhiskerItem item = getItem(r, c); if (item != null) { Number min = item.getMinOutlier();