JavaFX implementation of the Marina algorithm.