English | Site Directory

Android - An Open Handset Alliance Project

android.awt
public class

android.awt.AwtFactory

java.lang.Object
android.awt.AwtFactory

Summary

Public Constructors

          AwtFactory()

Public Methods

      static  Graphics2D  getAwtGraphics(Canvas c, Paint p)
Use this method to get acces to AWT drawing primitives and to render into the surface area of a Android widget.
Methods inherited from class java.lang.Object

Details

Public Constructors

public AwtFactory()

Public Methods

public static Graphics2D getAwtGraphics(Canvas c, 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.

Parameters

c Canvas of the android widget to draw into
p The default drawing parameters such as font, stroke, foreground and background colors, etc.

Returns

  • The AWT Graphics object that makes all AWT drawing primitives available in the androind world.
Build m5-rc15i - 10 Jun 2008 13:54