public class DynamicTableModel extends TableModel
TableModel.Axis, TableModel.CellSizingMethod
Constructor and Description |
---|
DynamicTableModel(int numColumns,
int numRows)
Convenience method.
|
DynamicTableModel(int numColumns,
int numRows,
TableOrder order) |
Modifier and Type | Method and Description |
---|---|
android.graphics.RectF |
getCellRect(android.graphics.RectF tableRect,
int numElements)
Calculates the dimensions of a single element of this table with
tableRect representing the overall dimensions of the table.
|
com.androidplot.ui.DynamicTableModel.TableModelIterator |
getIterator(android.graphics.RectF tableRect,
int totalElements) |
int |
getNumColumns() |
int |
getNumRows() |
void |
setNumColumns(int numColumns) |
void |
setNumRows(int numRows) |
getOrder, setOrder
public DynamicTableModel(int numColumns, int numRows)
numColumns
- numRows
- public DynamicTableModel(int numColumns, int numRows, TableOrder order)
public com.androidplot.ui.DynamicTableModel.TableModelIterator getIterator(android.graphics.RectF tableRect, int totalElements)
getIterator
in class TableModel
public android.graphics.RectF getCellRect(android.graphics.RectF tableRect, int numElements)
tableRect
- Dimensions/position of the tablepublic int getNumRows()
public void setNumRows(int numRows)
public int getNumColumns()
public void setNumColumns(int numColumns)