Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVG file loader for JavaFX 2.0.

This project is worked on NetBeans 7.1.

How to run sample:

> java -cp jfxrt.jar;SVGLoader.jar SVGLoaderSample


Usage:

Case 1: All contents are added to scene graph.

URL url = ...;
SVGContent content = SVGLoader.load(url);
container.getChildren().add(content.getRoot());

Case 2: a particular group is added to scene graph.

URL url = ...;
String groupId = ...;

SVGContent content = SVGLoader.load(url);
Group group = content.getGroup(groupId);

container.getChildren.add(group);

Case 3: a particular node is added to scene graph.

URL url = ...;
String nodeId = ...;

SVGContent content = SVGLoader.load(url);
Node node = content.getNode(nodeId);

container.getChildren.add(node);

About

SVG file loader for JavaFX 2.0

Resources

Stars

15 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages