Package | Description |
---|---|
fr.lri.swingstates.animations |
A package to program graphical animations.
|
fr.lri.swingstates.canvas |
A package to program new widgets starting from the SwingStates' canvas that offers advanced features for programming interaction (state machines, tags, etc.).
|
fr.lri.swingstates.canvas.animations.transitions | |
fr.lri.swingstates.events |
A package containing all the SwingStates events.
|
Modifier and Type | Class and Description |
---|---|
class |
AnimationFillPaint
An animation that changes the fill color of a
CElement to a given color smoothly by refreshing every 40 milliseconds. |
class |
AnimationOutlinePaint
An animation that changes the outline color of a
CElement to a given color smoothly by refreshing every 40 milliseconds. |
class |
AnimationRotateBy
An animation that never stops, i.e.
|
class |
AnimationRotateTo
An animation that rotates a
CElement to a given angle in one second by rotating smoothly this CElement every 40 milliseconds. |
class |
AnimationScaleBy
An animation that never stops, i.e.
|
class |
AnimationScaleTo
An animation that scales a
CElement to a given factor by scaling smoothly this CElement every 40 milliseconds. |
class |
AnimationTranslateBy
An animation that never stops, i.e.
|
class |
AnimationTranslateTo
An animation that translates a
CElement to a given location in one second by translating smoothly this CElement every 40 milliseconds. |
class |
AnimationTransparency
An animation that continuously changes the transparency (interior and/or outline) of a
CElement to a given transparency level. |
Modifier and Type | Method and Description |
---|---|
Animation |
Animation.addTag(AExtensionalTag t)
Adds a tag to this animation.
|
Animation |
Animation.addTag(java.lang.String t)
Adds a
ANamedTag tag to this animation. |
Animation |
ATag.nextAnimation() |
Animation |
Animation.removeTag(AExtensionalTag t)
Removes a tag from this animation.
|
Animation |
Animation.removeTag(java.lang.String t)
Removes a tag from this animation.
|
Animation |
Animation.resume()
Resumes this animation that has been resumed using the method
resume() . |
Animation |
AnimationTransparency.setAnimatedElement(CElement ce)
Sets the
CElement that must be animated by this animation. |
Animation |
AnimationTranslateTo.setAnimatedElement(CElement ce)
Sets the
CElement that must be animated by this animation. |
Animation |
AnimationScaleTo.setAnimatedElement(CElement ce)
Sets the
CElement that must be animated by this animation. |
Animation |
AnimationRotateTo.setAnimatedElement(CElement ce)
Sets the
CElement that must be animated by this animation. |
Animation |
Animation.setAnimatedElement(CElement ce)
Sets the
CElement that must be animated by this animation. |
Animation |
Animation.setDelay(int d)
Sets the delay between to successive values of the parameter t.
|
Animation |
Animation.setFunction(short t)
Sets the type of the pacing function, use the static constants
Animation.FUNCTION_LINEAR or Animation.FUNCTION_SIGMOID . |
Animation |
Animation.setLapDuration(long d)
Sets the duration of a "lap".
|
Animation |
Animation.setNbLaps(int laps)
Sets the number of laps of this animation.
|
Animation |
Animation.start()
Starts this animation.
|
Animation |
Animation.stop()
Stops this animation.
|
Animation |
Animation.suspend()
Suspends this animation.
|
Modifier and Type | Method and Description |
---|---|
void |
ATag.action(Animation a)
Method called by
action() . |
void |
AExtensionalTag.added(Animation a)
Method called when this tag is added to a
Animation . |
AExtensionalTag |
AExtensionalTag.addTo(Animation a)
Adds this tag to a given
Animation . |
void |
AExtensionalTag.removed(Animation a)
Method called when this tag is removed from an
Animation . |
AExtensionalTag |
AExtensionalTag.removeFrom(Animation a)
Removes this tag from a given
Animation . |
boolean |
ATag.tagsAnimation(Animation a)
Tests if the animation
a is tagged by this tag. |
Modifier and Type | Method and Description |
---|---|
CElement |
CTag.animate(Animation anim)
Calls
animate(Animation anim) for every CShape tagged by this CTag . |
CElement |
CShape.animate(Animation anim)
Associates an animation to this shape.
|
CElement |
CElement.animate(Animation anim)
Calls
animate(Animation animTagScale) for every CShape contained in this CElement . |
CElement |
Canvas.animate(Animation anim)
Calls
animate(Animation animTagScale) for every CShape
contained in this Canvas . |
Constructor and Description |
---|
AnimationResumed(Animation anim)
Builds a transition that loops on the current state triggered when an
animation that has just been resumed.
|
AnimationResumed(Animation anim,
java.lang.String outState)
Builds a transition triggered when an animation that has just been
resumed.
|
AnimationStarted(Animation anim)
Builds a transition that loops on the current state triggered when an
animation has just started.
|
AnimationStarted(Animation anim,
java.lang.String outState)
Builds a transition triggered when an animation has just started.
|
AnimationStopped(Animation anim)
Builds a transition that loops on the current state triggered when an
animation has just stopped.
|
AnimationStopped(Animation anim,
java.lang.String outState)
Builds a transition triggered when an animation has just stopped.
|
AnimationSuspended(Animation anim)
Builds a transition that loops on the current state triggered when an
animation has just been suspended.
|
AnimationSuspended(Animation anim,
java.lang.String outState)
Builds a transition triggered when an animation has just been
supended.
|
Modifier and Type | Method and Description |
---|---|
Animation |
VirtualAnimationEvent.getAnimation() |
Constructor and Description |
---|
VirtualAnimationEvent(java.lang.String nameEvent,
Animation anim)
Builds an animation event.
|