Groovy Documentation

griffon.effects
[Groovy] Class Effects

java.lang.Object
  griffon.effects.Effects

class Effects
extends Object

Effects.

The following parameters are shared across all effects unless otherwise specified

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
Effects()

 
Method Summary
static void appear(Map params = [:], Window window, Closure callback = null)

Makes a window appear.

static void appear(Window window, Closure callback)

Makes a window appear.

static void bounds(Map params = [:], Component component, Closure callback = null)

Moves and resizes a component.

static void chain(List effects, Closure callback = null)

Runs a series of effects one after another.

static void dropIn(Map params = [:], Window window, Closure callback = null)

Fades in and centers a window.

static void dropOut(Map params = [:], Window window, Closure callback = null)

Fades and moves a window.

static void fade(Map params = [:], Window window, Closure callback = null)

Fades a window.

static void fade(Window window, Closure callback)

Fades a window.

static void move(Map params = [:], Component component, Closure callback = null)

Moves a component.

static void opacity(Map params = [:], Window window, Closure callback = null)

Animates window opacity.

static void puff(Map params = [:], Window window, Closure callback = null)

Fades and blows up a window.

static void puff(Window window, Closure callback)

Fades and blows up a window.

static void resize(Map params = [:], Component component, Closure callback = null)

Resizes a component.

static void scale(Map params = [:], Component component, Closure callback = null)

Scales a component on x/y coordinates over an specific anchor.

static void shake(Map params = [:], Component component, Closure callback = null)

Shakes a component.

static void shake(Component component, Closure callback)

Shakes a component.

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

Effects

Effects()


 
Method Detail

appear

static void appear(Map params = [:], Window window, Closure callback = null)
Makes a window appear.
Animates the window's opacity from its current value (or 0.0f) to 1.0f.
Parameters:
params - - set of options
window - - the window to animate
callback - - an optional callback to be executed at the end of the animation


appear

static void appear(Window window, Closure callback)
Makes a window appear.
Animates the window's opacity from its current value (or 0.0f) to 1.0f.
Parameters:
window - - the window to animate
callback - - an optional callback to be executed at the end of the animation


bounds

static void bounds(Map params = [:], Component component, Closure callback = null)
Moves and resizes a component.
Parameters:
Parameters:
params - - set of options
component - - the component to animate
callback - - an optional callback to be executed at the end of the animation


chain

static void chain(List effects, Closure callback = null)
Runs a series of effects one after another.
Parameters:
effects - - a list of effects to be run sequentially
callback - - an optional callback to be executed at the end of the chain


dropIn

static void dropIn(Map params = [:], Window window, Closure callback = null)
Fades in and centers a window.

Parameters:
params - - set of options
window - - the window to animate
callback - - an optional callback to be executed at the end of the animation


dropOut

static void dropOut(Map params = [:], Window window, Closure callback = null)
Fades and moves a window.

Parameters:
params - - set of options
window - - the window to animate
callback - - an optional callback to be executed at the end of the animation


fade

static void fade(Map params = [:], Window window, Closure callback = null)
Fades a window.
Animates the window's opacity from its current value (or 1.0f) to 0.0f.
Parameters:
params - - set of options
window - - the window to animate
callback - - an optional callback to be executed at the end of the animation


fade

static void fade(Window window, Closure callback)
Fades a window.
Animates the window's opacity from its current value (or 1.0f) to 0.0f.
Parameters:
window - - the window to animate
callback - - an optional callback to be executed at the end of the animation


move

static void move(Map params = [:], Component component, Closure callback = null)
Moves a component.
Parameters:
Parameters:
params - - set of options
component - - the component to animate
callback - - an optional callback to be executed at the end of the animation


opacity

static void opacity(Map params = [:], Window window, Closure callback = null)
Animates window opacity.
Parameters:
Parameters:
params - - set of options
window - - the window to animate
callback - - an optional callback to be executed at the end of the animation


puff

static void puff(Map params = [:], Window window, Closure callback = null)
Fades and blows up a window.

Parameters:
params - - set of options
window - - the window to animate
callback - - an optional callback to be executed at the end of the animation


puff

static void puff(Window window, Closure callback)
Fades and blows up a window.

Parameters:
window - - the window to animate
callback - - an optional callback to be executed at the end of the animation


resize

static void resize(Map params = [:], Component component, Closure callback = null)
Resizes a component.
Parameters:
Parameters:
params - - set of options
component - - the component to animate
callback - - an optional callback to be executed at the end of the animation


scale

static void scale(Map params = [:], Component component, Closure callback = null)
Scales a component on x/y coordinates over an specific anchor.

Parameters:

  • scaleX: boolean, if the x coorinate should scale. default: true
  • scaleY: boolean, if the y coorinate should scale. default: true
  • from: float, starting value in percentage. default: 100.0f
  • to: float, ending value in percentage. default: 0.0f
  • anchor: Anchor, anchoring point. default: Anchor.CENTER
  • Parameters:
    params - - set of options
    component - - the component to animate
    callback - - an optional callback to be executed at the end of the animation


    shake

    static void shake(Map params = [:], Component component, Closure callback = null)
    Shakes a component.
    Parameters:
    Parameters:
    params - - set of options
    component - - the component to animate
    callback - - an optional callback to be executed at the end of the animation


    shake

    static void shake(Component component, Closure callback)
    Shakes a component.
    Parameters:
    component - - the component to animate
    callback - - an optional callback to be executed at the end of the animation


     

    Groovy Documentation