本文整理匯總了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);
}