Lines Matching defs:row

106      * Number of rows per column. This is only used if the row height is
197 int row,
204 Object value = dataModel.getElementAt(row);
205 boolean cellHasFocus = list.hasFocus() && (row == leadIndex);
206 boolean isSelected = selModel.isSelectedIndex(row);
209 cellRenderer.getListCellRendererComponent(list, value, row, isSelected, cellHasFocus);
301 int row = convertLocationToRowInColumn(paintBounds.y, colCounter);
303 int index = getModelIndex(colCounter, row);
310 while (row < rowCount && rowBounds.y < maxY &&
312 rowBounds.height = getHeight(colCounter, row);
321 row++;
538 * <td>If the visible row count is greater than zero, the preferredHeight
539 * is the maximum cell height * visibleRowCount. If the visible row
549 * <td>If the visible row count is greater than zero, the preferredHeight
554 * you have a model with 10 items and the visible row count is 8.
558 * <p>If the visible row
607 * Selected the previous row and force it to be visible.
622 * Selected the previous row and force it to be visible.
998 int row = convertModelToRow(index);
1001 if (row == -1 || column == -1) {
1018 y += cellHeight * row;
1024 y += (cellHeight * row);
1026 else if (row >= cellHeights.length) {
1030 for(int i = 0; i < row; i++) {
1042 * Returns the height of the specified row based on the current layout.
1044 * @return The specified row height or -1 if row isn't valid.
1049 protected int getRowHeight(int row)
1051 return getHeight(0, row);
1056 * Convert the JList relative coordinate to the row that contains it,
1057 * based on the current layout. If y0 doesn't fall within any row,
1060 * @return The row that contains y0, or -1.
1072 * row or -1 if row isn't valid.
1074 * @return The Y coordinate of the origin of row, or -1.
1078 protected int convertRowToY(int row)
1080 if (row >= getRowCount(0) || row < 0) {
1083 Rectangle bounds = getCellBounds(list, row, row);
1090 private int getHeight(int column, int row) {
1091 if (column < 0 || column > columnCount || row < 0) {
1097 if (row >= list.getModel().getSize()) {
1101 ((row < cellHeights.length) ? cellHeights[row] : -1);
1105 * Returns the row at location x/y.
1108 * particular location, this will return the closest row.
1118 int row = (cellHeight == 0) ? 0 :
1121 if (row < 0) {
1122 row = 0;
1124 else if (row >= size) {
1125 row = size - 1;
1128 return row;
1135 int row = 0;
1143 return row;
1146 row += 1;
1153 * Returns the closest row that starts at the specified y-location
1174 int row = convertLocationToRow(x, y, true);
1177 if (row >= 0 && column >= 0) {
1178 return getModelIndex(column, row);
1216 * If <code>column</code>x<code>row</code> is beyond the length of the
1219 private int getModelIndex(int column, int row) {
1223 column + Math.min(row, rowsPerColumn-1));
1225 return Math.min(list.getModel().getSize() - 1, row * columnCount +
1228 return row;
1259 * Returns the row that the model index <code>index</code> will be
1432 // The number of rows is either determined by the visible row
2301 int row = ui.convertModelToRow(index);
2309 if (row >= maxRowCount) {
2312 return ui.getModelIndex(column, row);
2663 int row = SwingUtilities2.loc2IndexFileList(list, e.getPoint());
2664 // if we have a valid row and this is a drag initiating event
2665 if (row != -1 && DragRecognitionSupport.mousePressed(e)) {
2672 } else if (!e.isShiftDown() && list.isSelectedIndex(row)) {
2675 list.addSelectionInterval(row, row);
2699 int row = SwingUtilities2.loc2IndexFileList(list, e.getPoint());
2700 if (row < 0) {
2723 list.addSelectionInterval(anchorIndex, row);
2725 list.removeSelectionInterval(anchorIndex, row);
2727 list.addSelectionInterval(row, row);
2731 } else if (list.isSelectedIndex(row)) {
2732 list.removeSelectionInterval(row, row);
2734 list.addSelectionInterval(row, row);
2737 list.setSelectionInterval(anchorIndex, row);
2739 list.setSelectionInterval(row, row);
2746 int row = SwingUtilities2.loc2IndexFileList(list, me.getPoint());
2747 list.addSelectionInterval(row, row);
2765 int row = locationToIndex(list, e.getPoint());
2766 if (row != -1) {
2771 Rectangle cellBounds = getCellBounds(list, row, row);
2774 list.setSelectionInterval(row, row);