Cloning of JavaFX objects?
I wonder if there's some JavaFX equivalent to clone() function in Java?
I have some quite complex shapes, which I need to add repeatedly to the canvas.
The rendering of the shape is a bit "heavy", so I'd prefer to generate it only once, and then just make new instances of the result to place them on the canvas.
Is there a way how to accomplish this in interpreted JavaFX? I was searching through all the documents on JavaFX scripting language I could found, but without a luck.
Thanks for any help...