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

public Class ScaleToAction

extends TemporalAction
Class Inheritance

Sets the actor's scale from its current value to a specific value.
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
getX()

public float
getY()

public void
setScale(float x, float y)

public void
setScale(float scale)

public void
setX(float x)

public void
setY(float y)

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

endXback to summary
private float endX
endYback to summary
private float endY
startXback to summary
private float startX
startYback to summary
private float startY

Constructor Detail

ScaleToActionback to summary
public ScaleToAction()

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.

getXback to summary
public float getX()
getYback to summary
public float getY()
setScaleback to summary
public void setScale(float x, float y)
setScaleback to summary
public void setScale(float scale)
setXback to summary
public void setX(float x)
setYback to summary
public void setY(float y)
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.