net.sourceforge.jeuclid.converter
Interface ConverterPlugin

All Known Implementing Classes:
BatikConverter, FreeHepConverter, ImageIOConverter

public interface ConverterPlugin

Describes an Image converter.

Version:
$Revision: 70597ba9d706 $

Nested Class Summary
static class ConverterPlugin.DocumentWithDimension
          Internal class describing an XML document and the dimensions of its default view.
 
Method Summary
 ConverterPlugin.DocumentWithDimension convert(Node doc, LayoutContext context)
          Convert from the given Math Object to an XML DOM Document.
 Dimension convert(Node doc, LayoutContext context, OutputStream outStream)
          Write the given MathBase object with its rendering parameters into the given output stream.
 

Method Detail

convert

Dimension convert(Node doc,
                  LayoutContext context,
                  OutputStream outStream)
                  throws IOException
Write the given MathBase object with its rendering parameters into the given output stream.

Parameters:
doc - A JEuclid DocumentElement
outStream - Target output stream.
context - LayoutContext to use.
Returns:
Rendering's dimension based on the spefic plugin's Graphics2D implementation.
Throws:
IOException - if an I/O error occurred during write.

convert

ConverterPlugin.DocumentWithDimension convert(Node doc,
                                              LayoutContext context)
Convert from the given Math Object to an XML DOM Document.

Parameters:
doc - A JEuclid DocumentElement
context - 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.


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.