| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.graphic.GraphicServer4a
public class GraphicServer4a
create Graphic objects (with a configuration file - not yet implemented).
| Constructor Summary | |
|---|---|
| GraphicServer4a(org.apache.commons.logging.Log logger)Constructor. | |
| Method Summary | |
|---|---|
|  org.w3c.dom.svg.SVGDocument | domToSvgDom(Document dom)Converts a generic DOM Document instance that contains a MathML document into an SVGDocument. | 
|  org.apache.commons.logging.Log | getLogger()Returns the logger. | 
|  GraphicOutputFactory | getOutputFactory(String mimeType)Returns the output factory for a given mime type. | 
|  String | getSVGParserClassName()Returns the name of the class that should be used to parse SVG graphics. | 
|  boolean | graphicOutputFactoryAvailable(String mimeType)Reports on the availability of GraphicOutputFactoryinstances
 by mime-type. | 
|  Graphic4a | makeGraphic(String href,
            URL[] baseURLs,
            boolean cachingThisGraphic) | 
|  org.w3c.dom.mathml.MathMLDocument | makeMathDocument() | 
|  org.axsl.graphic.MathGraphic | makeMathGraphic(org.w3c.dom.mathml.MathMLDocument mathDocument) | 
|  org.w3c.dom.svg.SVGDocument | makeSvgDocument() | 
|  SVGGraphic | makeSvgGraphic(org.w3c.dom.svg.SVGDocument svgDocument) | 
|  boolean | registerFactory(GraphicFactory factory)Registers a third-party GraphicFactoryimplementation with the
 Server, so that it can be included in the list of factories that are
 tried as aGraphic4ais created. | 
|  void | registerGraphicOutputFactory(GraphicOutputFactory factory)Registers a GraphicOutputFactoryfor use by this server. | 
|  void | resetCache()Clear the image cache. | 
|  void | writeSvgDocument(org.w3c.dom.svg.SVGDocument svgDocument,
                 OutputStream outputStream) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public GraphicServer4a(org.apache.commons.logging.Log logger)
logger - The logger.| Method Detail | 
|---|
public boolean registerFactory(GraphicFactory factory)
GraphicFactory implementation with the
 Server, so that it can be included in the list of factories that are
 tried as a Graphic4a is created.
factory - The factory that should be added to the list of factories.
public Graphic4a makeGraphic(String href,
                             URL[] baseURLs,
                             boolean cachingThisGraphic)
                      throws org.axsl.graphic.GraphicException
makeGraphic in interface org.axsl.graphic.GraphicServerorg.axsl.graphic.GraphicException
public SVGGraphic makeSvgGraphic(org.w3c.dom.svg.SVGDocument svgDocument)
                          throws org.axsl.graphic.GraphicException
makeSvgGraphic in interface org.axsl.graphic.GraphicServerorg.axsl.graphic.GraphicExceptionpublic void resetCache()
public org.apache.commons.logging.Log getLogger()
public String getSVGParserClassName()
public org.w3c.dom.svg.SVGDocument makeSvgDocument()
                                            throws org.axsl.graphic.GraphicException
makeSvgDocument in interface org.axsl.graphic.GraphicServerorg.axsl.graphic.GraphicException
public void writeSvgDocument(org.w3c.dom.svg.SVGDocument svgDocument,
                             OutputStream outputStream)
writeSvgDocument in interface org.axsl.graphic.GraphicServerpublic void registerGraphicOutputFactory(GraphicOutputFactory factory)
GraphicOutputFactory for use by this server.
 This method can be used both to support custom GraphicOutput
 types and to override standard types.
 Note that if a factory was previously registered for the mime-type
 of the factory now being registered, the new registration overrides the
 previous registration.
 If this behavior is not desired, check the return value of
 graphicOutputFactoryAvailable(String) before registering the new
 factory.
factory - The factory which should be registered.public GraphicOutputFactory getOutputFactory(String mimeType)
mimeType - The mime type for which an output factory is desired.
public boolean graphicOutputFactoryAvailable(String mimeType)
GraphicOutputFactory instances
 by mime-type.
mimeType - The mime-type for which a factory is sought.
public org.w3c.dom.mathml.MathMLDocument makeMathDocument()
                                                   throws org.axsl.graphic.GraphicException
makeMathDocument in interface org.axsl.graphic.GraphicServerorg.axsl.graphic.GraphicException
public org.axsl.graphic.MathGraphic makeMathGraphic(org.w3c.dom.mathml.MathMLDocument mathDocument)
                                             throws org.axsl.graphic.GraphicException
makeMathGraphic in interface org.axsl.graphic.GraphicServerorg.axsl.graphic.GraphicException
public org.w3c.dom.svg.SVGDocument domToSvgDom(Document dom)
                                        throws org.axsl.graphic.GraphicException
SVGDocument.
dom - A generic DOM Document instance that contains a MathML
 document.
org.axsl.graphic.GraphicException - For errors during conversion.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||