net.sourceforge.jeuclid.xmlgraphics
Class Graphics2DImagePainterMathML

java.lang.Object
  extended by net.sourceforge.jeuclid.xmlgraphics.Graphics2DImagePainterMathML
All Implemented Interfaces:
org.apache.xmlgraphics.java2d.Graphics2DImagePainter

public class Graphics2DImagePainterMathML
extends Object
implements org.apache.xmlgraphics.java2d.Graphics2DImagePainter

Actually draw an JEuclidView.

Version:
$Revision: 32023847f457 $

Constructor Summary
Graphics2DImagePainterMathML(JEuclidView theView, Dimension dim, float asc)
          Default Constructor.
 
Method Summary
static org.apache.xmlgraphics.java2d.Graphics2DImagePainter createGraphics2DImagePainter(Document document)
          Create a new Graphics2DImagePainter for the given Document.
 Dimension getImageSize()
          
 void paint(Graphics2D graphics2d, Rectangle2D rectangle2d)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graphics2DImagePainterMathML

public Graphics2DImagePainterMathML(JEuclidView theView,
                                    Dimension dim,
                                    float asc)
Default Constructor.

Parameters:
theView - JEuclidView to paint.
dim - Dimension of the view.
asc - Ascent of the view.
Method Detail

createGraphics2DImagePainter

public static org.apache.xmlgraphics.java2d.Graphics2DImagePainter createGraphics2DImagePainter(Document document)
Create a new Graphics2DImagePainter for the given Document.

Parameters:
document - A MathML DOM Document.
Returns:
a Graphics2DImagePainter.

getImageSize

public Dimension getImageSize()

Specified by:
getImageSize in interface org.apache.xmlgraphics.java2d.Graphics2DImagePainter

paint

public void paint(Graphics2D graphics2d,
                  Rectangle2D rectangle2d)

Specified by:
paint in interface org.apache.xmlgraphics.java2d.Graphics2DImagePainter


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