Package arc.scene.actions
Class ScaleByAction
java.lang.Object
arc.scene.Action
arc.scene.actions.TemporalAction
arc.scene.actions.RelativeTemporalAction
arc.scene.actions.ScaleByAction
- All Implemented Interfaces:
Pool.Poolable
Scales an actor's scale to a relative size.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
void
setAmount
(float scale) void
setAmount
(float x, float y) void
setAmountX
(float x) void
setAmountY
(float y) protected void
updateRelative
(float percentDelta) Methods inherited from class arc.scene.actions.RelativeTemporalAction
begin, update
Methods inherited from class arc.scene.actions.TemporalAction
act, end, finish, getDuration, getInterpolation, getTime, isReverse, reset, restart, setDuration, setInterpolation, setReverse, setTime
-
Constructor Details
-
ScaleByAction
public ScaleByAction() -
ScaleByAction
public ScaleByAction(float amount)
-
-
Method Details
-
updateRelative
protected void updateRelative(float percentDelta) - Specified by:
updateRelative
in classRelativeTemporalAction
-
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)
-