com.badlogic.gdx.scenes.scene2d.actions
Class ScaleByAction
java.lang.Object
com.badlogic.gdx.scenes.scene2d.Action
com.badlogic.gdx.scenes.scene2d.actions.TemporalAction
com.badlogic.gdx.scenes.scene2d.actions.RelativeTemporalAction
com.badlogic.gdx.scenes.scene2d.actions.ScaleByAction
- All Implemented Interfaces:
- Pool.Poolable
public class ScaleByAction
- extends RelativeTemporalAction
Scales an actor's scale to a relative size.
- Author:
- Nathan Sweet
Fields inherited from class com.badlogic.gdx.scenes.scene2d.Action |
actor |
Methods inherited from class com.badlogic.gdx.scenes.scene2d.actions.TemporalAction |
act, end, finish, getDuration, getInterpolation, getTime, isReverse, reset, restart, setDuration, setInterpolation, setReverse, setTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ScaleByAction
public ScaleByAction()
updateRelative
protected void updateRelative(float percentDelta)
- Specified by:
updateRelative
in class RelativeTemporalAction
setAmount
public void setAmount(float x,
float y)
setAmount
public void setAmount(float scale)
getAmountX
public float getAmountX()
setAmountX
public void setAmountX(float x)
getAmountY
public float getAmountY()
setAmountY
public void setAmountY(float y)
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)