|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectgriffon.effects.AbstractEffect
abstract class AbstractEffect extends Object
Base class for all Effects.
The following parameters are shared across all effects unless otherwise specified
| Field Summary | |
|---|---|
private Map |
params
|
| Property Summary | |
|---|---|
Closure |
afterCallback
callback to be executed after the effect ends |
Closure |
beforeCallback
callback to be executed before the effect starts |
Closure |
callback
end-of-animation callback |
Component |
component
effect component |
boolean |
waitForCompletion
wait flag |
| Constructor Summary | |
AbstractEffect(Map params = [:], Component component, Closure callback = null)
Creates a new effect. |
|
| Method Summary | |
|---|---|
protected void
|
doBeforePlay()
Last opportunity to execute custom code before the Timeline starts |
Map
|
getParams()
Returns an unmodifiable view of the effect's arguments |
protected Map
|
paramsInternal()
Mutable view of the effect's parameters. |
void
|
run()
Runs the timeline. |
protected void
|
setupTimeline(org.pushingpixels.trident.Timeline timeline)
Configures the Timeline for this effect |
String
|
toString()
|
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
private final Map params
| Property Detail |
|---|
Closure afterCallback
Closure beforeCallback
final Closure callback
final Component component
final boolean waitForCompletion
| Constructor Detail |
|---|
AbstractEffect(Map params = [:], Component component, Closure callback = null)
params - - set of optionscomponent - - the component to animatecallback - - an optional callback to be executed at the end of the animation
| Method Detail |
|---|
protected void doBeforePlay()
Map getParams()
protected Map paramsInternal()
For internal use only.
void run()
Creates and setups the timeline and callbacks, then plays the timeline.
If a callback was supplied it will be called at the end of the animation, with the component and supplied parameters as arguments.
protected void setupTimeline(org.pushingpixels.trident.Timeline timeline)
timeline - - a timeline on which properties to interpolate can be set
String toString()
Groovy Documentation