libgdx API

com.badlogic.gdx.scenes.scene2d.actions
Class ScaleTo

java.lang.Object
  extended by com.badlogic.gdx.scenes.scene2d.Action
      extended by com.badlogic.gdx.scenes.scene2d.AnimationAction
          extended by com.badlogic.gdx.scenes.scene2d.actions.ScaleTo

public class ScaleTo
extends AnimationAction


Field Summary
protected  float deltaScaleX
           
protected  float deltaScaleY
           
protected  float scaleX
           
protected  float scaleY
           
protected  float startScaleX
           
protected  float startScaleY
           
 
Fields inherited from class com.badlogic.gdx.scenes.scene2d.AnimationAction
done, duration, interpolator, invDuration, taken, target
 
Fields inherited from class com.badlogic.gdx.scenes.scene2d.Action
listener
 
Constructor Summary
ScaleTo()
           
 
Method Summary
static ScaleTo $(float scaleX, float scaleY, float duration)
           
 void act(float delta)
          Apply the action.
 Action copy()
          Creates a copy of this action.
 void finish()
          Called by the owner of the action when it can release all its resources, e.g.
 void setTarget(Actor actor)
          Sets the Actor of this action.
 
Methods inherited from class com.badlogic.gdx.scenes.scene2d.AnimationAction
createInterpolatedAlpha, getTarget, isDone, reset, setInterpolator
 
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Action
callActionCompletedListener, getCompletionListener, setCompletionListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scaleX

protected float scaleX

scaleY

protected float scaleY

startScaleX

protected float startScaleX

startScaleY

protected float startScaleY

deltaScaleX

protected float deltaScaleX

deltaScaleY

protected float deltaScaleY
Constructor Detail

ScaleTo

public ScaleTo()
Method Detail

$

public static ScaleTo $(float scaleX,
                        float scaleY,
                        float duration)

setTarget

public void setTarget(Actor actor)
Description copied from class: Action
Sets the Actor of this action. Will be called when the Action is added to an Actor via Actor.action(Action) before any other call to this interface.

Specified by:
setTarget in class Action
Parameters:
actor - the actor.

act

public void act(float delta)
Description copied from class: Action
Apply the action.

Specified by:
act in class Action
Parameters:
delta - delta time in seconds

finish

public void finish()
Description copied from class: Action
Called by the owner of the action when it can release all its resources, e.g. put itself back into a pool.

Overrides:
finish in class AnimationAction

copy

public Action copy()
Description copied from class: Action
Creates a copy of this action. The action must be in a state independent of the original and one must be able to call Action.setTarget(Actor) on it without any side effects.

Specified by:
copy in class Action

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)