Interface ConverterPlugin
-
- All Known Implementing Classes:
BatikConverter,ImageIOConverter
public interface ConverterPluginDescribes an Image converter.- Version:
- $Revision: 70597ba9d706 $
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classConverterPlugin.DocumentWithDimensionInternal class describing an XML document and the dimensions of its default view.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConverterPlugin.DocumentWithDimensionconvert(org.w3c.dom.Node doc, LayoutContext context)Convert from the given Math Object to an XML DOM Document.java.awt.Dimensionconvert(org.w3c.dom.Node doc, LayoutContext context, java.io.OutputStream outStream)Write the given MathBase object with its rendering parameters into the given output stream.
-
-
-
Method Detail
-
convert
java.awt.Dimension convert(org.w3c.dom.Node doc, LayoutContext context, java.io.OutputStream outStream) throws java.io.IOExceptionWrite the given MathBase object with its rendering parameters into the given output stream.- Parameters:
doc- A JEuclid DocumentElementoutStream- Target output stream.context- LayoutContext to use.- Returns:
- Rendering's dimension based on the spefic plugin's Graphics2D implementation.
- Throws:
java.io.IOException- if an I/O error occurred during write.
-
convert
ConverterPlugin.DocumentWithDimension convert(org.w3c.dom.Node doc, LayoutContext context)
Convert from the given Math Object to an XML DOM Document.- Parameters:
doc- A JEuclid DocumentElementcontext- LayoutContext to use.- Returns:
- an instance of DocumentWithDimension, containing a Document of the appropriate subtype for this format (e.g. SVGDocument), if available. If conversion is not supported by this plugin, it may return null.
-
-