Constructor and Description |
---|
AExtensionalTag()
Builds a
AExtensionalTag that can tag the animations. |
Modifier and Type | Method and Description |
---|---|
void |
added(Animation a)
Method called when this tag is added to a
Animation . |
AExtensionalTag |
addTo(Animation a)
Adds this tag to a given
Animation . |
void |
removed(Animation a)
Method called when this tag is removed from an
Animation . |
AExtensionalTag |
removeFrom(Animation a)
Removes this tag from a given
Animation . |
action, action, addTag, addTag, hasNext, next, nextAnimation, removeTag, removeTag, reset, resume, setAnimatedElement, setDelay, setDurationLap, setFunction, setNbLaps, start, stop, suspend, tagsAnimation
getCollection, remove, size
public AExtensionalTag()
AExtensionalTag
that can tag the animations.Animation
public void added(Animation a)
Animation
. By default, this method does nothing.
Redefine it in a subclass to specify side effects, such as changing the delay of the attached Animation
.a
- The animationpublic void removed(Animation a)
Animation
. By default, this method does nothing.
Redefine it in a subclass to specify side effects, such as changing the delay of the attached Animation
.a
- The animation.public AExtensionalTag addTo(Animation a)
Animation
.
This method calls added(Animation)
, which can be redefined in subclasses
to specify side effects, such as changing the delay of the attached animation when the tag is added.a
- The animationadded(Animation)
public AExtensionalTag removeFrom(Animation a)
Animation
.
This method calls removed(Animation)
, which can be redefined in subclasses
to specify side effects, such as changing the delay of the attached animation when the tag is removed.a
- The animationremoved(Animation)