|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgriffon.effects.EffectUtil
final class EffectUtil extends Object
| Field Summary | |
|---|---|
private static Map |
DEFAULT_PARAMS
|
protected static Closure |
NO_CALLBACK
|
| Constructor Summary | |
EffectUtil()
|
|
| Method Summary | |
|---|---|
static Map
|
mergeParams(Map params, Map overrides = [:])
|
static org.pushingpixels.trident.Timeline
|
newTimeline(Effect effect)
Creates a new Timeline using the effect's parameters |
static void
|
setupAfterCallback(Effect effect, org.pushingpixels.trident.Timeline timeline)
Sets the Effect's afterCallback to be called once the timeline ends. |
static void
|
setupCallback(org.pushingpixels.trident.Timeline timeline, Closure callback)
Sets the callback to be called once the timeline ends. |
static void
|
setupEffectCallback(Effect effect, org.pushingpixels.trident.Timeline timeline)
Sets the Effect's callback to be called once the timeline ends. |
static CountDownLatch
|
setupWaitForCompletion(Effect effect, org.pushingpixels.trident.Timeline timeline)
Creates a CountDonwLatch associated with the Timeline. |
static double
|
toDouble(def value, double defaultValue = 0.0d)
|
static float
|
toFloat(def value, float defaultValue = 0.0f)
|
static int
|
toInt(def value, int defaultValue = 0i)
|
static long
|
toLong(def value, long defaultValue = 0l)
|
static String
|
toString(Effect effect)
|
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
private static final Map DEFAULT_PARAMS
protected static final Closure NO_CALLBACK
| Constructor Detail |
|---|
EffectUtil()
| Method Detail |
|---|
static Map mergeParams(Map params, Map overrides = [:])
static org.pushingpixels.trident.Timeline newTimeline(Effect effect)
effect - - the effect that contains timeline parameters
static void setupAfterCallback(Effect effect, org.pushingpixels.trident.Timeline timeline)
effect - the source Effect.timeline - the target Timeline.
static void setupCallback(org.pushingpixels.trident.Timeline timeline, Closure callback)
timeline - the target Timeline.callback - a Closure. Will be ignored if null.
static void setupEffectCallback(Effect effect, org.pushingpixels.trident.Timeline timeline)
effect - the source Effect.timeline - the target Timeline.
static CountDownLatch setupWaitForCompletion(Effect effect, org.pushingpixels.trident.Timeline timeline)
effect - the source Effect.timeline - the target Timeline.
static double toDouble(def value, double defaultValue = 0.0d)
static float toFloat(def value, float defaultValue = 0.0f)
static int toInt(def value, int defaultValue = 0i)
static long toLong(def value, long defaultValue = 0l)
static String toString(Effect effect)
Groovy Documentation