-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathREADME
More file actions
37 lines (21 loc) · 759 Bytes
/
README
File metadata and controls
37 lines (21 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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);