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 Summary
ConstructorsConstructorDescriptionGraphics2DImagePainterMathML(JEuclidView theView, Dimension dim, float asc) Default Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.xmlgraphics.java2d.Graphics2DImagePaintercreateGraphics2DImagePainter(Document document) Create a newGraphics2DImagePainterfor the given Document.voidpaint(Graphics2D graphics2d, Rectangle2D rectangle2d)
-
Constructor Details
-
Graphics2DImagePainterMathML
Default Constructor.- Parameters:
theView-JEuclidViewto 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 newGraphics2DImagePainterfor the given Document.- Parameters:
document- A MathML DOM Document.- Returns:
- a
Graphics2DImagePainter.
-
getImageSize
- Specified by:
getImageSizein interfaceorg.apache.xmlgraphics.java2d.Graphics2DImagePainter
-
paint
- Specified by:
paintin interfaceorg.apache.xmlgraphics.java2d.Graphics2DImagePainter
-