|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.svg.InkscapeLoader
public class InkscapeLoader
A loader specifically for the SVG that is produced from Inkscape
Field Summary | |
---|---|
static int |
RADIAL_TRIANGULATION_LEVEL
The number of times to over trigulate to get enough tesselation for smooth shading |
Method Summary | |
---|---|
static void |
addElementProcessor(ElementProcessor proc)
Add an ElementProcessor which will be passed
each element read as the Inkscape SVG document is processed. |
static Diagram |
load(java.io.InputStream in,
boolean offset)
Load a SVG document into a diagram |
static Diagram |
load(java.lang.String ref)
Load a SVG document into a diagram |
static Diagram |
load(java.lang.String ref,
boolean offset)
Load a SVG document into a diagram |
void |
loadChildren(org.w3c.dom.Element element,
Transform t)
Load the children of a given element |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int RADIAL_TRIANGULATION_LEVEL
Method Detail |
---|
public static void addElementProcessor(ElementProcessor proc)
ElementProcessor
which will be passed
each element read as the Inkscape SVG document is processed.
proc
- The processor to be addedpublic static Diagram load(java.lang.String ref, boolean offset) throws SlickException
ref
- The reference in the classpath to load the diagram fromoffset
- Offset the diagram for the height of the document
SlickException
- Indicates a failure to process the documentpublic static Diagram load(java.lang.String ref) throws SlickException
ref
- The reference in the classpath to load the diagram from
SlickException
- Indicates a failure to process the documentpublic static Diagram load(java.io.InputStream in, boolean offset) throws SlickException
offset
- Offset the diagram for the height of the documentin
- The input stream from which to read the SVG
SlickException
- Indicates a failure to process the documentpublic void loadChildren(org.w3c.dom.Element element, Transform t) throws ParsingException
Loader
loadChildren
in interface Loader
element
- The element whose children should be loadedt
- The transform to apply to all the children
ParsingException
- Indicates a failure to read the XMLLoader.loadChildren(org.w3c.dom.Element,
org.newdawn.slick.geom.Transform)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |