/** * Immediately cancel this animation. If the animation is running or is * scheduled to run, {@link #onCancel()} will be called. */ public void cancel() { // Ignore if the animation is not currently running. if (!isRunning) { return; } // Reset the state. wasStarted = isStarted; // Used by onCancel. element = null; isRunning = false; isStarted = false; // Cancel the animation request. if (requestHandle != null) { requestHandle.cancel(); requestHandle = null; } onCancel(); }
/** * Immediately cancel this animation. If the animation is running or is * scheduled to run, {@link #onCancel()} will be called. */ public void cancel() { // Ignore if the animation is not currently running. if (!isRunning) { return; } // Reset the state. wasStarted = isStarted; // Used by onCancel. element = null; isRunning = false; isStarted = false; // Cancel the animation request. if (requestHandle != null) { requestHandle.cancel(); requestHandle = null; } onCancel(); }
private void cancelAnimationFrame() { if (aniTime != null) { aniTime.cancel(); aniTime = null; } }
public void stop() { if (this.useTransistion) { unbindTransistionEnd(); } else { if (this.aniTime != null) this.aniTime.cancel(); } this.steps = CollectionFactory.constructArray(); this.moved = false; this.animating = false; }
public void stop() { if (this.useTransistion) { unbindTransistionEnd(); } else { if (this.aniTime != null) this.aniTime.cancel(); } this.steps = CollectionFactory.constructArray(); this.moved = false; this.animating = false; }
private void cancelAnimationFrame() { if (aniTime != null) { aniTime.cancel(); aniTime = null; } }
@Override public void stop() { // Cancel the animation request. if (this.animationHandle != null) { this.animationHandle.cancel(); this.animationHandle = null; } }
/** * Immediately cancel this animation. If the animation is running or is * scheduled to run, {@link #onCancel()} will be called. */ public void cancel() { // Ignore if the animation is not currently running. if (!isRunning) { return; } // Reset the state. wasStarted = isStarted; // Used by onCancel. element = null; isRunning = false; isStarted = false; // Cancel the animation request. if (requestHandle != null) { requestHandle.cancel(); requestHandle = null; } onCancel(); }