FileDocCategorySizeDatePackage
GraphicsFactory.javaAPI DocAndroid 1.5 API2996Wed May 06 22:41:54 BST 2009org.apache.harmony.awt.wtk

GraphicsFactory

public interface GraphicsFactory
GraphicsFactory interface defines methods for Graphics2D and font stuff instances factories.

Fields Summary
static final FontMetrics[]
cacheFM
Constructors Summary
Methods Summary
public java.awt.GraphicsEnvironmentcreateGraphicsEnvironment(WindowFactory wf)
Creates instance of GraphicsEnvironment for specified WindowFactory

param
wf WindowFactory
return
New instance of GraphicsEnvironment

public java.awt.FontembedFont(java.lang.String fontFilePath)

public org.apache.harmony.awt.gl.font.FontManagergetFontManager()

public java.awt.FontMetricsgetFontMetrics(java.awt.Font font)

public java.awt.peer.FontPeergetFontPeer(java.awt.Font font)

public java.awt.Graphics2DgetGraphics2D(NativeWindow win, int translateX, int translateY, org.apache.harmony.awt.gl.MultiRectArea clip)
This method creates Graphics2D instance for specified native window.

param
win Native window to draw
param
translateX Translation along X axis
param
translateY Translation along Y axis
param
clip Clipping area for a new Graphics2D instance
return
New Graphics2D instance for specified native window
deprecated

public java.awt.Graphics2DgetGraphics2D(NativeWindow win, int translateX, int translateY, int width, int height)
This method creates Graphics2D instance for specified native window.

param
win Native window to draw
param
translateX Translation along X axis
param
translateY Translation along Y axis
param
width Width of drawing area
param
height Height of drawing area
return
New Graphics2D instance for specified native window

public java.awt.Graphics2DgetGraphics2D(android.graphics.Canvas c, android.graphics.Paint p)