本文整理汇总了Java中com.jgoodies.forms.layout.RowSpec.createGap方法的典型用法代码示例。如果您正苦于以下问题:Java RowSpec.createGap方法的具体用法?Java RowSpec.createGap怎么用?Java RowSpec.createGap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jgoodies.forms.layout.RowSpec
的用法示例。
在下文中一共展示了RowSpec.createGap方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setLineGapSize
import com.jgoodies.forms.layout.RowSpec; //导入方法依赖的package包/类
public void setLineGapSize(ConstantSize lineGapSize)
{
RowSpec rowSpec = RowSpec.createGap(lineGapSize);
this.lineGapSpec = rowSpec;
}
示例2: setParagraphGapSize
import com.jgoodies.forms.layout.RowSpec; //导入方法依赖的package包/类
public void setParagraphGapSize(ConstantSize paragraphGapSize)
{
RowSpec rowSpec = RowSpec.createGap(paragraphGapSize);
this.paragraphGapSpec = rowSpec;
}
示例3: createGapRowSpec
import com.jgoodies.forms.layout.RowSpec; //导入方法依赖的package包/类
/** @deprecated */
public static RowSpec createGapRowSpec(ConstantSize gapHeight)
{
return RowSpec.createGap(gapHeight);
}
示例4: setLineGapSize
import com.jgoodies.forms.layout.RowSpec; //导入方法依赖的package包/类
/**
* Sets the size of gaps between component lines using the given
* constant size.<p>
*
* <strong>Examples:</strong><pre>
* builder.setLineGapSize(Sizes.ZERO);
* builder.setLineGapSize(Sizes.DLUY9);
* builder.setLineGapSize(Sizes.pixel(1));
* </pre>
*
* @param lineGapSize the <code>ConstantSize</code> that describes
* the size of the gaps between component lines
*/
public void setLineGapSize(ConstantSize lineGapSize) {
RowSpec rowSpec = RowSpec.createGap(lineGapSize);
this.lineGapSpec = rowSpec;
}
示例5: setParagraphGapSize
import com.jgoodies.forms.layout.RowSpec; //导入方法依赖的package包/类
/**
* Sets the size of gaps between paragraphs using the given
* constant size.<p>
*
* <strong>Examples:</strong><pre>
* builder.setParagraphGapSize(Sizes.DLUY14);
* builder.setParagraphGapSize(Sizes.dluY(22));
* builder.setParagraphGapSize(Sizes.pixel(42));
* </pre>
*
* @param paragraphGapSize the <code>ConstantSize</code> that describes
* the size of the gaps between paragraphs
*/
public void setParagraphGapSize(ConstantSize paragraphGapSize) {
RowSpec rowSpec = RowSpec.createGap(paragraphGapSize);
this.paragraphGapSpec = rowSpec;
}
示例6: createGapRowSpec
import com.jgoodies.forms.layout.RowSpec; //导入方法依赖的package包/类
/**
* Creates and returns a {@link RowSpec} that represents a gap with the
* specified {@link ConstantSize}.
*
* @param gapHeight a <code>ConstantSize</code> that specifies the gap
* @return a <code>RowSpec</code> that describes a vertical gap
*
* @deprecated Replaced by {@link RowSpec#createGap(ConstantSize)}.
* This method will be removed from the next Forms version.
*/
public static RowSpec createGapRowSpec(ConstantSize gapHeight) {
return RowSpec.createGap(gapHeight);
}