APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.scenes.scene2d.actions

public Class LayoutAction

extends Action
Class Inheritance
Imports
com.badlogic.gdx.scenes.scene2d.Action, .Actor, com.badlogic.gdx.scenes.scene2d.utils.Layout, com.badlogic.gdx.utils.GdxRuntimeException

Sets an actor's layout to enabled or disabled. The actor must implements Layout.
Author
Nathan Sweet

Field Summary

Modifier and TypeField and Description
private boolean
Inherited from com.badlogic.gdx.scenes.scene2d.Action:
actortarget

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
act(float delta)

Implements abstract com.badlogic.gdx.scenes.scene2d.Action.act.

Updates the action based on time.

public boolean
public void
setLayoutEnabled(boolean enabled)

public void
setTarget(Actor actor)

Overrides com.badlogic.gdx.scenes.scene2d.Action.setTarget.

Sets the actor this action will manipulate.

Inherited from com.badlogic.gdx.scenes.scene2d.Action:
getActorgetPoolgetTargetresetrestartsetActorsetPooltoString

Field Detail

enabledback to summary
private boolean enabled

Constructor Detail

LayoutActionback to summary
public LayoutAction()

Method Detail

actback to summary
public boolean act(float delta)

Implements abstract com.badlogic.gdx.scenes.scene2d.Action.act.

Doc from com.badlogic.gdx.scenes.scene2d.Action.act.

Updates the action based on time. Typically this is called each frame by Actor#act(float).

isEnabledback to summary
public boolean isEnabled()
setLayoutEnabledback to summary
public void setLayoutEnabled(boolean enabled)
setTargetback to summary
public void setTarget(Actor actor)

Overrides com.badlogic.gdx.scenes.scene2d.Action.setTarget.

Doc from com.badlogic.gdx.scenes.scene2d.Action.setTarget.

Sets the actor this action will manipulate. If no target actor is set, setActor(Actor) will set the target actor when the action is added to an actor.