SVG To FXML Converter as Commandline util


There’ve been some requests from people to use the SVG to FXML converter outside my e(fx)clipse project. I’m happy to announce that the latest nightly builds provide a standalone version of the converter.

Useage is quite simple:

java -jar svg2fxml-0.1.0-SNAPSHOT.jar http://croczilla.com/bits_and_pieces/svg/samples/tiger/tiger.svg tiger.fxml

will produce an FXML which can be loaded into SceneBuilder:

Need to teach myself now how I can provide this as a netbeans module😉 Any volunteers to provide an implementation and contribute it to e(fx)clipse.org?

This entry was posted in e(fx)clipse. Bookmark the permalink.

10 Responses to SVG To FXML Converter as Commandline util

  1. Pingback: JavaFX links of the week, August 27 // JavaFX News, Demos and Insight // FX Experience

  2. gontard says:

    Is there a way to use this jar api for generating a javafx.scene.Node without the fxml step ?

    • Tom Schindl says:

      no and the algorithms used are not optimized for live processing and creation of Scene-Graph on the fly. What is your use case, do you want to use it transform SVGs on the fly?

  3. gontard says:

    What part of the svg specification if supported ? For example this complex svg (http://www.dehats.com/resources/vector-retina/Plant_cell_structure_svg.svg) is very well converted but this much more simple one(http://upload.wikimedia.org/wikipedia/en/6/6d/European_flag.svg) is not.

  4. Hello, have you improve this great utility ?

    • Tom Schindl says:

      it is part of our repo but we have not implemented many new features in the last few months – if you have concrete problems and a sample SVG to test – file a bugzilla but we are currently head down in other areas of e(fx)clipse so we won’t fix it anytime soon unless you provide a patch

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s