Package com.badlogic.gdx.utils.reflect

Examples of com.badlogic.gdx.utils.reflect.Method.invoke()


    // Get current style.
    Method method = findMethod(actor.getClass(), "getStyle");
    if (method == null) return;
    Object style;
    try {
      style = method.invoke(actor);
    } catch (Exception ignored) {
      return;
    }
    // Determine new style.
    String name = find(style);
View Full Code Here


    style = get(name, style.getClass());
    // Set new style.
    method = findMethod(actor.getClass(), "setStyle");
    if (method == null) return;
    try {
      method.invoke(actor, style);
    } catch (Exception ignored) {
    }
  }

  /** Returns the {@link TextureAtlas} that resources in this skin reference, or null. */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.