Description

Apply animation effects to components and windows. Inspired by script.aculo.us effects.

Installation

The current version of griffon-effects-plugin is 0.4
To install just issue the following command

griffon install-plugin effects

Usage

Effects can be applied in two ways:

Every effect takes the following parameters:

All effects share the following options unless otherwise specified:

Make sure the calling thread is not the UI thread when setting wait: to true

Some effects accept an anchor option, whose value is defined by the griffon.effects.Anchor enum. Additional valid values are string literals in lower case, with underscores substituted by spaces; literals from SwingConstants are also valid. Examples

Basic Effects

Move

Animates the location property of the target component
Parameters:

Resize

Animates the size property of the target component
Parameters:

Bounds

Animates the bounds property of a the target component
Parameters:

Scale

Animates the bounds property of the target component by calculating a scale factor
Parameters:

Opacity

Animates a window's opacity property
Parameters:

Fade

Animates a window's opacity from its current value or 1.0f to 0.0f

Appear

Animates a window's opacity from its current value or 0.0f to 1.0f

Composite Effects

Shake

Moves a component from right to left a few times
Parameters:

Puff

Fades and blows up a window

DropOut

Fades and moves a window out of the screen
Paremeters:

DropIn

Appears and moves a window to the center of the screen
Paremeters:

Chained events

Effects can be chained in a sequential manner by using the chain(List<Effect>) method provided by griffon.effects.Effects utility class.

History

Version

Date

Notes

0.4

06-27-10

Release sync with Griffon 0.9.3-beta-2

0.3

05-06-11

Upgraded dependencies

0.2.1

02-22-11

Upgraded dependencies

0.2

12-21-10

Release sync with Griffon 0.9.2

0.1

07-22-10

First release