For JavaFX we need a way to create a canvas (GraphicsContext is not sufficient), so I made getOrCreateCanvas accessible to the outside.