Class ImageIOConverter
- java.lang.Object
-
- net.sourceforge.jeuclid.converter.ImageIOConverter
-
- All Implemented Interfaces:
ConverterPlugin
public class ImageIOConverter extends java.lang.Object implements ConverterPlugin
supports conversion to standard Raster formats through ImageIO.- Version:
- $Revision: 916bcda78280 $
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.sourceforge.jeuclid.converter.ConverterPlugin
ConverterPlugin.DocumentWithDimension
-
-
Method Summary
All Methods Instance Methods Concrete 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
public 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.- Specified by:
convertin interfaceConverterPlugin- Parameters:
doc- A JEuclid DocumentElementcontext- LayoutContext to use.outStream- Target output stream.- 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
public ConverterPlugin.DocumentWithDimension convert(org.w3c.dom.Node doc, LayoutContext context)
Convert from the given Math Object to an XML DOM Document.- Specified by:
convertin interfaceConverterPlugin- 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.
-
-