Class Graphics2DImagePainterMathML

  • All Implemented Interfaces:
    org.apache.xmlgraphics.java2d.Graphics2DImagePainter

    public class Graphics2DImagePainterMathML
    extends java.lang.Object
    implements org.apache.xmlgraphics.java2d.Graphics2DImagePainter
    Actually draw an JEuclidView.
    Version:
    $Revision: 32023847f457 $
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.xmlgraphics.java2d.Graphics2DImagePainter createGraphics2DImagePainter​(org.w3c.dom.Document document)
      Create a new Graphics2DImagePainter for the given Document.
      java.awt.Dimension getImageSize()
      void paint​(java.awt.Graphics2D graphics2d, java.awt.geom.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,
                                            java.awt.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​(org.w3c.dom.Document document)
        Create a new Graphics2DImagePainter for the given Document.
        Parameters:
        document - A MathML DOM Document.
        Returns:
        a Graphics2DImagePainter.
      • getImageSize

        public java.awt.Dimension getImageSize()
        Specified by:
        getImageSize in interface org.apache.xmlgraphics.java2d.Graphics2DImagePainter
      • paint

        public void paint​(java.awt.Graphics2D graphics2d,
                          java.awt.geom.Rectangle2D rectangle2d)
        Specified by:
        paint in interface org.apache.xmlgraphics.java2d.Graphics2DImagePainter