AnimeJ: a Javascript animation library

Class AnimeJHeap

Object
   |
   +--AnimeJHeap

<private> class AnimeJHeap


Heap implementation, it is used to define a shared timer which is responsible for orchestrating the animation. This class is considered to be private to the library.
Defined in AnimeJ.js


Field Summary
<private>  Object obj
          
<private>  Object pos
          
 
Constructor Summary
AnimeJHeap()
           
 
Method Summary
 int Count()
           The number of elements contained in the heap.
 void Insert(<AnimeJTask> el)
           Insert a Task into the heap.
 <private>  Object left(idx)
          
 <private>  Object parent(idx)
          
 <private>  void percolateDown(p)
          
 <private>  void percolateUp(p)
          
 AnimeJTask Remove()
           Remove the top element from the heap and returns it.
 AnimeJTask RemoveTask(<AnimeJTask> t)
           Remove a specific task from the heap.
 <private>  Object right(idx)
          
 <private>  void swap(a, b)
          
 AnimeJTask Top()
           Read the top of the heap.
 <private>  String ToString()
           Debug function to convert the heap into a string.

Field Detail

obj

<private> Object obj

pos

<private> Object pos

Constructor Detail

AnimeJHeap

AnimeJHeap()

Method Detail

Count

int Count()

Insert

void Insert(<AnimeJTask> el)

left

 <private> Object left(idx)

parent

 <private> Object parent(idx)

percolateDown

 <private> void percolateDown(p)

percolateUp

 <private> void percolateUp(p)

Remove

AnimeJTask Remove()

RemoveTask

AnimeJTask RemoveTask(<AnimeJTask> t)

right

 <private> Object right(idx)

swap

 <private> void swap(a, b)

Top

AnimeJTask Top()

ToString

 <private> String ToString()

AnimeJ: a Javascript animation library

Documentation generated by JSDoc on Thu Apr 15 11:15:01 2010