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

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

Introduction

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

Prototype

Integer align

To view the source code for com.badlogic.gdx.scenes.scene2d.ui Cell align.

Click Source Link

Usage

From source file:com.kotcrab.vis.ui.building.utilities.Alignment.java

License:Apache License

public void apply(final Cell<?> cell) {
    cell.align(alignment);
}

From source file:com.mangecailloux.pebble.constant.ConstantEditor.java

License:Apache License

/**
 * Align of the openButton when the CE is closed. Uses TableLayout Align constants. Top-Right corner by default.
 * @param _align can be any combination of TableLayout.TOP, TableLayout.RIGHT, TableLayout.LEFT, TableLayout.BOTTOM, TableLayout.CENTER.
 *//*from   w  w w  . jav a2 s .c om*/
public void setOpenButtonAlign(int _align) {
    if (openButtonAlign != _align) {
        openButtonAlign = _align;

        if (!open) {
            Cell<?> cell = optionsTable.getCell(openButton);
            if (cell != null)
                cell.align(openButtonAlign);
        }
    }
}