public class OMSVGParser extends Object
Constructor and Description |
---|
OMSVGParser() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final OMSVGDocument createDocument()
public static final OMSVGDocument currentDocument()
public static final OMSVGSVGElement parse(String rawSvg) throws ParserException
rawSvg
- raw xml to be parsedParserException
- 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 otherwiseParserException
- 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 parsecom.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 parsecom.google.gwt.core.client.JavaScriptException
Copyright © 2018. All Rights Reserved.