Squeak Class Documentation category index | class index  
 
AbstractAnimation
  category: Balloon3D-Wonderland Time
  superclass: Object
  subclasses: CompositeAnimation Animation

This class implements the basic functionality of Animations for Wonderlands. All animations pass through 4 specific stages:

Waiting - this is the state animations are in when they are just started, before they run their prologue (perform any tasks they need to do before the animation actually starts)

Running - this is the state animations are in when they are actually running

Stopped - this is the state animations are in after they stop running but before they execute their prologue

Finished - this is the state animations are in after they finish their epilogue (perform any tasks they need to do after the animation completes).

instance methods
  accessing
  getAnimatedObject
getLoopCount
getState
isDone
isLooping
setLoopCount:
setUndoable:

  management
  copy
epilogue:
getDuration
loop
loop:
looped
looped:
pause
prologue:
resume
start
stop
stopLooping
update:

  private
  scaleDuration:
setDirection:

  reversing
  reverseDirection

class methods
  class initialization
  initialize

instance methods
  accessing top  
 

getAnimatedObject

Return the object that this animation affects


 

getLoopCount

Returns the animation's current loop count


 

getState

Returns the current state of the animation.


 

isDone

Returns true if the animation is running


 

isLooping

Returns true if the animation is looping


 

setLoopCount:

Sets the animation's current loop count


 

setUndoable:

Sets the animation's undoable property


  management top  
 

copy

Answer another instance just like the receiver. Subclasses typically
override this method; they typically do not override shallowCopy.


 

epilogue:

This method does any work that needs to be done after an interation of the animation finishes.


 

getDuration

This method returns the duration of the animation.


 

loop

This method causes an animation to loop forever.


 

loop:

This method causes an animation to loop for the specified number of times.


 

looped

This method creates a copy of an animation and loops it forever.


 

looped:

This method creates a copy of an animation and loops it for the specified number of times.


 

pause

This method pauses an active Animation.


 

prologue:

This method does any work that needs to be done before the animation starts, including possibly adding the current state to the undo stack.


 

resume

This method resumes a paused animation


 

start

This method starts an existing animation


 

stop

This method changes the state of an animation to stopped. If it is currently active, the Scheduler will remove it from the list of active animations.


 

stopLooping

This method causes the animation to stop looping; the current interation of the animation completes before the animation stops.


 

update:

Updates the animation using the current Wonderland time


  private top  
 

scaleDuration:

Scales the animation's duration by the specified amount


 

setDirection:

Sets the animation's direction variable


  reversing top  
 

reverseDirection

Changes the direction an animation runs in (forward or in reverse)


class methods
  class initialization top  
 

initialize

Initialize the class variables