本文整理汇总了Java中com.badlogic.gdx.scenes.scene2d.ui.Cell.space方法的典型用法代码示例。如果您正苦于以下问题:Java Cell.space方法的具体用法?Java Cell.space怎么用?Java Cell.space使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.badlogic.gdx.scenes.scene2d.ui.Cell
的用法示例。
在下文中一共展示了Cell.space方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: process
import com.badlogic.gdx.scenes.scene2d.ui.Cell; //导入方法依赖的package包/类
@Override
public void process(final LmlParser parser, final LmlTag tag, final Actor actor, final Cell<?> cell,
final String rawAttributeData) {
final Value horizontalValue = LmlUtilities.parseHorizontalValue(parser, tag.getParent(), actor,
rawAttributeData);
final Value verticalValue = LmlUtilities.parseVerticalValue(parser, tag.getParent(), actor, rawAttributeData);
cell.space(verticalValue, horizontalValue, verticalValue, horizontalValue);
}
示例2: applySpacing
import com.badlogic.gdx.scenes.scene2d.ui.Cell; //导入方法依赖的package包/类
/** Allows to set Cell's spacing with the Padding object, which has be done externally, as it's not part of the
* standard libGDX API. Padding holds 4 floats for each direction, so it's compatible with both padding and spacing
* settings without any additional changes.
*
* @param cell will have the padding set according to the this object's data.
* @return the given cell for chaining. */
public Cell<?> applySpacing(final Cell<?> cell) {
cell.space(top, left, bottom, right);
return cell;
}
示例3: setSpacing
import com.badlogic.gdx.scenes.scene2d.ui.Cell; //导入方法依赖的package包/类
/** Allows to set Cell's spacing with the Padding object, which has be done externally, as it's not part of the
* standard libGDX API. Padding holds 4 floats for each direction, so it's compatible with both padding and spacing
* settings without any additional changes.
*
* @param spacing contains data of spacing sizes.
* @param cell will have the padding set according to the given data.
* @return the given cell for chaining. */
public static Cell<?> setSpacing(final Padding spacing, final Cell<?> cell) {
return cell.space(spacing.getTop(), spacing.getLeft(), spacing.getBottom(), spacing.getRight());
}