This article was contributed by : Jeffrey M. Barber
- an owner,
- an action,
- and a series of ZTimeSlice objects.
A ZTimeSlice object consists of:
- a starting time,
- a duration,
- and a double named weight.
The application using a ZTimeLine will need to define the meaning of weight. For instance, weight could be an angle for a rotation action, it could be a switch for on and off, or it could be an index number known by the application. The ZTimeLine data structure itself has no concept of units, so it can be implemented with ease. However, the ZTimeLine is meant for primarily editing; it would be better to have a compiled vector data-structure for actually executing it.
Using the Demo:
To create a new slice: double click in a span
To move a slice: click in the middle of the slice and drag it
To resize a slice: click on one of the handles and drag it
DownloadsDownload source - 103 Kb
© Copyright 2001 - Jeffrey M. Barber