Class Animation

java.lang.Object
tripleplay.anim.Animation
Direct Known Subclasses:
Animation.Action, Animation.Delay, Animation.Flip, Animation.Interped, Animation.Repeat, PlayMovie

public abstract class Animation extends Object
Represents a single component of an animation.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Executes an action and completes immediately.
    static class 
    Delays a specified number of milliseconds.
    static class 
    Processes a Flipbook.
    static interface 
    Used to cancel animations after they've been started.
    static class 
    A base class for animations that interpolate values.
    static class 
    Animates a single scalar value.
    static class 
    Repeats its underlying animation over and over again (until removed).
    static class 
    An animation that shakes a layer randomly in the x and y directions.
    static class 
    Animates a pair of scalar values (usually a position).
    static interface 
    Used by animations to update a target value.
    static interface 
    Used by animations to update a target value.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a handle on this collection of animations which can be used to cancel the animation.
    Returns a builder for constructing an animation that will be queued up for execution when the current animation completes.
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • then

      public AnimBuilder then()
      Returns a builder for constructing an animation that will be queued up for execution when the current animation completes. Note: only a single animation can be chained on this returned animation builder. You cannot queue up multiple animations to fire in parallel using the builder returned by this method. Use AnimGroup for that.
    • handle

      public Animation.Handle handle()
      Returns a handle on this collection of animations which can be used to cancel the animation. This handle references the root animation in this chain of animations, and will cancel all (as yet uncompleted) animations in the chain.
    • toString

      public String toString()
      Overrides:
      toString in class Object