Standard Java defines a common and exchangeable graphics layer via its abstract Graphics2D class. Implementations are provided for drawing onto the screen, rendering into images and for printing. Due to this general approach it is also possible to create third party libraries for rendering into PDF files or SVG files for example by just providing alternate implementations of the Graphics2D class.
A similar approach does not seem to be possible for JavaFX because there currently does not seem to be such a clearly defined graphics abstraction layer. In order to make rendering of JavaFX content possible in various formats such a publicly accessible graphics layer should be made available.
A similar approach does not seem to be possible for JavaFX because there currently does not seem to be such a clearly defined graphics abstraction layer. In order to make rendering of JavaFX content possible in various formats such a publicly accessible graphics layer should be made available.