wrapAndAdd

open fun wrapAndAdd(supplier: Supplier<Boolean>, doOnJFXThread: DrawCommand<P>): CommandQueueBuilder

Wraps a DrawCommand around to the queue to be executed on the JavaFX thread.

Return

this builder

Parameters

doOnJFXThread

the action to do

supplier

the boolean supplier that will check if the command should be executed