public interface GraphicServer
| Modifier and Type | Method and Description |
|---|---|
Graphic |
makeGraphic(java.lang.String href,
java.net.URL[] baseURLs,
boolean cachingThisGraphic)
Factory method to find or create a Graphic instance.
|
org.w3c.dom.mathml.MathMLDocument |
makeMathDocument()
Factory method to create a new, empty DOM implementation for a MathML
document.
|
MathGraphic |
makeMathGraphic(org.w3c.dom.mathml.MathMLDocument mathDocument)
Factory method to find or create a
MathGraphic instance from an
already-parsed MathMLDocument. |
org.w3c.dom.svg.SVGDocument |
makeSvgDocument()
Factory method to create a new, empty DOM implementation for an SVG
document.
|
SvgGraphic |
makeSvgGraphic(org.w3c.dom.svg.SVGDocument svgDocument)
Factory method to find or create an
SvgGraphic instance from an
already-parsed SVGDocument. |
void |
writeSvgDocument(org.w3c.dom.svg.SVGDocument svgDocument,
java.io.OutputStream outputStream)
Writes an SVG document to an output stream, perhaps with pretty-printing.
|
Graphic makeGraphic(java.lang.String href, java.net.URL[] baseURLs, boolean cachingThisGraphic) throws GraphicException
href - The graphic URL as a String. Note that this String should
not be enclosed in "url()", but should be just a valid
URI reference as defined in RFC2396.baseURLs - An array of URLs containing, in order, the base locations
that should be tried when resolving an href that indicates a relative
path. Element 0 will be tried first, then element 1, etc.cachingThisGraphic - Set to true if a pointer to this instance
should be kept for later reuse. Set to false if you don't want to spend
the memory for this. (Note: This is done in the makeGraphic method so
that this decision can conceivably be made separately for each graphic.)GraphicException - For errors during construction.SvgGraphic makeSvgGraphic(org.w3c.dom.svg.SVGDocument svgDocument) throws GraphicException
SvgGraphic instance from an
already-parsed SVGDocument.svgDocument - The (DOM) SVG Document from which an SVGGraphic should
be constructed.SvgGraphic instance.GraphicException - For errors during construction.org.w3c.dom.svg.SVGDocument makeSvgDocument()
throws GraphicException
GraphicException - For errors during SVGDocument creation.void writeSvgDocument(org.w3c.dom.svg.SVGDocument svgDocument,
java.io.OutputStream outputStream)
throws java.io.IOException
svgDocument - The SVG Document to be written.outputStream - The output stream to which the document should be
written.java.io.IOException - For errors while writing the document to the stream.org.w3c.dom.mathml.MathMLDocument makeMathDocument()
throws GraphicException
GraphicException - For errors during MathMLDocument creation.MathGraphic makeMathGraphic(org.w3c.dom.mathml.MathMLDocument mathDocument) throws GraphicException
MathGraphic instance from an
already-parsed MathMLDocument.mathDocument - The (DOM) MathML Document from which a MathGraphic
should be constructed.MathGraphic instance.GraphicException - For errors during construction.This documentation was created 2017-01-24 at 21:26 GMT by The aXSL Group and may be freely copied. See license for details.