public static java.awt.Graphics2D | getAwtGraphics(android.graphics.Canvas c, android.graphics.Paint p)Use this method to get acces to AWT drawing primitives and to
render into the surface area of a Android widget. Origin and
clip of the returned graphics object are the same as in the
corresponding Android widget.
// AWT?? TODO: test it!
if (null == gf) {
Toolkit tk = Toolkit.getDefaultToolkit();
gf = tk.getGraphicsFactory();
}
return gf.getGraphics2D(c, p);
|