|
GWT 2.6.0-rc4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.animation.client.AnimationScheduler
com.google.gwt.animation.client.AnimationSchedulerImpl
com.google.gwt.animation.client.AnimationSchedulerImplWebkit
class AnimationSchedulerImplWebkit
Implementation using webkitRequestAnimationFrame
and
webkitCancelRequestAnimationFrame
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.animation.client.AnimationScheduler |
---|
AnimationScheduler.AnimationCallback, AnimationScheduler.AnimationHandle |
Field Summary |
---|
Fields inherited from class com.google.gwt.animation.client.AnimationSchedulerImpl |
---|
INSTANCE |
Constructor Summary | |
---|---|
AnimationSchedulerImplWebkit()
|
Method Summary | |
---|---|
protected boolean |
isNativelySupported()
Check if the implementation is natively supported. |
AnimationScheduler.AnimationHandle |
requestAnimationFrame(AnimationScheduler.AnimationCallback callback,
Element element)
Schedule an animation, letting the browser decide when to trigger the next step in the animation. |
Methods inherited from class com.google.gwt.animation.client.AnimationScheduler |
---|
get, requestAnimationFrame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
AnimationSchedulerImplWebkit()
Method Detail |
---|
public AnimationScheduler.AnimationHandle requestAnimationFrame(AnimationScheduler.AnimationCallback callback, Element element)
AnimationScheduler
Using this method instead of a timeout is preferred because the browser is in the best position to decide how frequently to trigger the callback for an animation of the specified element. The browser can balance multiple animations and trigger callbacks at the optimal rate for smooth performance.
requestAnimationFrame
in class AnimationScheduler
callback
- the callback to fireelement
- the element being animated
protected boolean isNativelySupported()
AnimationSchedulerImpl
isNativelySupported
in class AnimationSchedulerImpl
|
GWT 2.6.0-rc4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |