Java Code Examples for org.jfree.data.category.DefaultCategoryDataset#getValue()
The following examples show how to use
org.jfree.data.category.DefaultCategoryDataset#getValue() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RadarChartExpression.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 6 votes |
private double computeMaxValue( final DefaultCategoryDataset defaultDataset ) { final int rows = defaultDataset.getRowCount(); final int columns = defaultDataset.getColumnCount(); double maxdata = 0.01; for ( int r = 0; r < rows; r++ ) { for ( int cc = 0; cc < columns; cc++ ) { final Number value = defaultDataset.getValue( r, cc ); if ( value == null ) { continue; } if ( value.doubleValue() > maxdata ) { maxdata = value.doubleValue(); } } } return maxdata; }
Example 2
Source File: DefaultCategoryDatasetTests.java From astor with GNU General Public License v2.0 | 5 votes |
/** * A simple check for the getValue(int, int) method. */ public void testGetValue2() { DefaultCategoryDataset d = new DefaultCategoryDataset(); boolean pass = false; try { /* Number n =*/ d.getValue(0, 0); } catch (IndexOutOfBoundsException e) { pass = true; } assertTrue(pass); }
Example 3
Source File: DefaultCategoryDatasetTests.java From astor with GNU General Public License v2.0 | 5 votes |
/** * A simple check for the getValue(int, int) method. */ public void testGetValue2() { DefaultCategoryDataset d = new DefaultCategoryDataset(); boolean pass = false; try { /* Number n =*/ d.getValue(0, 0); } catch (IndexOutOfBoundsException e) { pass = true; } assertTrue(pass); }