本文整理汇总了Java中com.jgoodies.forms.layout.CellConstraints.Alignment类的典型用法代码示例。如果您正苦于以下问题:Java Alignment类的具体用法?Java Alignment怎么用?Java Alignment使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Alignment类属于com.jgoodies.forms.layout.CellConstraints包,在下文中一共展示了Alignment类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setHAlignment
import com.jgoodies.forms.layout.CellConstraints.Alignment; //导入依赖的package包/类
public final void setHAlignment(CellConstraints.Alignment alignment)
{
this.currentCellConstraints.hAlign = alignment;
}
示例2: setVAlignment
import com.jgoodies.forms.layout.CellConstraints.Alignment; //导入依赖的package包/类
public final void setVAlignment(CellConstraints.Alignment alignment)
{
this.currentCellConstraints.vAlign = alignment;
}
示例3: setAlignment
import com.jgoodies.forms.layout.CellConstraints.Alignment; //导入依赖的package包/类
public final void setAlignment(CellConstraints.Alignment hAlign, CellConstraints.Alignment vAlign)
{
setHAlignment(hAlign);
setVAlignment(vAlign);
}
示例4: xy
import com.jgoodies.forms.layout.CellConstraints.Alignment; //导入依赖的package包/类
/**
* Sets the column and row origins; sets width and height to 1;
* set horizontal and vertical alignment using the specified objects.<p>
*
* <strong>Examples:</strong><pre>
* CC.xy(1, 3, CellConstraints.LEFT, CellConstraints.BOTTOM);
* CC.xy(1, 3, CellConstraints.CENTER, CellConstraints.FILL);
* </pre>
*
* @param col the new column index
* @param row the new row index
* @param colAlign horizontal component alignment
* @param rowAlign vertical component alignment
* @return this
*/
public static CellConstraints xy(int col, int row,
Alignment colAlign, Alignment rowAlign) {
return xywh(col, row, 1, 1, colAlign, rowAlign);
}
示例5: xyw
import com.jgoodies.forms.layout.CellConstraints.Alignment; //导入依赖的package包/类
/**
* Sets the column, row, width, and height; sets the horizontal
* and vertical alignment using the specified alignment objects.
* The row span (height) is set to 1.<p>
*
* <strong>Examples:</strong><pre>
* CC.xyw(1, 3, 2, CellConstraints.LEFT, CellConstraints.BOTTOM);
* CC.xyw(1, 3, 7, CellConstraints.CENTER, CellConstraints.FILL);
* </pre>
*
* @param col the new column index
* @param row the new row index
* @param colSpan the column span or grid width
* @param colAlign horizontal component alignment
* @param rowAlign vertical component alignment
* @return this
* @throws IllegalArgumentException if an alignment orientation is invalid
*/
public static CellConstraints xyw(int col, int row, int colSpan,
Alignment colAlign, Alignment rowAlign) {
return xywh(col, row, colSpan, 1, colAlign, rowAlign);
}
示例6: xywh
import com.jgoodies.forms.layout.CellConstraints.Alignment; //导入依赖的package包/类
/**
* Sets the column, row, width, and height; sets the horizontal
* and vertical alignment using the specified alignment objects.<p>
*
* <strong>Examples:</strong><pre>
* CC.xywh(1, 3, 2, 1, CellConstraints.LEFT, CellConstraints.BOTTOM);
* CC.xywh(1, 3, 7, 3, CellConstraints.CENTER, CellConstraints.FILL);
* </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 colAlign horizontal component alignment
* @param rowAlign vertical component alignment
* @return this
* @throws IllegalArgumentException if an alignment orientation is invalid
*/
public static CellConstraints xywh(int col, int row, int colSpan, int rowSpan,
Alignment colAlign, Alignment rowAlign) {
return new CellConstraints(col, row, colSpan, rowSpan, colAlign, rowAlign);
}
示例7: rc
import com.jgoodies.forms.layout.CellConstraints.Alignment; //导入依赖的package包/类
/**
* 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
*/
public static CellConstraints rc(int row, int col,
Alignment rowAlign, Alignment colAlign) {
return rchw(row, col, 1, 1, rowAlign, colAlign);
}
示例8: rcw
import com.jgoodies.forms.layout.CellConstraints.Alignment; //导入依赖的package包/类
/**
* 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
*/
public static CellConstraints rcw(int row, int col, int colSpan,
Alignment rowAlign, Alignment colAlign) {
return rchw(row, col, 1, colSpan, rowAlign, colAlign);
}
示例9: rchw
import com.jgoodies.forms.layout.CellConstraints.Alignment; //导入依赖的package包/类
/**
* Sets the row, column, height, and width; sets the vertical and
* horizontal alignment using the specified alignment objects.<p>
*
* <strong>Examples:</strong><pre>
* CC.rchw(3, 1, 1, 2, CellConstraints.BOTTOM, CellConstraints.LEFT);
* CC.rchw(3, 1, 3, 7, CellConstraints.FILL, CellConstraints.CENTER);
* </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 rowAlign vertical component alignment
* @param colAlign horizontal component alignment
* @return this
*
* @throws IllegalArgumentException if an alignment orientation is invalid
*/
public static CellConstraints rchw(int row, int col, int rowSpan, int colSpan,
Alignment rowAlign, Alignment colAlign) {
return xywh(col, row, colSpan, rowSpan, colAlign, rowAlign);
}
示例10: xy
import com.jgoodies.forms.layout.CellConstraints.Alignment; //导入依赖的package包/类
/**
* Sets the column and row origins; sets width and height to 1;
* set horizontal and vertical alignment using the specified objects.<p>
*
* <strong>Examples:</strong><pre>
* .add(aComponent).xy(1, 3, CellConstraints.LEFT, CellConstraints.BOTTOM);
* .add(aComponent).xy(1, 3, CellConstraints.CENTER, CellConstraints.FILL);
* </pre>
*
* @param col the column index
* @param row the row index
* @param colAlign horizontal component alignment
* @param rowAlign vertical component alignment
* @return a reference to the builder
*/
public final T xy(int col, int row,
Alignment colAlign, Alignment rowAlign) {
return at(CC.xy(col, row, colAlign, rowAlign));
}
示例11: xyw
import com.jgoodies.forms.layout.CellConstraints.Alignment; //导入依赖的package包/类
/**
* Sets the column, row, width, and height; sets the horizontal
* and vertical alignment using the specified alignment objects.
* The row span (height) is set to 1.<p>
*
* <strong>Examples:</strong><pre>
* .add(aComponent).xyw(1, 3, 2, CellConstraints.LEFT, CellConstraints.BOTTOM);
* .add(aComponent).xyw(1, 3, 7, CellConstraints.CENTER, CellConstraints.FILL);
* </pre>
*
* @param col the column index
* @param row the row index
* @param colSpan the column span or grid width
* @param colAlign horizontal component alignment
* @param rowAlign vertical component alignment
* @return a reference to the builder
* @throws IllegalArgumentException if an alignment orientation is invalid
*/
public final T xyw(int col, int row, int colSpan,
Alignment colAlign, Alignment rowAlign) {
return at(CC.xyw(col, row, colSpan, colAlign, rowAlign));
}
示例12: xywh
import com.jgoodies.forms.layout.CellConstraints.Alignment; //导入依赖的package包/类
/**
* Sets the column, row, width, and height; sets the horizontal
* and vertical alignment using the specified alignment objects.<p>
*
* <strong>Examples:</strong><pre>
* .add(aComponent).xywh(1, 3, 2, 1, CellConstraints.LEFT, CellConstraints.BOTTOM);
* .add(aComponent).xywh(1, 3, 7, 3, CellConstraints.CENTER, CellConstraints.FILL);
* </pre>
*
* @param col the column index
* @param row the row index
* @param colSpan the column span or grid width
* @param rowSpan the row span or grid height
* @param colAlign horizontal component alignment
* @param rowAlign vertical component alignment
* @return a reference to the builder
* @throws IllegalArgumentException if an alignment orientation is invalid
*/
public final T xywh(int col, int row, int colSpan, int rowSpan,
Alignment colAlign, Alignment rowAlign) {
return at(CC.xywh(col, row, colSpan, rowSpan, colAlign, rowAlign));
}
示例13: rc
import com.jgoodies.forms.layout.CellConstraints.Alignment; //导入依赖的package包/类
/**
* 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>
* .add(aComponent).rc(3, 1, CellConstraints.BOTTOM, CellConstraints.LEFT);
* .add(aComponent).rc(3, 1, CellConstraints.FILL, CellConstraints.CENTER);
* </pre>
*
* @param row the row index
* @param col the column index
* @param rowAlign vertical component alignment
* @param colAlign horizontal component alignment
* @return a reference to the builder
*/
public final T rc(int row, int col,
Alignment rowAlign, Alignment colAlign) {
return at(CC.rc(row, col, rowAlign, colAlign));
}
示例14: rcw
import com.jgoodies.forms.layout.CellConstraints.Alignment; //导入依赖的package包/类
/**
* 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>
* .add(aComponent).rcw(3, 1, 2, CellConstraints.BOTTOM, CellConstraints.LEFT);
* .add(aComponent).rcw(3, 1, 7, CellConstraints.FILL, CellConstraints.CENTER);
* </pre>
*
* @param row the row index
* @param col the column index
* @param colSpan the column span or grid width
* @param rowAlign vertical component alignment
* @param colAlign horizontal component alignment
* @return a reference to the builder
*
* @throws IllegalArgumentException if an alignment orientation is invalid
*/
public final T rcw(int row, int col, int colSpan,
Alignment rowAlign, Alignment colAlign) {
return at(CC.rcw(row, col, colSpan, rowAlign, colAlign));
}
示例15: rchw
import com.jgoodies.forms.layout.CellConstraints.Alignment; //导入依赖的package包/类
/**
* Sets the row, column, height, and width; sets the vertical and
* horizontal alignment using the specified alignment objects.<p>
*
* <strong>Examples:</strong><pre>
* .add(aComponent).rchw(3, 1, 1, 2, CellConstraints.BOTTOM, CellConstraints.LEFT);
* .add(aComponent).rchw(3, 1, 3, 7, CellConstraints.FILL, CellConstraints.CENTER);
* </pre>
*
* @param row the row index
* @param col the column index
* @param rowSpan the row span or grid height
* @param colSpan the column span or grid width
* @param rowAlign vertical component alignment
* @param colAlign horizontal component alignment
* @return a reference to the builder
*
* @throws IllegalArgumentException if an alignment orientation is invalid
*/
public final T rchw(int row, int col, int rowSpan, int colSpan,
Alignment rowAlign, Alignment colAlign) {
return at(CC.rchw(col, row, rowSpan, colSpan, colAlign, rowAlign));
}