Package com.badlogic.gdx.scenes.scene2d.actors

Examples of com.badlogic.gdx.scenes.scene2d.actors.Label


  static private HashMap<String, BitmapFont> fonts = new HashMap();

  public Actor wrap (Object object) {
    if (object instanceof String) {
      if (defaultFont == null) throw new IllegalStateException("No default font has been set.");
      return new Label(null, defaultFont, (String)object);
    }
    if (object == null) {
      Group group = new Group();
      group.transform = false;
      return group;
View Full Code Here


    return new Stack();
  }

  public void setProperty (TableLayout layout, Actor object, String name, List<String> values) {
    if (object instanceof Label) {
      Label label = ((Label)object);
      String value = values.get(0);
      if (name.equals("font")) {
        label.setFont(getFont(value));
        return;
      }
    }

    super.setProperty(layout, object, name, values);
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.scenes.scene2d.actors.Label

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.