com.google.gwt.animation.client.Animation.onUpdate()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中com.google.gwt.animation.client.Animation.onUpdate()方法的一些代码示例,展示了Animation.onUpdate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Animation.onUpdate()方法的具体详情如下:
包路径:com.google.gwt.animation.client.Animation
类名称:Animation
方法名:onUpdate

Animation.onUpdate介绍

[英]Called when the animation should be updated. The value of progress is between 0.0 and 1.0 (inclusive) (unless you override the #interpolate(double) method to provide a wider range of values). There is no guarantee that #onUpdate(double) is called with 0.0 or 1.0. If you need to perform setup or tear down procedures, you can override #onStart() and #onComplete().
[中]在应更新动画时调用。进度值介于0.0和1.0(包括0.0和1.0)之间(除非覆盖#插值(双精度)方法以提供更大范围的值)。无法保证使用0.0或1.0调用#onUpdate(double)。如果需要执行安装或拆卸过程,可以重写#onStart()和#onComplete()。

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Called immediately before the animation starts.
 */
protected void onStart() {
 onUpdate(interpolate(0.0));
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Called immediately after the animation completes.
 */
protected void onComplete() {
 onUpdate(interpolate(1.0));
}

代码示例来源:origin: com.google.gwt/gwt-servlet

onUpdate(interpolate(progress));
return isRunning(curRunId); // Check if this run was canceled.

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Called immediately after the animation completes.
 */
protected void onComplete() {
 onUpdate(interpolate(1.0));
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Called immediately after the animation completes.
 */
protected void onComplete() {
 onUpdate(interpolate(1.0));
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Called immediately before the animation starts.
 */
protected void onStart() {
 onUpdate(interpolate(0.0));
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Called immediately before the animation starts.
 */
protected void onStart() {
 onUpdate(interpolate(0.0));
}

代码示例来源:origin: net.wetheinter/gwt-user

onUpdate(interpolate(progress));
return isRunning(curRunId); // Check if this run was canceled.

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

onUpdate(interpolate(progress));
return isRunning(curRunId); // Check if this run was canceled.

相关文章