|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.umd.cs.jazz.io.ZSVG
ZSVG reads SVG format file and load objects into jazz scenegraph.
Field Summary | |
protected ZGroup |
group
SVG objects are drawn on this canvas. |
Constructor Summary | |
ZSVG()
Default Constructor |
|
ZSVG(java.io.File file)
Load SVG data from the file and add objects on the group. |
|
ZSVG(java.io.InputStream in)
Load SVG data from inputstream and add objects on the group. |
|
ZSVG(java.lang.String url)
Load SVG data from specified URL (String form) and add objects on my group. |
Method Summary | |
ZGroup |
getGroup()
Return ZGroup group, which has all nodes as children |
ZGroup |
read(java.io.File in)
Load SVG data from the file and begin to draw objects. |
ZGroup |
read(java.io.InputStream in)
Load SVG data from the inputsream and begin to draw objects. |
ZGroup |
read(java.lang.String url)
Load SVG data from the url and begin to draw objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ZGroup group
Constructor Detail |
public ZSVG()
public ZSVG(java.io.InputStream in)
in
- read SVG data from the inputstream.
Warning: if you use inputstream as SVG input, you might have problems with DTD location.
DTD Definition should be specified by URL, not by relative path from the current locationpublic ZSVG(java.lang.String url)
url
- read SVG data from the URL (String form).public ZSVG(java.io.File file)
file
- read SVG data from the file.Method Detail |
public ZGroup read(java.io.InputStream in)
in
- read SVG data from the inputstream.public ZGroup read(java.io.File in)
in
- read SVG data from the File in.public ZGroup read(java.lang.String url)
url
- read SVG data from the url (Warning: String url)public ZGroup getGroup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |