griffon.effects
[Groovy] Class Shake
java.lang.Object
griffon.effects.AbstractEffect
griffon.effects.ChainedEffect
griffon.effects.Shake
class Shake
extends ChainedEffect
Shakes a component.
Parameters:
- distance: int, in pixels. default: 20i
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
Shake
Shake(Map params = [:], Component component, Closure callback = null)
- Creates a new Shake effect.
- Parameters:
params - - set of optionscomponent - - the component to animatecallback - - an optional callback to be executed at the end of the animation
makeEffects
List makeEffects()
-
Groovy Documentation