Class LayoutAction

java.lang.Object
com.prineside.tdi2.scene2d.Action
com.prineside.tdi2.scene2d.actions.LayoutAction
All Implemented Interfaces:
Pool.Poolable

public class LayoutAction extends Action
Sets an actor's layout to enabled or disabled. The actor must implements Layout.
Author:
Nathan Sweet
  • Constructor Details

    • LayoutAction

      public LayoutAction()
  • Method Details

    • setTarget

      public void setTarget(Actor actor)
      Description copied from class: Action
      Sets the actor this action will manipulate. If no target actor is set, Action.setActor(Actor) will set the target actor when the action is added to an actor.
      Overrides:
      setTarget in class Action
    • act

      public boolean act(float delta)
      Description copied from class: Action
      Updates the action based on time. Typically this is called each frame by Actor.act(float).
      Specified by:
      act in class Action
      Parameters:
      delta - Time in seconds since the last frame.
      Returns:
      true if the action is done. This method may continue to be called after the action is done.
    • isEnabled

      public boolean isEnabled()
    • setLayoutEnabled

      public void setLayoutEnabled(boolean enabled)