test_class.file: androidplot-core/src/test/java/com/androidplot/ui/DynamicTableModelTest.java
test_class.identifier: DynamicTableModelTest
test_case.body: @Test
      public void testGetCellRect() throws Exception {
  
          // square table, both rows and columns defined:
          DynamicTableModel model = new DynamicTableModel(5, 5);
          RectF tableRect = new RectF(0, 0, 1000, 2000);
          RectF cellRect = model.getCellRect(tableRect, 10);
          assertEquals(200f, cellRect.width());
  
          // only rows defined:
          model = new DynamicTableModel(5, 0);
          cellRect = model.getCellRect(tableRect, 10);
          assertEquals(200f, cellRect.width());
  
          // only columns defined:
          model = new DynamicTableModel(0, 5);
          cellRect = model.getCellRect(tableRect, 10);
          assertEquals(400f, cellRect.height());
      }
test_case.class_method_signature: DynamicTableModelTest.testGetCellRect()
test_case.full_signature: @Test public void testGetCellRect()
test_case.identifier: testGetCellRect
test_case.invocations: getCellRect assertEquals width getCellRect assertEquals width getCellRect assertEquals height
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetCellRect()
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: public RectF getCellRect(RectF tableRect, int numElements) {
          RectF cellRect = new RectF();
          cellRect.left = tableRect.left;
          cellRect.top = tableRect.top;
          cellRect.bottom = tableRect.top + calculateCellSize(tableRect, TableModel.Axis.ROW, numElements);
          cellRect.right = tableRect.left + calculateCellSize(tableRect, TableModel.Axis.COLUMN, numElements);
          return cellRect;
      }
focal_method.class_method_signature: DynamicTableModel.getCellRect(RectF tableRect, int numElements)
focal_method.full_signature: public RectF getCellRect(RectF tableRect, int numElements)
focal_method.identifier: getCellRect
focal_method.invocations: calculateCellSize calculateCellSize
focal_method.modifiers: public
focal_method.parameters: (RectF tableRect, int numElements)
focal_method.return: RectF
focal_method.signature: RectF getCellRect(RectF tableRect, int numElements)