test_class.file: androidplot-core/src/test/java/com/androidplot/ui/DynamicTableModelTest.java
test_class.identifier: DynamicTableModelTest
test_case.body: @Test
      public void testSingleRowIteration() throws Exception {
          // square table, both rows and columns defined:
          TableModel model = new DynamicTableModel(0, 1);
          RectF tableRect = new RectF(0, 0, 1000, 1000);
          int createdCells = 4;
          Iterator<RectF> it = model.getIterator(tableRect, createdCells);
  
  
  
          // 2x2 fixed:
          // cell 0 (top-left
          RectF cellRect = it.next();
          assertEquals(250f, cellRect.width());
          assertEquals(1000f, cellRect.height());
          assertEquals(0f, cellRect.left);
          assertEquals(0f, cellRect.top);
          assertEquals(250f, cellRect.right);
          assertEquals(1000f, cellRect.bottom);
  
          // cell 1
          cellRect = it.next();
          assertEquals(250f, cellRect.width());
          assertEquals(1000f, cellRect.height());
          assertEquals(250f, cellRect.left);
          assertEquals(0f, cellRect.top);
          assertEquals(500f, cellRect.right);
          assertEquals(1000f, cellRect.bottom);
  
          // cell 2
          cellRect = it.next();
          assertEquals(250f, cellRect.width());
          assertEquals(1000f, cellRect.height());
          assertEquals(500f, cellRect.left);
          assertEquals(0f, cellRect.top);
          assertEquals(750f, cellRect.right);
          assertEquals(1000f, cellRect.bottom);
  
          // cell 3
          cellRect = it.next();
          assertEquals(250f, cellRect.width());
          assertEquals(1000f, cellRect.height());
          assertEquals(750f, cellRect.left);
          assertEquals(0f, cellRect.top);
          assertEquals(1000f, cellRect.right);
          assertEquals(1000f, cellRect.bottom);
      }
test_case.class_method_signature: DynamicTableModelTest.testSingleRowIteration()
test_case.full_signature: @Test public void testSingleRowIteration()
test_case.identifier: testSingleRowIteration
test_case.invocations: getIterator next assertEquals width assertEquals height assertEquals assertEquals assertEquals assertEquals next assertEquals width assertEquals height assertEquals assertEquals assertEquals assertEquals next assertEquals width assertEquals height assertEquals assertEquals assertEquals assertEquals next assertEquals width assertEquals height assertEquals assertEquals assertEquals assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSingleRowIteration()
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)