public class Fx extends Object implements AfterAnimateEvent.HasAfterAnimateHandlers, BeforeAnimateEvent.HasBeforeAnimateHandlers, CancelAnimationEvent.HasCancelAnimationHandlers
MultiEffect.| Modifier and Type | Method and Description |
|---|---|
HandlerRegistration |
addAfterAnimateHandler(AfterAnimateEvent.AfterAnimateHandler handler)
Adds a
AfterAnimateEvent.AfterAnimateHandler handler for AfterAnimateEvent
events. |
HandlerRegistration |
addBeforeAnimateHandler(BeforeAnimateEvent.BeforeAnimateHandler handler)
Adds a
BeforeAnimateEvent.BeforeAnimateHandler handler for BeforeAnimateEvent
events. |
HandlerRegistration |
addCancelAnimationHandler(CancelAnimationEvent.CancelAnimationHandler handler)
Adds a
CancelAnimationEvent.CancelAnimationHandler handler for
CancelAnimationEvent events. |
void |
cancel()
Cancels the effect.
|
Effect |
getEffect()
Returns the effect.
|
boolean |
run(Effect effect)
Runs the effect for the given duration.
|
boolean |
run(int duration,
Effect effect)
Runs the effect for the given duration.
|
public HandlerRegistration addAfterAnimateHandler(AfterAnimateEvent.AfterAnimateHandler handler)
AfterAnimateEvent.HasAfterAnimateHandlersAfterAnimateEvent.AfterAnimateHandler handler for AfterAnimateEvent
events.addAfterAnimateHandler in interface AfterAnimateEvent.HasAfterAnimateHandlershandler - the handlerpublic HandlerRegistration addBeforeAnimateHandler(BeforeAnimateEvent.BeforeAnimateHandler handler)
BeforeAnimateEvent.HasBeforeAnimateHandlersBeforeAnimateEvent.BeforeAnimateHandler handler for BeforeAnimateEvent
events.addBeforeAnimateHandler in interface BeforeAnimateEvent.HasBeforeAnimateHandlershandler - the handlerpublic HandlerRegistration addCancelAnimationHandler(CancelAnimationEvent.CancelAnimationHandler handler)
CancelAnimationEvent.HasCancelAnimationHandlersCancelAnimationEvent.CancelAnimationHandler handler for
CancelAnimationEvent events.addCancelAnimationHandler in interface CancelAnimationEvent.HasCancelAnimationHandlershandler - the handlerpublic void cancel()
public Effect getEffect()
public boolean run(Effect effect)
effect - the effect runpublic boolean run(int duration,
Effect effect)
duration - the effect duration in millisecondseffect - the effect runCopyright © 2012. All Rights Reserved.