本文整理汇总了Java中com.badlogic.gdx.scenes.scene2d.ui.Cell.fill方法的典型用法代码示例。如果您正苦于以下问题:Java Cell.fill方法的具体用法?Java Cell.fill怎么用?Java Cell.fill使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.badlogic.gdx.scenes.scene2d.ui.Cell
的用法示例。
在下文中一共展示了Cell.fill方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setDefaultCellPreferences
import com.badlogic.gdx.scenes.scene2d.ui.Cell; //导入方法依赖的package包/类
private void setDefaultCellPreferences() {
final Cell<?> contentCell = getCell(getContentTable());
contentCell.fill();
contentCell.expand();
final Cell<?> buttonCell = getCell(getButtonTable());
buttonCell.fillX();
buttonCell.expandX();
row();
}
示例2: normalizeSecondCell
import com.badlogic.gdx.scenes.scene2d.ui.Cell; //导入方法依赖的package包/类
/** @param mainTable main table of {@link TabbedPane}. */
protected void normalizeSecondCell(final Table mainTable) {
if (GdxArrays.sizeOf(mainTable.getCells()) < 2) {
return;
}
final Cell<?> secondCell = mainTable.getCells().get(1);
if (secondCell.getActor() instanceof Image) {
secondCell.expand(true, false);
secondCell.fill(true, false);
}
}
示例3: setDefaultCellPreferences
import com.badlogic.gdx.scenes.scene2d.ui.Cell; //导入方法依赖的package包/类
private void setDefaultCellPreferences() {
final Cell<?> contentCell = getCell(getContentTable());
contentCell.fill();
contentCell.expand();
final Cell<?> buttonCell = getCell(getButtonsTable());
buttonCell.fillX();
buttonCell.expandX();
row();
}
示例4: normalizeSecondCell
import com.badlogic.gdx.scenes.scene2d.ui.Cell; //导入方法依赖的package包/类
/** @param mainTable main table of {@link TabbedPane}. */
protected void normalizeSecondCell(final Table mainTable) {
final Cell<?> secondCell = mainTable.getCells().get(1);
if (secondCell.getActor() instanceof Image) {
secondCell.expand(true, false);
secondCell.fill(true, false);
}
}
示例5: 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) {
cell.fill(determineFillX(cell), parser.parseBoolean(rawAttributeData, actor));
}
示例6: 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) {
cell.fill(parser.parseBoolean(rawAttributeData, actor), determineFillY(cell));
}
示例7: 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 boolean fill = parser.parseBoolean(rawAttributeData, actor);
cell.fill(fill, fill);
}
示例8: applyToCell
import com.badlogic.gdx.scenes.scene2d.ui.Cell; //导入方法依赖的package包/类
@Override
protected void applyToCell(final Container<?> actor, final Cell<?> cell) {
cell.fill(actor.getFillX(), actor.getFillY());
}