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

public Class SizeToAction

extends TemporalAction
Class Inheritance

Moves an actor from its current size to a specific size.
Author
Nathan Sweet

Field Summary

Modifier and TypeField and Description
private float
private float
private float
private float

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
public float
public float
public void
setHeight(float height)

public void
setSize(float width, float height)

public void
setWidth(float width)

protected void
update(float percent)

Implements abstract com.badlogic.gdx.scenes.scene2d.actions.TemporalAction.update.

Called each frame.

Inherited from com.badlogic.gdx.scenes.scene2d.actions.TemporalAction:
actendfinishgetDurationgetInterpolationgetTimeisCompleteisReverseresetrestartsetDurationsetInterpolationsetReversesetTime

Field Detail

endHeightback to summary
private float endHeight
endWidthback to summary
private float endWidth
startHeightback to summary
private float startHeight
startWidthback to summary
private float startWidth

Constructor Detail

SizeToActionback to summary
public SizeToAction()

Method Detail

beginback to summary
protected void begin()

Overrides com.badlogic.gdx.scenes.scene2d.actions.TemporalAction.begin.

Doc from com.badlogic.gdx.scenes.scene2d.actions.TemporalAction.begin.

Called the first time act(float) is called. This is a good place to query the actor's starting state.

getHeightback to summary
public float getHeight()
getWidthback to summary
public float getWidth()
setHeightback to summary
public void setHeight(float height)
setSizeback to summary
public void setSize(float width, float height)
setWidthback to summary
public void setWidth(float width)
updateback to summary
protected void update(float percent)

Implements abstract com.badlogic.gdx.scenes.scene2d.actions.TemporalAction.update.

Doc from com.badlogic.gdx.scenes.scene2d.actions.TemporalAction.update.

Called each frame.