Lines Matching refs:row
56 * Returns the value at the specified row and column.
58 * @param row the index of the row to return.
63 * @throws IndexOutOfBoundsException if the row is out of range
64 * (row < 0 || row >= size()) or the column is out of range
67 public int getValue(int row, int column) {
70 if (((row | column) < 0) || (row >= size()) || (column >= columns)) {
71 throw new IndexOutOfBoundsException(row + ", " + column);
74 if (row >= mRowGapStart) {
75 row += mRowGapLength;
78 int value = mValues[row * columns + column];
81 if (row >= valuegap[column]) {
89 * Sets the value at the specified row and column.
91 * @param row the index of the row to set.
94 * @throws IndexOutOfBoundsException if the row is out of range
95 * (row < 0 || row >= size()) or the column is out of range
98 public void setValue(int row, int column, int value) {
99 if (((row | column) < 0) || (row >= size()) || (column >= mColumns)) {
100 throw new IndexOutOfBoundsException(row + ", " + column);
103 if (row >= mRowGapStart) {
104 row += mRowGapLength;
108 if (row >= valuegap[column]) {
112 mValues[row * mColumns + column] = value;
116 * Sets the value at the specified row and column.
119 * @param row the index of the row to set.
123 private void setValueInternal(int row, int column, int value) {
124 if (row >= mRowGapStart) {
125 row += mRowGapLength;
129 if (row >= valuegap[column]) {
133 mValues[row * mColumns + column] = value;
138 * Increments all values in the specified column whose row >= the
139 * specified row by the specified delta.
141 * @param startRow the row at which to begin incrementing.
145 * @throws IndexOutOfBoundsException if the row is out of range
164 * Inserts a new row of values at the specified row offset.
166 * @param row the row above which to insert the new row.
167 * This may be == size(), which case the new row is added
170 * a row of zeroes is added.
172 * @throws IndexOutOfBoundsException if the row is out of range
173 * (row < 0 || row > size()) or if the length of the
176 public void insertAt(int row, int[] values) {
177 if ((row < 0) || (row > size())) {
178 throw new IndexOutOfBoundsException("row " + row);
185 moveRowGapTo(row);
196 setValueInternal(row, i, 0);
200 setValueInternal(row, i, values[i]);
207 * row.
209 * @param row the index of the first row to be deleted.
213 * are out of range (row < 0 || count < 0 ||
214 * row + count > size()).
216 public void deleteAt(int row, int count) {
217 if (((row | count) < 0) || (row + count > size())) {
218 throw new IndexOutOfBoundsException(row + ", " + count);
221 moveRowGapTo(row + count);
289 * the specified row.
312 * Moves the gap in the row indices to begin at the specified row.