Graphics2D context: 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).
JFXConverter instance: setBackground(java.awt.Color)setBackground(javafx.scene.paint.Color)setBackground(javafx.scene.paint.Color, double opacity)ConverterListener interface, and set the listener to the converter. DefaultConverterListener class is a particular ConverterListener which: JFXConverter converter = new JFXConverter(); converter.setListener(new DefaultConverterListener()); converter.convert(node, graphics2D);
Copyright 2016-2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence