Example usage for com.badlogic.gdx.scenes.scene2d.ui CheckBox getStyle

List of usage examples for com.badlogic.gdx.scenes.scene2d.ui CheckBox getStyle

Introduction

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

Prototype

public CheckBoxStyle getStyle() 

Source Link

Document

Returns the checkbox's style.

Usage

From source file:org.pidome.client.photoframe.screens.loginloader.LoginPreloadProgressScreen.java

/**
 * Constructor./*from  w  ww .j a v  a  2s.co  m*/
 * Sets the client system link and initializes the progress display.
 * @param listener Listener to report back to.
 * @param system the PCC system backend. 
 */
public LoginPreloadProgressScreen(LoginPreloadProgressListener listener, PCCSystem system) {
    super();
    this.listener = listener;
    this.clientSystem = system;

    this.app = (RaspberryMirror) listener;

    progressPositionX = (ScreenDisplay.getStageWidth() - progressbarWidth) / 2.0f;
    progressPositionY = (ScreenDisplay.getStageHeight() - progressbarHeight) / 2.0f;

    /**
     * Workaround until fixed, overwriting values in the skin.
     */
    Label fakeLabel = new Label("", skin);
    fakeLabel.getStyle().font = defaultFont;
    TextButton fakeButton = new TextButton("Connect", skin);
    fakeButton.getStyle().font = defaultFont;
    CheckBox fakeCheck = new CheckBox(" Yes", skin);
    fakeCheck.getStyle().font = defaultFont;

    stage = new Stage();
    inputMultiplexer.addProcessor(stage);
    inputMultiplexer.addProcessor(this);
    Gdx.input.setInputProcessor(inputMultiplexer);

    font.setWrap(true);
    font.setWidth(ScreenDisplay.getStageWidth() * .7f);
    font.setAlignment(Align.center);

}