CommandQueueBuilder

class CommandQueueBuilder<P : Position2D<out P>?>

Builder class that eases the building of a queue of DrawCommands.

Parameters

<P>

the position type

Functions

Link copied to clipboard
open fun addCommand(doOnJFXThread: DrawCommand<P>): CommandQueueBuilder
Adds a DrawCommand to the queue to be executed on the JavaFX thread.
Link copied to clipboard
open fun buildCommandQueue(): Queue<DrawCommand<P>>
Builds the queue of commands.
Link copied to clipboard
open fun cleanQueue(): CommandQueueBuilder
Clears the queue.
Link copied to clipboard
open fun wrapAndAdd(supplier: Supplier<Boolean>, doOnJFXThread: DrawCommand<P>): CommandQueueBuilder
Wraps a DrawCommand around to the queue to be executed on the JavaFX thread.