Categories
Dictionnary
Download
Project Details
Changes Log
FAQ
License

    1  The problem
    2  The solution
    3  Usage
    4  Supported Nodes and CSS properties
    5  Testing the usage of the converter

jfxConverter is a Java library prodiving utilities to convert a JavaFX Scene to Swing Graphics2D orders. It is then simple to use it to convert to any format which takes a Graphics2D as input. The project comes with PowerPoint and a SVG converters.

The problem

It is relatively simple to draw any Swing content in various formats. Each The JComponent has a JComponent.paint(Graphics) method which allows to draw the component in any Graphics context, and many Java libraries dealing with various graphics formats have classes which allow to create files of their respective format by emitting Graphics2D drawing orders.

There is not similar capabilities in the JavaFX framework. Therefore converting JavaFX Scene content to graphics formats is not an easy task.

The solution

jfxConverter allows to walk through the JavaFX Scene tree and emit Graphics2D drawing orders, therefore the same libraries which can be used with Swing to create files of various graphic formats can also be used with JavaFX. The library comes with both a PowerPoint and an SVG driver, but creating other drivers for other graphic formats is possible.

Usage

Main Article: Usage

Supported Nodes and CSS properties


Testing the usage of the converter


It is possible to test the usage of the converter with a script setting the Node structure.


Categories: general

Developers

Join this project:

To join this project, please contact the project administrators of this project, as shown on the project summary page.

Get the source code:

Source code for this project is available as downloads or through the git repository used by the project, as accessible from the project develop page.

Copyright 2016-2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence