/** * Sets the column, row, width, and height; * decodes the horizontal and vertical alignments from the given string.<p> * * <strong>Examples:</strong><pre> * cc.xywh(1, 3, 2, 1, "left, bottom"); * cc.xywh(1, 3, 2, 1, "l, b"); * cc.xywh(1, 3, 7, 3, "center, fill"); * cc.xywh(1, 3, 7, 3, "c, f"); * </pre> * * @param col the new column index * @param row the new row index * @param colSpan the column span or grid width * @param rowSpan the row span or grid height * @param encodedAlignments describes the horizontal and vertical alignments * @return this * @throws IllegalArgumentException if an alignment orientation is invalid */ public CellConstraints xywh(int col, int row, int colSpan, int rowSpan, String encodedAlignments) { CellConstraints result = xywh(col, row, colSpan, rowSpan); result.setAlignments(encodedAlignments, true); return result; }
/** * Sets the column, row, width, and height; * decodes the horizontal and vertical alignments from the given string.<p> * * <strong>Examples:</strong><pre> * cc.xywh(1, 3, 2, 1, "left, bottom"); * cc.xywh(1, 3, 2, 1, "l, b"); * cc.xywh(1, 3, 7, 3, "center, fill"); * cc.xywh(1, 3, 7, 3, "c, f"); * </pre> * * @param col the new column index * @param row the new row index * @param colSpan the column span or grid width * @param rowSpan the row span or grid height * @param encodedAlignments describes the horizontal and vertical alignments * @return this * @throws IllegalArgumentException if an alignment orientation is invalid */ public CellConstraints xywh(int col, int row, int colSpan, int rowSpan, String encodedAlignments) { CellConstraints result = xywh(col, row, colSpan, rowSpan); result.setAlignments(encodedAlignments, true); 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; }
/** * 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; }
result.setAlignments(encodedAlignments); return result;