griffon.effects
[Groovy] Class Scale
java.lang.Object
griffon.effects.AbstractEffect
griffon.effects.AbstractBasicEffect
griffon.effects.Scale
class Scale
extends AbstractBasicEffect
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
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
|
Method Summary |
protected void
|
setupTimeline(org.pushingpixels.trident.Timeline timeline)
|
DEFAULT_PARAMS
private static final Map DEFAULT_PARAMS
-
Scale
Scale(Map params = [:], Component component, Closure callback = null)
- Creates a new Scale effect.
- Parameters:
params - - set of optionscomponent - - the component to animatecallback - - an optional callback to be executed at the end of the animation
setupTimeline
protected void setupTimeline(org.pushingpixels.trident.Timeline timeline)
-
Groovy Documentation