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 void
protected void
boolean
protected abstract boolean
protected void
protected void
protected abstract void
requestAnimationFrame
(Runnable runnable) void
runInBackground
(Runnable animationTask) scheduleDelayInAnimationFrame
(long delayMs, Runnable animationTask, int afterFrameCount, AnimationFramePass pass) protected SchedulerProviderBase.ScheduledBase
scheduledImpl
(SchedulerProviderBase.WrappedRunnable wrappedRunnable, long delayMs) protected Cancellable
scheduleLongTermAnimation
(long delayMillis, Runnable runnable) protected void
scheduleNextAnimationExecution
(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, tasksCount
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.webfx.platform.scheduler.spi.SchedulerProvider
scheduleDeferred, scheduleDelay, schedulePeriodic, tasksCount, wakeUp
Methods 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:
scheduleDelayInAnimationFrame
in interfaceUiSchedulerProvider
-
schedulePeriodic
Description copied from interface:SchedulerProvider
Schedules a repeating handler that is scheduled with a constant periodicity. That is, the handler will be invoked everydelayMs
milliseconds, regardless of how long the previous invocation took to complete.- Specified by:
schedulePeriodic
in interfaceSchedulerProvider
- Overrides:
schedulePeriodic
in 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:
schedulePeriodicInAnimationFrame
in interfaceUiSchedulerProvider
-
runInBackground
- Specified by:
runInBackground
in interfaceSchedulerProvider
- Overrides:
runInBackground
in classSchedulerProviderBase
-
runOnIdle
- Specified by:
runOnIdle
in interfaceSchedulerProvider
- Overrides:
runOnIdle
in classSchedulerProviderBase
-
scheduledImpl
protected SchedulerProviderBase.ScheduledBase scheduledImpl(SchedulerProviderBase.WrappedRunnable wrappedRunnable, long delayMs) - Specified by:
scheduledImpl
in classSchedulerProviderBase
-
requestNextScenePulse
public void requestNextScenePulse()- Specified by:
requestNextScenePulse
in interfaceUiSchedulerProvider
-
isAnimationFrameNow
public boolean isAnimationFrameNow()- Specified by:
isAnimationFrameNow
in 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
-