Menu

Home

Hervé Girod

This project provides utilities to convert a JavaFX Scene to Swing Graphics2D orders. It it then simple to use it to convert to any format which takes a Graphics2D as input.

Example:

JFXConverter converter = new JFXConverter();
converter.convert(node, graphics2d);

The Graphics2D does not need to be the Swing Graphics2D implementation. It can be any class which implements its
interface (though Graphics2D is an abstract class). For example, the tools directory contains a PPGraphics2D class which allows to convert any JavaFX Node tree to a PowerPoint File (of course this class also allows it to work with a Swing hierarchy). Some examples are provided in the tools directory to explain how to use it. For example see [pptsample] or [svgsample].

The wiki uses Markdown syntax.

Project Members:


Related

Wiki: pptsample