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

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

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

Animation.run介绍

[英]Immediately run this animation. If the animation is already running, it will be canceled first.

This is equivalent to run(duration, null).
[中]立即运行此动画。如果动画已在运行,将首先取消该动画。
这相当于run(duration, null)

代码示例

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

/**
 * Immediately run this animation. If the animation is already running, it
 * will be canceled first.
 * <p>
 * This is equivalent to <code>run(duration, null)</code>.
 * 
 * @param duration the duration of the animation in milliseconds
 * @see #run(int, Element)
 */
public void run(int duration) {
 run(duration, null);
}

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

/**
 * Run this animation at the given startTime. If the startTime has already
 * passed, the animation will run synchronously as if it started at the
 * specified start time. If the animation is already running, it will be
 * canceled first.
 * <p>
 * This is equivalent to <code>run(duration, startTime, null)</code>.
 * 
 * @param duration the duration of the animation in milliseconds
 * @param startTime the synchronized start time in milliseconds
 * @see #run(int, double, Element)
 */
public void run(int duration, double startTime) {
 run(duration, startTime, null);
}

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

/**
 * Immediately run this animation. If the animation is already running, it
 * will be canceled first.
 * <p>
 * If the element is not <code>null</code>, the {@link #onUpdate(double)}
 * method might be called only if the element may be visible (generally left
 * at the appreciation of the browser). Otherwise, it will be called
 * unconditionally.
 * 
 * @param duration the duration of the animation in milliseconds
 * @param element the element that visually bounds the entire animation
 */
public void run(int duration, Element element) {
 run(duration, Duration.currentTimeMillis(), element);
}

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

/**
 * Immediately run this animation. If the animation is already running, it
 * will be canceled first.
 * <p>
 * This is equivalent to <code>run(duration, null)</code>.
 * 
 * @param duration the duration of the animation in milliseconds
 * @see #run(int, Element)
 */
public void run(int duration) {
 run(duration, null);
}

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

/**
 * Immediately run this animation. If the animation is already running, it
 * will be canceled first.
 * <p>
 * This is equivalent to <code>run(duration, null)</code>.
 * 
 * @param duration the duration of the animation in milliseconds
 * @see #run(int, Element)
 */
public void run(int duration) {
 run(duration, null);
}

代码示例来源:origin: com.extjs/gxt

/**
 * Runs the effect for the given duration.
 * 
 * @param duration the effect duration in milliseconds
 * @param effect the effect run
 * @return true if the effect is run
 */
public boolean run(int duration, Effect effect) {
 if (isRunning) return false;
 this.effect = effect;
 animation.run(duration);
 return true;
}

代码示例来源:origin: stephenh/tessell

@Override
public void run(final int duration) {
 super.run(duration);
}

代码示例来源:origin: kiegroup/appformer

public void run() {
  super.run(1000);
}

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

/**
 * Run this animation at the given startTime. If the startTime has already
 * passed, the animation will run synchronously as if it started at the
 * specified start time. If the animation is already running, it will be
 * canceled first.
 * <p>
 * This is equivalent to <code>run(duration, startTime, null)</code>.
 * 
 * @param duration the duration of the animation in milliseconds
 * @param startTime the synchronized start time in milliseconds
 * @see #run(int, double, Element)
 */
public void run(int duration, double startTime) {
 run(duration, startTime, null);
}

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

/**
 * Run this animation at the given startTime. If the startTime has already
 * passed, the animation will run synchronously as if it started at the
 * specified start time. If the animation is already running, it will be
 * canceled first.
 * <p>
 * This is equivalent to <code>run(duration, startTime, null)</code>.
 * 
 * @param duration the duration of the animation in milliseconds
 * @param startTime the synchronized start time in milliseconds
 * @see #run(int, double, Element)
 */
public void run(int duration, double startTime) {
 run(duration, startTime, null);
}

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

animation.run(duration, parentElem);

代码示例来源:origin: stephenh/tessell

public void fadeOutElement() {
 if (a != null) {
  a.cancel();
 }
 a = new Animation() {
  protected void onUpdate(final double progress) {
   getElement().getStyle().setOpacity(1 - progress);
  }
 };
 a.run(200); // ANIMATION_DURATION is private
}

代码示例来源:origin: stephenh/tessell

/** Fades in the element after the glass is already showing; call when the content is ready. */
public void fadeInElement() {
 if (a != null) {
  a.cancel();
 }
 a = new Animation() {
  protected void onUpdate(final double progress) {
   getElement().getStyle().setOpacity(progress);
  }
 };
 a.run(200); // ANIMATION_DURATION is private
}

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

/**
 * Immediately run this animation. If the animation is already running, it
 * will be canceled first.
 * <p>
 * If the element is not <code>null</code>, the {@link #onUpdate(double)}
 * method might be called only if the element may be visible (generally left
 * at the appreciation of the browser). Otherwise, it will be called
 * unconditionally.
 * 
 * @param duration the duration of the animation in milliseconds
 * @param element the element that visually bounds the entire animation
 */
public void run(int duration, Element element) {
 run(duration, Duration.currentTimeMillis(), element);
}

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

/**
 * Immediately run this animation. If the animation is already running, it
 * will be canceled first.
 * <p>
 * If the element is not <code>null</code>, the {@link #onUpdate(double)}
 * method might be called only if the element may be visible (generally left
 * at the appreciation of the browser). Otherwise, it will be called
 * unconditionally.
 * 
 * @param duration the duration of the animation in milliseconds
 * @param element the element that visually bounds the entire animation
 */
public void run(int duration, Element element) {
 run(duration, Duration.currentTimeMillis(), element);
}

代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

private void doRun(Element element, int duration, double startTime) {
  element.getStyle().setVisibility(Style.Visibility.VISIBLE);
  element.addClassName(isZoomIn ? ZOOM_IN_CLASS_NAME : ZOOM_OUT_CLASS_NAME);
  super.run(duration, startTime, element);
}

代码示例来源:origin: com.vaadin.addon/vaadin-touchkit-agpl

};
};
a.run(ANIMATION_DURATION_MS);
float d = ANIMATION_DURATION_MS / 1000;
parentElement.getStyle().setProperty(

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

animation.run(duration, parentElem);

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

animation.run(duration, parentElem);

相关文章