@Override public void play() { // add last implicit rendezvous this.rendezvous(); super.play(); }
public final <T> void addPropertyToInterpolate(String propName, KeyFrames<T> keyFrames) { this.addPropertyToInterpolate(Timeline.<T> property(propName) .goingThrough(keyFrames)); }
@Override public void playLoop() { // add last implicit rendezvous this.rendezvous(); super.playLoop(); } }
public final <T> void addPropertyToInterpolate(String propName, T from, T to) { this.addPropertyToInterpolate(Timeline.<T> property(propName) .from(from).to(to)); }
@Override public final void run() { TridentConfig.PulseSource pulseSource = TridentConfig.getInstance() .getPulseSource(); lastIterationTimeStamp = System.currentTimeMillis(); while (true) { pulseSource.waitUntilNextPulse(); updateTimelines(); // engine.currLoopId++; } }
public float getFocusStrength(boolean hasFocus) { if (this.focusTimeline == null) return 0.0f; TimelineState focusTimelineState = this.focusTimeline.getState(); if ((focusTimelineState == TimelineState.READY) || (focusTimelineState == TimelineState.PLAYING_FORWARD) || (focusTimelineState == TimelineState.PLAYING_REVERSE)) { return this.focusTimeline.getTimelinePosition(); } return hasFocus ? 1.0f : 0.0f; }
@Override public void onTimelinePulse(float durationFraction, float timelinePosition) { for (AbstractFieldInfo fInfo : propertiesToInterpolate) { // check whether the object is in the ready state if ((uiToolkitHandler != null) && !uiToolkitHandler.isInReadyState(fInfo.object)) continue; // System.err.println("Timeline @" + Timeline.this.hashCode() // + " at position " + timelinePosition); fInfo.updateFieldValue(timelinePosition); } } }
@Override public void run() { Timeline.this.isLooping = false; TimelineEngine.getInstance().play(Timeline.this, false, msToSkip); } });
/** * Aborts this timeline. The timeline transitions to the * {@link TimelineState#IDLE} state. No application callbacks or field * interpolations are done. * * @see #cancel() * @see #end() */ public void abort() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.ABORT, null); }
public final <T> void addPropertyToInterpolate(String propName, T from, T to) { this.addPropertyToInterpolate(Timeline.<T> property(propName) .from(from).to(to)); }
public final <T> void addPropertyToInterpolate(String propName, KeyFrames<T> keyFrames) { this.addPropertyToInterpolate(Timeline.<T> property(propName) .goingThrough(keyFrames)); }
@Override public final void run() { TridentConfig.PulseSource pulseSource = TridentConfig.getInstance() .getPulseSource(); lastIterationTimeStamp = System.currentTimeMillis(); while (true) { pulseSource.waitUntilNextPulse(); updateTimelines(); // engine.currLoopId++; } }
@Override public void play() { // add last implicit rendezvous this.rendezvous(); super.play(); }
@Override public void playLoop() { // add last implicit rendezvous this.rendezvous(); super.playLoop(); } }
@Override public void onTimelinePulse(float durationFraction, float timelinePosition) { for (AbstractFieldInfo fInfo : propertiesToInterpolate) { // check whether the object is in the ready state if ((uiToolkitHandler != null) && !uiToolkitHandler.isInReadyState(fInfo.object)) continue; // System.err.println("Timeline @" + Timeline.this.hashCode() // + " at position " + timelinePosition); fInfo.updateFieldValue(timelinePosition); } } }
public final <T> void addPropertyToInterpolate(String propName, T from, T to) { this.addPropertyToInterpolate(Timeline.<T> property(propName) .from(from).to(to)); }
public final <T> void addPropertyToInterpolate(String propName, KeyFrames<T> keyFrames) { this.addPropertyToInterpolate(Timeline.<T> property(propName) .goingThrough(keyFrames)); }
@Override public void play() { // add last implicit rendezvous this.rendezvous(); super.play(); }
@Override public void playLoop() { // add last implicit rendezvous this.rendezvous(); super.playLoop(); } }
@Override public void onTimelinePulse(float durationFraction, float timelinePosition) { for (AbstractFieldInfo fInfo : propertiesToInterpolate) { // check whether the object is in the ready state if ((uiToolkitHandler != null) && !uiToolkitHandler.isInReadyState(fInfo.object)) continue; // System.err.println("Timeline @" + Timeline.this.hashCode() // + " at position " + timelinePosition); fInfo.updateFieldValue(timelinePosition); } } }