Class Graphics2DImagePainterMathML

java.lang.Object
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 Details

    • 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 Details

    • 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