TablePane.RowSequence rows = tablePane.getRows(); int rowCount = tablePane.getRows().getLength(); int columnCount = tablePane.getColumns().getLength(); TablePane.Row row = rows.get(i); int rowHeight = row.getHeight(); TablePane.Row row = rows.get(i); for (int i = 0; i < rowCount; i++) { if (isRowVisible(i)) { TablePane.Row row = rows.get(i); if (!row.isRelative()) { if (rowHeightsLocal[i] > 0) {
TablePane.RowSequence rows = tablePane.getRows(); int rowCount = tablePane.getRows().getLength(); int columnCount = tablePane.getColumns().getLength(); TablePane.Row row = rows.get(i); int rowHeight = row.getHeight(); TablePane.Row row = rows.get(i); for (int i = 0; i < rowCount; i++) { if (isRowVisible(i)) { TablePane.Row row = rows.get(i); if (!row.isRelative()) { if (rowHeights[i] > 0) {
TablePane.Row row = tablePane.getRows().get(rowIndex);
TablePane.Row row = tablePane.getRows().get(rowIndex);
/** * Gets the preferred width of a table pane column, which is defined as the * maximum preferred width of the column's visible components. * <p> * Because their preferred width relates to the preferred widths of other * columns, components that span multiple columns will not be considered in * this calculation (even if they live in the column directly). It is up to * the caller to factor such components into the column widths calculation. * * @param columnIndex * The index of the column whose preferred width we're calculating */ private int getPreferredColumnWidth(int columnIndex) { TablePane tablePane = (TablePane)getComponent(); TablePane.RowSequence rows = tablePane.getRows(); int preferredWidth = 0; for (int i = 0, n = rows.getLength(); i < n; i++) { TablePane.Row row = rows.get(i); if (row.getLength() > columnIndex) { Component component = row.get(columnIndex); if (component != null && component.isVisible() && TablePane.getColumnSpan(component) == 1) { preferredWidth = Math.max(preferredWidth, component.getPreferredWidth(-1)); } } } return preferredWidth; }
/** * Gets the preferred width of a table pane column, which is defined as the * maximum preferred width of the column's visible components. * <p> * Because their preferred width relates to the preferred widths of other * columns, components that span multiple columns will not be considered in * this calculation (even if they live in the column directly). It is up to * the caller to factor such components into the column widths calculation. * * @param columnIndex * The index of the column whose preferred width we're calculating */ private int getPreferredColumnWidth(int columnIndex) { TablePane tablePane = (TablePane)getComponent(); TablePane.RowSequence rows = tablePane.getRows(); int preferredWidth = 0; for (int i = 0, n = rows.getLength(); i < n; i++) { TablePane.Row row = rows.get(i); if (row.getLength() > columnIndex) { Component component = row.get(columnIndex); if (component != null && component.isVisible() && TablePane.getColumnSpan(component) == 1) { preferredWidth = Math.max(preferredWidth, component.getPreferredWidth(-1)); } } } return preferredWidth; }