/** * Sets the row, column, height, and width; uses default alignments.<p> * * <strong>Examples:</strong><pre> * cc.rchw(1, 3, 2, 1); * cc.rchw(1, 3, 7, 3); * </pre> * * @param row the new row index * @param col the new column index * @param rowSpan the row span or grid height * @param colSpan the column span or grid width * @return this * * @since 1.1 */ public CellConstraints rchw(int row, int col, int rowSpan, int colSpan) { return rchw(row, col, rowSpan, colSpan, DEFAULT, DEFAULT); }
/** * Sets row and column origins; sets height and width to 1; * uses the default alignments.<p> * * <strong>Examples:</strong><pre> * cc.rc(1, 1); * cc.rc(3, 1); * </pre> * * @param row the new row index * @param col the new column index * @return this * * @since 1.1 */ public CellConstraints rc(int row, int col) { return rchw(row, col, 1, 1); }
/** * Sets row and column origins; sets height and width to 1; * uses the default alignments.<p> * * <strong>Examples:</strong><pre> * cc.rc(1, 1); * cc.rc(3, 1); * </pre> * * @param row the new row index * @param col the new column index * @return this * * @since 1.1 */ public CellConstraints rc(int row, int col) { return rchw(row, col, 1, 1); }
/** * Sets the row, column, height, and width; uses a height (row span) of 1 * and the vertical and horizontal default alignments.<p> * * <strong>Examples:</strong><pre> * cc.rcw(3, 1, 7); * cc.rcw(3, 1, 2); * </pre> * * @param row the new row index * @param col the new column index * @param colSpan the column span or grid width * @return this * * @since 1.1 */ public CellConstraints rcw(int row, int col, int colSpan) { return rchw(row, col, 1, colSpan, DEFAULT, DEFAULT); }
/** * Sets the row, column, height, and width; uses a height (row span) of 1 * and the vertical and horizontal default alignments.<p> * * <strong>Examples:</strong><pre> * cc.rcw(3, 1, 7); * cc.rcw(3, 1, 2); * </pre> * * @param row the new row index * @param col the new column index * @param colSpan the column span or grid width * @return this * * @since 1.1 */ public CellConstraints rcw(int row, int col, int colSpan) { return rchw(row, col, 1, colSpan, DEFAULT, DEFAULT); }
/** * Sets the row, column, height, and width; uses default alignments.<p> * * <strong>Examples:</strong><pre> * cc.rchw(1, 3, 2, 1); * cc.rchw(1, 3, 7, 3); * </pre> * * @param row the new row index * @param col the new column index * @param rowSpan the row span or grid height * @param colSpan the column span or grid width * @return this * * @since 1.1 */ public CellConstraints rchw(int row, int col, int rowSpan, int colSpan) { return rchw(row, col, rowSpan, colSpan, DEFAULT, DEFAULT); }
/** * Sets the row, column, height, and width; sets the vertical * and horizontal alignment using the specified alignment objects. * The row span (height) is set to 1.<p> * * <strong>Examples:</strong><pre> * cc.rcw(3, 1, 2, CellConstraints.BOTTOM, CellConstraints.LEFT); * cc.rcw(3, 1, 7, CellConstraints.FILL, CellConstraints.CENTER); * </pre> * * @param row the new row index * @param col the new column index * @param colSpan the column span or grid width * @param rowAlign vertical component alignment * @param colAlign horizontal component alignment * @return this * * @throws IllegalArgumentException if an alignment orientation is invalid * * @since 1.1 */ public CellConstraints rcw(int row, int col, int colSpan, Alignment rowAlign, Alignment colAlign) { return rchw(row, col, 1, colSpan, rowAlign, colAlign); }
/** * Sets the row and column origins; sets width and height to 1; * set horizontal and vertical alignment using the specified objects.<p> * * <strong>Examples:</strong><pre> * cc.rc(3, 1, CellConstraints.BOTTOM, CellConstraints.LEFT); * cc.rc(3, 1, CellConstraints.FILL, CellConstraints.CENTER); * </pre> * * @param row the new row index * @param col the new column index * @param rowAlign vertical component alignment * @param colAlign horizontal component alignment * @return this * * @since 1.1 */ public CellConstraints rc(int row, int col, Alignment rowAlign, Alignment colAlign) { return rchw(row, col, 1, 1, rowAlign, colAlign); }
/** * Sets the row and column origins; sets width and height to 1; * set horizontal and vertical alignment using the specified objects.<p> * * <strong>Examples:</strong><pre> * cc.rc(3, 1, CellConstraints.BOTTOM, CellConstraints.LEFT); * cc.rc(3, 1, CellConstraints.FILL, CellConstraints.CENTER); * </pre> * * @param row the new row index * @param col the new column index * @param rowAlign vertical component alignment * @param colAlign horizontal component alignment * @return this * * @since 1.1 */ public CellConstraints rc(int row, int col, Alignment rowAlign, Alignment colAlign) { return rchw(row, col, 1, 1, rowAlign, colAlign); }
/** * Sets row and column origins; sets height and width to 1; * decodes vertical and horizontal alignments from the given string.<p> * * <strong>Examples:</strong><pre> * cc.rc(3, 1, "bottom, left"); * cc.rc(3, 1, "b, l"); * cc.rc(3, 1, "fill, center"); * cc.rc(3, 1, "f, c"); * </pre> * * @param row the new row index * @param col the new column index * @param encodedAlignments describes the vertical and horizontal alignments * @return this * * @throws IllegalArgumentException if an alignment orientation is invalid * * @since 1.1 */ public CellConstraints rc(int row, int col, String encodedAlignments) { return rchw(row, col, 1, 1, encodedAlignments); }
/** * Sets row and column origins; sets height and width to 1; * decodes vertical and horizontal alignments from the given string.<p> * * <strong>Examples:</strong><pre> * cc.rc(3, 1, "bottom, left"); * cc.rc(3, 1, "b, l"); * cc.rc(3, 1, "fill, center"); * cc.rc(3, 1, "f, c"); * </pre> * * @param row the new row index * @param col the new column index * @param encodedAlignments describes the vertical and horizontal alignments * @return this * * @throws IllegalArgumentException if an alignment orientation is invalid * * @since 1.1 */ public CellConstraints rc(int row, int col, String encodedAlignments) { return rchw(row, col, 1, 1, encodedAlignments); }
/** * Sets the row, column, height, and width; * decodes the vertical and horizontal alignments from the given string. * The row span (height) is set to 1.<p> * * <strong>Examples:</strong><pre> * cc.rcw(3, 1, 7, "bottom, left"); * cc.rcw(3, 1, 7, "b, l"); * cc.rcw(3, 1, 2, "fill, center"); * cc.rcw(3, 1, 2, "f, c"); * </pre> * * @param row the new row index * @param col the new column index * @param colSpan the column span or grid width * @param encodedAlignments describes the vertical and horizontal alignments * @return this * * @throws IllegalArgumentException if an alignment orientation is invalid * * @since 1.1 */ public CellConstraints rcw(int row, int col, int colSpan, String encodedAlignments) { return rchw(row, col, 1, colSpan, encodedAlignments); }
/** * Sets the row, column, height, and width; * decodes the vertical and horizontal alignments from the given string. * The row span (height) is set to 1.<p> * * <strong>Examples:</strong><pre> * cc.rcw(3, 1, 7, "bottom, left"); * cc.rcw(3, 1, 7, "b, l"); * cc.rcw(3, 1, 2, "fill, center"); * cc.rcw(3, 1, 2, "f, c"); * </pre> * * @param row the new row index * @param col the new column index * @param colSpan the column span or grid width * @param encodedAlignments describes the vertical and horizontal alignments * @return this * * @throws IllegalArgumentException if an alignment orientation is invalid * * @since 1.1 */ public CellConstraints rcw(int row, int col, int colSpan, String encodedAlignments) { return rchw(row, col, 1, colSpan, encodedAlignments); }
/** * Sets the row, column, height, and width; sets the vertical * and horizontal alignment using the specified alignment objects. * The row span (height) is set to 1.<p> * * <strong>Examples:</strong><pre> * cc.rcw(3, 1, 2, CellConstraints.BOTTOM, CellConstraints.LEFT); * cc.rcw(3, 1, 7, CellConstraints.FILL, CellConstraints.CENTER); * </pre> * * @param row the new row index * @param col the new column index * @param colSpan the column span or grid width * @param rowAlign vertical component alignment * @param colAlign horizontal component alignment * @return this * * @throws IllegalArgumentException if an alignment orientation is invalid * * @since 1.1 */ public CellConstraints rcw(int row, int col, int colSpan, Alignment rowAlign, Alignment colAlign) { return rchw(row, col, 1, colSpan, rowAlign, colAlign); }
/** * Sets the row, column, height, and width; * decodes the vertical and horizontal alignments from the given string.<p> * * <strong>Examples:</strong><pre> * CC.rchw(3, 1, 1, 2, "bottom, left"); * CC.rchw(3, 1, 1, 2, "b, l"); * CC.rchw(3, 1, 3, 7, "fill, center"); * CC.rchw(3, 1, 3, 7, "f, c"); * </pre> * * @param row the new row index * @param col the new column index * @param rowSpan the row span or grid height * @param colSpan the column span or grid width * @param encodedAlignments describes the vertical and horizontal alignments * @return this * @throws IllegalArgumentException if an alignment orientation is invalid */ public static CellConstraints rchw(int row, int col, int rowSpan, int colSpan, String encodedAlignments) { return new CellConstraints().rchw(row, col, rowSpan, colSpan, encodedAlignments); }
/** * Sets the row, column, height, and width; * decodes the vertical and horizontal alignments from the given string.<p> * * <strong>Examples:</strong><pre> * cc.rchw(3, 1, 1, 2, "bottom, left"); * cc.rchw(3, 1, 1, 2, "b, l"); * cc.rchw(3, 1, 3, 7, "fill, center"); * cc.rchw(3, 1, 3, 7, "f, c"); * </pre> * * @param row the new row index * @param col the new column index * @param rowSpan the row span or grid height * @param colSpan the column span or grid width * @param encodedAlignments describes the vertical and horizontal alignments * @return this * @throws IllegalArgumentException if an alignment orientation is invalid * * @since 1.1 */ public CellConstraints rchw(int row, int col, int rowSpan, int colSpan, String encodedAlignments) { CellConstraints result = rchw(row, col, rowSpan, colSpan); result.setAlignments(encodedAlignments, false); return result; }
/** * Sets the row, column, height, and width; * decodes the vertical and horizontal alignments from the given string.<p> * * <strong>Examples:</strong><pre> * cc.rchw(3, 1, 1, 2, "bottom, left"); * cc.rchw(3, 1, 1, 2, "b, l"); * cc.rchw(3, 1, 3, 7, "fill, center"); * cc.rchw(3, 1, 3, 7, "f, c"); * </pre> * * @param row the new row index * @param col the new column index * @param rowSpan the row span or grid height * @param colSpan the column span or grid width * @param encodedAlignments describes the vertical and horizontal alignments * @return this * @throws IllegalArgumentException if an alignment orientation is invalid * * @since 1.1 */ public CellConstraints rchw(int row, int col, int rowSpan, int colSpan, String encodedAlignments) { CellConstraints result = rchw(row, col, rowSpan, colSpan); result.setAlignments(encodedAlignments, false); return result; }