net.sourceforge.jeuclid.swt
Class MathRenderer

java.lang.Object
  extended by net.sourceforge.jeuclid.swt.MathRenderer

public final class MathRenderer
extends Object

Renders MathML to SWT ImageData.

Version:
$Revision: d5b416878097 $

Method Summary
static MathRenderer getInstance()
          Retrieve an instance of the converter singleton class.
 org.eclipse.swt.graphics.ImageData render(Node document, LayoutContext layoutContext)
          Renders MathML into ImageData.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MathRenderer getInstance()
Retrieve an instance of the converter singleton class.

Returns:
a Converter object.

render

public org.eclipse.swt.graphics.ImageData render(Node document,
                                                 LayoutContext layoutContext)
Renders MathML into ImageData.

Parameters:
document - The MathML Document to render
layoutContext - LayoutContext to use
Returns:
an ImageData instance or null if an error occurred.


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