griffon.effects
[Groovy] Class Fade
java.lang.Object
griffon.effects.AbstractEffect
griffon.effects.AbstractBasicEffect
griffon.effects.Opacity
griffon.effects.Fade
class Fade
extends Opacity
Fades a window.
Animates the window's opacity from its current value (or 1.0f) to 0.0f.
Shared parameters:
- duration: long, how long should the animation take. default: 500l
- delay: long, wait time before the animation starts. default: 0l
- ease: TimelineEase. default: Linear
- wait: boolean. Force the caller thread to wait until the effects finishes. default: false
If a callback is supplied it will be called at the end of the animation,
with the component and supplied parameters as arguments.
- Authors:
- Andres Almiray
|
Constructor Summary |
Fade(Map params = [:], Window window, Closure callback = null)
Creates a new Fade effect.
|
Fade
Fade(Map params = [:], Window window, Closure callback = null)
- Creates a new Fade effect.
- Parameters:
params - - set of optionswindow - - the window to animatecallback - - an optional callback to be executed at the end of the animation
doBeforePlay
protected void doBeforePlay()
-
setupTimeline
protected void setupTimeline(org.pushingpixels.trident.Timeline timeline)
-
Groovy Documentation