Lines Matching refs:column

26  * offsetting the values in segments of a given column.
56 * Returns the value at the specified row and column.
59 * @param column the index of the column to return.
64 * (row < 0 || row >= size()) or the column is out of range
65 * (column < 0 || column >= width()).
67 public int getValue(int row, int column) {
70 if (((row | column) < 0) || (row >= size()) || (column >= columns)) {
71 throw new IndexOutOfBoundsException(row + ", " + column);
78 int value = mValues[row * columns + column];
81 if (row >= valuegap[column]) {
82 value += valuegap[column + columns];
89 * Sets the value at the specified row and column.
92 * @param column the index of the column to set.
95 * (row &lt; 0 || row >= size()) or the column is out of range
96 * (column &lt; 0 || column >= width()).
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);
108 if (row >= valuegap[column]) {
109 value -= valuegap[column + mColumns];
112 mValues[row * mColumns + column] = value;
116 * Sets the value at the specified row and column.
120 * @param column the index of the column to set.
123 private void setValueInternal(int row, int column, int value) {
129 if (row >= valuegap[column]) {
130 value -= valuegap[column + mColumns];
133 mValues[row * mColumns + column] = value;
138 * Increments all values in the specified column whose row >= the
143 * @param column the index of the column to set.
146 * (startRow &lt; 0 || startRow > size()) or the column
147 * is out of range (column &lt; 0 || column >= width()).
149 public void adjustValuesBelow(int startRow, int column, int delta) {
150 if (((startRow | column) < 0) || (startRow > size()) ||
151 (column >= width())) {
152 throw new IndexOutOfBoundsException(startRow + ", " + column);
159 moveValueGapTo(column, startRow);
160 mValueGap[column + mColumns] += delta;
288 * Moves the gap in the values of the specified column to begin at
291 private final void moveValueGapTo(int column, int where) {
296 if (where == valuegap[column]) {
298 } else if (where > valuegap[column]) {
299 for (int i = valuegap[column]; i < where; i++) {
300 values[i * columns + column] += valuegap[column + columns];
302 } else /* where < valuegap[column] */ {
303 for (int i = where; i < valuegap[column]; i++) {
304 values[i * columns + column] -= valuegap[column + columns];
308 valuegap[column] = where;