public final class Animations extends Object implements IsAnimations
| Modifier and Type | Method and Description |
|---|---|
AnimationCollection |
create(AnimationCollectionKey collection)
Creates an animation collection instance and stores in the the animation options.
|
AnimationCollection |
get(AnimationCollectionKey collection)
Returns an animation collection instance if stored in the the animation options.
|
boolean |
has(AnimationCollectionKey collection)
Returns
true if an animation collection instance is stored in the the animation options. |
boolean |
isEnabled(AnimationCollectionKey collection)
Returns
true if the animation collection is enabled, otherwise false. |
void |
remove(AnimationCollectionKey collection)
Removes an animation collection previously added.
|
void |
set(AnimationCollectionKey collection,
AnimationCollection animationCollection)
Sets an animation collection instance to store in the animation options.
|
void |
setEnabled(AnimationCollectionKey collection,
boolean enabled)
Enables or disables an animation collection instance in the animation options.
|
public void setEnabled(AnimationCollectionKey collection, boolean enabled)
setEnabled in interface IsAnimationscollection - collection instance used to check in the animation optionsenabled - if true it enables an animation collectionpublic boolean isEnabled(AnimationCollectionKey collection)
true if the animation collection is enabled, otherwise false.isEnabled in interface IsAnimationscollection - collection instance used to check in the animation optionstrue if the animation collection is enabled, otherwise falsepublic boolean has(AnimationCollectionKey collection)
true if an animation collection instance is stored in the the animation options.has in interface IsDefaultAnimationscollection - collection instance used to check in the animation optionstrue if an animation collection instance is stored in the the animation optionspublic AnimationCollection get(AnimationCollectionKey collection)
get in interface IsDefaultAnimationsget in interface IsAnimationscollection - collection instance used to get for animation optionsnull if does not existspublic void set(AnimationCollectionKey collection, AnimationCollection animationCollection)
set in interface IsAnimationscollection - collection instance used to get for animation optionsanimationCollection - an animation collection instance to setpublic AnimationCollection create(AnimationCollectionKey collection)
create in interface IsAnimationscollection - collection key used to create the animation collectionspublic void remove(AnimationCollectionKey collection)
remove in interface IsAnimationscollection - collection instance used to remove from animation options