SVG icons in JavaFX8

Some useful links for Scaleable Vector Graphics icons and their path Strings.

SCALABLE VECTOR GRAPHICS (SVG)

http://www.w3.org/Graphics/SVG/

266 Icons

http://raphaeljs.com/icons/

004-svgicons

Using the Paths in JavaFX

[code language=”java”]
SVGPath myIcon = new SVGPath();
myIcon.setFill(Color.rgb(0, 255, 0, .9));
myIcon.setStroke(Color.WHITE);//
myIcon.setContent("M2.379,14.729 5.208,11.899 12.958,19.648 25.877,6.733 28.707,9.56112.958,25.308z");
[/code]

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.