English | Site Directory

Android - An Open Handset Alliance Project

android.awt
public class

android.awt.AndroidGraphicsFactory

java.lang.Object
org.apache.harmony.awt.gl.CommonGraphics2DFactory GraphicsFactory
android.awt.AndroidGraphicsFactory

Summary

Constants inherited from interface org.apache.harmony.awt.wtk.GraphicsFactory
Fields inherited from class org.apache.harmony.awt.gl.CommonGraphics2DFactory

Public Constructors

          AndroidGraphicsFactory()

Public Methods

        GraphicsEnvironment  createGraphicsEnvironment(WindowFactory wf)
        Font  embedFont(String fontFilePath)
Embeds font from gile with specified path into the system.
        FontManager  getFontManager()
        FontMetrics  getFontMetrics(Font font)
Returns FontMetrics object that keeps metrics of the specified font.
        FontPeer  getFontPeer(Font font)
        Graphics2D  getGraphics2D(Canvas c, Paint p)
        Graphics2D  getGraphics2D(NativeWindow win, int translateX, int translateY, MultiRectArea clip)
        Graphics2D  getGraphics2D()
        Graphics2D  getGraphics2D(NativeWindow win, int translateX, int translateY, int width, int height)
Methods inherited from class org.apache.harmony.awt.gl.CommonGraphics2DFactory
Methods inherited from class java.lang.Object
Methods inherited from interface org.apache.harmony.awt.wtk.GraphicsFactory

Details

Public Constructors

public AndroidGraphicsFactory()

Public Methods

public GraphicsEnvironment createGraphicsEnvironment(WindowFactory wf)

public Font embedFont(String fontFilePath)

Embeds font from gile with specified path into the system.

Parameters

fontFilePath path to the font file

public FontManager getFontManager()

public FontMetrics getFontMetrics(Font font)

Returns FontMetrics object that keeps metrics of the specified font.

Parameters

font specified Font

public FontPeer getFontPeer(Font font)

public Graphics2D getGraphics2D(Canvas c, Paint p)

public Graphics2D getGraphics2D(NativeWindow win, int translateX, int translateY, MultiRectArea clip)

public Graphics2D getGraphics2D()

public Graphics2D getGraphics2D(NativeWindow win, int translateX, int translateY, int width, int height)

Build m5-rc15i - 10 Jun 2008 13:54