Example usage for com.badlogic.gdx.scenes.scene2d.ui Cell getTable

List of usage examples for com.badlogic.gdx.scenes.scene2d.ui Cell getTable

Introduction

In this page you can find the example usage for com.badlogic.gdx.scenes.scene2d.ui Cell getTable.

Prototype

public Table getTable() 

Source Link

Usage

From source file:com.forerunnergames.peril.client.ui.screens.game.play.modes.classic.dialogs.armymovement.AbstractArmyMovementDialog.java

License:Open Source License

private void setCountryImage(final Country country, final CountryArmyText countryArmyText,
        final Stack countryStack, final Cell<Stack> countryStackCell, final float countryArrowWidth,
        final CellPadding paddingType) {
    final Image countryImage = asImage(country);

    countryStack.clear();/*w  ww. j  a  v  a 2 s.c  om*/
    countryStack.add(countryImage);
    countryStack.add(countryArmyText.asActor());

    getContentTable().layout();

    Widgets.padCell(countryStackCell, calculateCountryImagePadding(countryImage, countryArrowWidth),
            paddingType);

    countryStackCell.getTable().invalidateHierarchy();

    getContentTable().layout();

    updateCountryArmyCircle(countryArmyText, country, countryImage);
}