|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Class Summary | |
|---|---|
| ArrayDisplayOptions | This is a workaround for the DisplayOptions associated with an array. |
| CodeGroupDisplayOptions | This is a workaround for the DisplayOptions associated with a code group. |
| Coordinates | A concrete type of a Node. |
| DisplayOptions | Abstract class for handling Hidden and
Timing offset in the definition for a
Primitive. |
| Hidden | A class to flag a Primitive as hidden. |
| MsTiming | A concrete kind of a Timing. |
| Node | This is an abstract representation of a coordinate within the animation screen. |
| Offset | This is a concrete kind of a Node. |
| OffsetFromLastPosition | This is a concrete kind of a Node. |
| TicksTiming | TicksTiming is a certain kind of a Timing with a numeric
value measured in ticks. |
| Timing | An abstract representation of a Timing. |
The classes in the animalscriptapi.util package are utility classes that help in creating animation content. They address three different aspects: definitions of nodes, display options, and timing.
Many operations in AnimalScript and thus also in the AnimalScript API expect the specification of (at least) one node. For example, each graphical object will have at least one node to specify its basic location, or to specify the first of multiple nodes that define the shape (e.g., a triangle has three nodes).
The AnimalScript API allows the following ways to define a node, based on the (empty) abstract class animalscriptapi.util.Node:
Display options toggle the display of a given graphical object. They are not concerned with attributes such as color or depth of the object, but rather concerned with whether and how a given object will appear.
The base class for display options is the abstract class animalscriptapi.util.DisplayOptions. Its (empty) subclass animalscriptapi.util.Hidden should be used when a given primitive is supposed to be invisible (hidden from the viewer).
Code groups also have a special display options class, called animalscriptapi.util.CodeGroupDisplayOptions. In this class, the user can specify both the offset (how long after the start of a given step will it take before the code group starts to be displayed?) and the duration (how much time will the code group take from the offset until all elements are shown?).
Arrays also have thei own display options class: animalscriptapi.util.ArrayDisplayOptions. This class uses the offset and duration described above for code groups. Additionally, they have a boolean option isCascaded. If this option is set to true, the array will be shown element by element, instead of all elements at the same time.
Timing is used in the AnimalScript API to specify when effects start and how long they take. They are based on the class animalscriptapi.util.Timing, another subclass of animalscriptapi.util.DisplayOptions described above. Currently, the AnimalScript API supports the following timing-related classes:
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||