test_class.file: androidplot-core/src/test/java/com/androidplot/ui/DynamicTableModelTest.java
test_class.identifier: DynamicTableModelTest
test_case.body: @Test public void testIterator() throws Exception {
          TableModel model = new DynamicTableModel(2, 2);
  
          RectF tableRect = new RectF(0, 0, 1000, 2000);
  
          // should stop at 4 iterations since the table can only hold that many:
          Iterator<RectF> it = model.getIterator(tableRect, 10);
          int iterations = 0;
          while(it.hasNext()) {
              it.next();
              iterations++;
          }
          assertEquals(4, iterations);
  
          // now set a dynamic number of columns.  iterations should equal however
          // many elements we throw at it:
          model = new DynamicTableModel(2, 0);
          it = model.getIterator(tableRect, 10);
          iterations = 0;
          while(it.hasNext()) {
              it.next();
              iterations++;
          }
          assertEquals(10, iterations);
  
  
      }
test_case.class_method_signature: DynamicTableModelTest.testIterator()
test_case.full_signature: @Test public void testIterator()
test_case.identifier: testIterator
test_case.invocations: getIterator hasNext next assertEquals getIterator hasNext next assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIterator()
focal_class.declarator: numRows
focal_class.modifier: private
focal_class.original_string: private int numRows;
focal_class.type: int
focal_class.var_name: numRows
focal_class.declarator: numColumns
focal_class.modifier: private
focal_class.original_string: private int numColumns;
focal_class.type: int
focal_class.var_name: numColumns
focal_class.file: androidplot-core/src/main/java/com/androidplot/ui/DynamicTableModel.java
focal_class.identifier: DynamicTableModel
focal_class.class_method_signature: DynamicTableModel.DynamicTableModel(int numColumns, int numRows)
focal_class.full_signature: public  DynamicTableModel(int numColumns, int numRows)
focal_class.identifier: DynamicTableModel
focal_class.modifiers: public
focal_class.parameters: (int numColumns, int numRows)
focal_class.signature:  DynamicTableModel(int numColumns, int numRows)
focal_class.class_method_signature: DynamicTableModel.DynamicTableModel(int numColumns, int numRows, TableOrder order)
focal_class.full_signature: public  DynamicTableModel(int numColumns, int numRows, TableOrder order)
focal_class.identifier: DynamicTableModel
focal_class.modifiers: public
focal_class.parameters: (int numColumns, int numRows, TableOrder order)
focal_class.signature:  DynamicTableModel(int numColumns, int numRows, TableOrder order)
focal_class.class_method_signature: DynamicTableModel.getIterator(RectF tableRect, int totalElements)
focal_class.full_signature: @Override public TableModelIterator getIterator(RectF tableRect, int totalElements)
focal_class.identifier: getIterator
focal_class.modifiers: @Override public
focal_class.parameters: (RectF tableRect, int totalElements)
focal_class.return: TableModelIterator
focal_class.signature: TableModelIterator getIterator(RectF tableRect, int totalElements)
focal_class.class_method_signature: DynamicTableModel.getCellRect(RectF tableRect, int numElements)
focal_class.full_signature: public RectF getCellRect(RectF tableRect, int numElements)
focal_class.identifier: getCellRect
focal_class.modifiers: public
focal_class.parameters: (RectF tableRect, int numElements)
focal_class.return: RectF
focal_class.signature: RectF getCellRect(RectF tableRect, int numElements)
focal_class.class_method_signature: DynamicTableModel.calculateCellSize(RectF tableRect,
                                      Axis axis,
                                      int numElementsInTable)
focal_class.full_signature: private float calculateCellSize(RectF tableRect,
                                      Axis axis,
                                      int numElementsInTable)
focal_class.identifier: calculateCellSize
focal_class.modifiers: private
focal_class.parameters: (RectF tableRect,
                                      Axis axis,
                                      int numElementsInTable)
focal_class.return: float
focal_class.signature: float calculateCellSize(RectF tableRect,
                                      Axis axis,
                                      int numElementsInTable)
focal_class.class_method_signature: DynamicTableModel.getNumRows()
focal_class.full_signature: public int getNumRows()
focal_class.identifier: getNumRows
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getNumRows()
focal_class.class_method_signature: DynamicTableModel.setNumRows(int numRows)
focal_class.full_signature: public void setNumRows(int numRows)
focal_class.identifier: setNumRows
focal_class.modifiers: public
focal_class.parameters: (int numRows)
focal_class.return: void
focal_class.signature: void setNumRows(int numRows)
focal_class.class_method_signature: DynamicTableModel.getNumColumns()
focal_class.full_signature: public int getNumColumns()
focal_class.identifier: getNumColumns
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getNumColumns()
focal_class.class_method_signature: DynamicTableModel.setNumColumns(int numColumns)
focal_class.full_signature: public void setNumColumns(int numColumns)
focal_class.identifier: setNumColumns
focal_class.modifiers: public
focal_class.parameters: (int numColumns)
focal_class.return: void
focal_class.signature: void setNumColumns(int numColumns)
focal_class.superclass: extends TableModel
focal_method.body: @Override
      public TableModelIterator getIterator(RectF tableRect, int totalElements) {
          return new TableModelIterator(this, tableRect, totalElements);
      }
focal_method.class_method_signature: DynamicTableModel.getIterator(RectF tableRect, int totalElements)
focal_method.full_signature: @Override public TableModelIterator getIterator(RectF tableRect, int totalElements)
focal_method.identifier: getIterator
focal_method.modifiers: @Override public
focal_method.parameters: (RectF tableRect, int totalElements)
focal_method.return: TableModelIterator
focal_method.signature: TableModelIterator getIterator(RectF tableRect, int totalElements)