Class UiSchedulerProviderBase
java.lang.Object
dev.webfx.platform.scheduler.spi.SchedulerProviderBase
dev.webfx.platform.uischeduler.spi.impl.UiSchedulerProviderBase
- All Implemented Interfaces:
SchedulerProvider,UiSchedulerProvider
public abstract class UiSchedulerProviderBase
extends SchedulerProviderBase
implements UiSchedulerProvider
- Author:
- Bruno Salmon
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class dev.webfx.platform.scheduler.spi.SchedulerProviderBase
SchedulerProviderBase.ScheduledBase, SchedulerProviderBase.WrappedRunnable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidprotected voidbooleanprotected abstract booleanprotected voidprotected voidprotected abstract voidrequestAnimationFrame(Runnable runnable) voidrunInBackground(Runnable animationTask) scheduleDelayInAnimationFrame(long delayMs, Runnable animationTask, int afterFrameCount, AnimationFramePass pass) protected SchedulerProviderBase.ScheduledBasescheduledImpl(SchedulerProviderBase.WrappedRunnable wrappedRunnable, long delayMs) protected CancellablescheduleLongTermAnimation(long delayMillis, Runnable runnable) protected voidscheduleNextAnimationExecution(boolean stop, boolean reset, long nextAnimationExecutionTimeMillis) schedulePeriodic(long delayMs, Runnable runnable) Schedules a repeating handler that is scheduled with a constant periodicity.schedulePeriodicInAnimationFrame(long delayMs, Runnable animationTask, AnimationFramePass pass) Methods inherited from class dev.webfx.platform.scheduler.spi.SchedulerProviderBase
scheduleDeferred, scheduleDelay, scheduleImpl, tasksCountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.webfx.platform.scheduler.spi.SchedulerProvider
scheduleDeferred, scheduleDelay, schedulePeriodic, tasksCount, wakeUpMethods inherited from interface dev.webfx.platform.uischeduler.spi.UiSchedulerProvider
isUiThread, runInUiThread, runOutUiThread, scheduleDelayInAnimationFrame, scheduleDelayInAnimationFrame, scheduleDelayInAnimationFrame, scheduleDelayInFutureAnimationFrame, scheduleDelayInFutureAnimationFrame, scheduleInAnimationFrame, scheduleInAnimationFrame, scheduleInAnimationFrame, scheduleInAnimationFrame, scheduleInFutureAnimationFrame, scheduleInFutureAnimationFrame, schedulePeriodicInAnimationFrame, schedulePeriodicInAnimationFrame, schedulePeriodicInAnimationFrame, schedulePeriodicInAnimationFrame, schedulePeriodicInAnimationFrame, schedulePeriodicInAnimationFrame, schedulePeriodicInAnimationFrame, schedulePropertyChangeInAnimationFrame
-
Constructor Details
-
UiSchedulerProviderBase
public UiSchedulerProviderBase()
-
-
Method Details
-
scheduleDelayInAnimationFrame
public Scheduled scheduleDelayInAnimationFrame(long delayMs, Runnable animationTask, int afterFrameCount, AnimationFramePass pass) - Specified by:
scheduleDelayInAnimationFramein interfaceUiSchedulerProvider
-
schedulePeriodic
Description copied from interface:SchedulerProviderSchedules a repeating handler that is scheduled with a constant periodicity. That is, the handler will be invoked everydelayMsmilliseconds, regardless of how long the previous invocation took to complete.- Specified by:
schedulePeriodicin interfaceSchedulerProvider- Overrides:
schedulePeriodicin classSchedulerProviderBase- Parameters:
delayMs- the period with which the handler is executedrunnable- the handler to execute- Returns:
- the timer
-
schedulePeriodicInAnimationFrame
public Scheduled schedulePeriodicInAnimationFrame(long delayMs, Runnable animationTask, AnimationFramePass pass) - Specified by:
schedulePeriodicInAnimationFramein interfaceUiSchedulerProvider
-
runInBackground
- Specified by:
runInBackgroundin interfaceSchedulerProvider- Overrides:
runInBackgroundin classSchedulerProviderBase
-
runOnIdle
- Specified by:
runOnIdlein interfaceSchedulerProvider- Overrides:
runOnIdlein classSchedulerProviderBase
-
scheduledImpl
protected SchedulerProviderBase.ScheduledBase scheduledImpl(SchedulerProviderBase.WrappedRunnable wrappedRunnable, long delayMs) - Specified by:
scheduledImplin classSchedulerProviderBase
-
requestNextScenePulse
public void requestNextScenePulse()- Specified by:
requestNextScenePulsein interfaceUiSchedulerProvider
-
isAnimationFrameNow
public boolean isAnimationFrameNow()- Specified by:
isAnimationFrameNowin interfaceUiSchedulerProvider
-
executeAnimationPipe
protected void executeAnimationPipe() -
scheduleNextAnimationExecution
protected void scheduleNextAnimationExecution(boolean stop, boolean reset, long nextAnimationExecutionTimeMillis) -
isSystemAnimationFrameRunning
protected abstract boolean isSystemAnimationFrameRunning() -
requestAnimationFrame
-
cancelAnimationFrame
protected abstract void cancelAnimationFrame() -
scheduleLongTermAnimation
-
log
-
log
-