Home
last modified time | relevance | path

Searched refs:tableRect (Results 1 – 5 of 5) sorted by relevance

/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/ui/
DDynamicTableModel.java91 public TableModelIterator getIterator(RectF tableRect, int totalElements) { in getIterator() argument
92 return new TableModelIterator(this, tableRect, totalElements); in getIterator()
102 public RectF getCellRect(RectF tableRect, int numElements) { in getCellRect() argument
104 cellRect.left = tableRect.left; in getCellRect()
105 cellRect.top = tableRect.top; in getCellRect()
107 … cellRect.bottom = tableRect.top + calculateCellSize(tableRect, TableModel.Axis.ROW, numElements); in getCellRect()
109 …cellRect.right = tableRect.left + calculateCellSize(tableRect, TableModel.Axis.COLUMN, numElements… in getCellRect()
120 private float calculateCellSize(RectF tableRect, in calculateCellSize() argument
131 axisSizePix = tableRect.height(); in calculateCellSize()
136 axisSizePix = tableRect.width(); in calculateCellSize()
[all …]
DFixedTableModel.java33 public Iterator<RectF> getIterator(RectF tableRect, int totalElements) { in getIterator() argument
34 return new FixedTableModelIterator(this, tableRect, totalElements); in getIterator()
56 private RectF tableRect; field in FixedTableModel.FixedTableModelIterator
60 protected FixedTableModelIterator(FixedTableModel model, RectF tableRect, int numElements) { in FixedTableModelIterator() argument
62 this.tableRect = tableRect; in FixedTableModelIterator()
65 tableRect.left, in FixedTableModelIterator()
66 tableRect.top, in FixedTableModelIterator()
67 tableRect.left + model.getCellWidth(), in FixedTableModelIterator()
68 tableRect.top + model.getCellHeight()); in FixedTableModelIterator()
78 return lastRect.bottom + model.getCellHeight() > tableRect.height(); in isColumnFinished()
[all …]
DTableModel.java30 public abstract Iterator<RectF> getIterator(RectF tableRect, int totalElements); in getIterator() argument
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/ui/
DDynamicTableModelTest.java49 RectF tableRect = new RectF(0, 0, 1000, 2000); in testGetCellRect() local
50 RectF cellRect = model.getCellRect(tableRect, 10); in testGetCellRect()
55 cellRect = model.getCellRect(tableRect, 10); in testGetCellRect()
60 cellRect = model.getCellRect(tableRect, 10); in testGetCellRect()
67 RectF tableRect = new RectF(0, 0, 1000, 2000); in testIterator() local
70 Iterator<RectF> it = model.getIterator(tableRect, 10); in testIterator()
81 it = model.getIterator(tableRect, 10); in testIterator()
97 RectF tableRect = new RectF(0, 0, 1000, 2000); in testRowMajorIteration() local
99 Iterator<RectF> it = model.getIterator(tableRect, createdCells); in testRowMajorIteration()
155 RectF tableRect = new RectF(0, 0, 1000, 2000); in testColumnMajorIteration() local
[all …]
DFixedTableModelTest.java47 RectF tableRect = new RectF(0, 0, 1000, 2000); in testIterator() local
49 Iterator<RectF> it = model.getIterator(tableRect, 5); in testIterator()
79 RectF tableRect = new RectF(0, 0, 1000, 2000); in testColumnMajor() local
82 Iterator<RectF> it = model.getIterator(tableRect, 5); in testColumnMajor()
121 it = model.getIterator(tableRect, 25); in testColumnMajor()
214 RectF tableRect = new RectF(0, 0, 1000, 2000); in testRowMajor() local
217 Iterator<RectF> it = model.getIterator(tableRect, 5); in testRowMajor()