|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vectomatic.dom.svg.utils.OMSVGParser
public class OMSVGParser
Class to parse SVG documents and instantiate SVG documents
Constructor Summary | |
---|---|
OMSVGParser()
|
Method Summary | |
---|---|
static OMSVGDocument |
createDocument()
Creates a new empty SVG document |
static OMSVGDocument |
currentDocument()
Returns the current document, as an SVG document |
static OMSVGSVGElement |
parse(String rawSvg)
Parses the supplied SVG text into a document. |
static OMSVGSVGElement |
parse(String rawSvg,
boolean enableScripts)
Parses the supplied SVG text into a document |
static OMCSSValue |
parseDashArray(String cssText)
Parses an SVG dasharray value |
static OMSVGPaint |
parsePaint(String cssText)
Parses an SVG paint value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OMSVGParser()
Method Detail |
---|
public static final OMSVGDocument createDocument()
public static final OMSVGDocument currentDocument()
public static final OMSVGSVGElement parse(String rawSvg) throws ParserException
rawSvg
- raw xml to be parsed
ParserException
- if the document is not well-formed or is not SVGpublic static final OMSVGSVGElement parse(String rawSvg, boolean enableScripts) throws ParserException
rawSvg
- raw xml to be parsedenableScripts
- true to enable embedded scripts, false otherwise
ParserException
- if the document is not well-formed or is not SVGpublic static OMSVGPaint parsePaint(String cssText) throws com.google.gwt.core.client.JavaScriptException
cssText
- The value to parse
com.google.gwt.core.client.JavaScriptException
- If the string to parse is not a valid paint valuepublic static OMCSSValue parseDashArray(String cssText) throws com.google.gwt.core.client.JavaScriptException
cssText
- The dash array to parse
com.google.gwt.core.client.JavaScriptException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |