当前位置: 首页>>代码示例>>Java>>正文


Java Cell.space方法代码示例

本文整理汇总了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);
}
 
开发者ID:czyzby,项目名称:gdx-lml,代码行数:9,代码来源:CellSpaceLmlAttribute.java

示例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;
}
 
开发者ID:gdx-libs,项目名称:gdx-kiwi,代码行数:11,代码来源:Padding.java

示例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());
}
 
开发者ID:gdx-libs,项目名称:gdx-kiwi,代码行数:11,代码来源:Padding.java


注:本文中的com.badlogic.gdx.scenes.scene2d.ui.Cell.space方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。