English | Site Directory

Android - An Open Handset Alliance Project

android.awt
public class

android.awt.AndroidGraphicsConfiguration

java.lang.Object
java.awt.GraphicsConfiguration
android.awt.AndroidGraphicsConfiguration

Summary

Public Constructors

          AndroidGraphicsConfiguration()

Public Methods

        BufferedImage  createCompatibleImage(int width, int height)
Creates BufferedImage image object with a data layout and color model compatible with this GraphicsConfiguration with specified width and height parameters.
        BufferedImage  createCompatibleImage(int width, int height, int transparency)
Creates a BufferedImage that has the specified width, height, transparency and has a data layout and color model compatible with this GraphicsConfiguration.
        VolatileImage  createCompatibleVolatileImage(int width, int height, int transparency)
Creates a VolatileImage that supports the specified width, height, transparency and has a data layout and color model compatible with this GraphicsConfiguration.
        VolatileImage  createCompatibleVolatileImage(int width, int height)
Creates a VolatileImage that has the specified width and height and has a data layout and color model compatible with this GraphicsConfiguration.
        Rectangle  getBounds()
Gets the bounds of area covered by the GraphicsConfiguration in the device coordinates space.
        ColorModel  getColorModel(int transparency)
Gets the ColorModel of the GraphicsConfiguration which supports specified Transparency.
        ColorModel  getColorModel()
Gets the ColorModel of the GraphicsConfiguration.
        AffineTransform  getDefaultTransform()
Gets the default AffineTransform of the GraphicsConfiguration.
        GraphicsDevice  getDevice()
Gets the GraphicsDevice of the GraphicsConfiguration.
        AffineTransform  getNormalizingTransform()
Gets the normalizing AffineTransform of the GraphicsConfiguration.
Methods inherited from class java.awt.GraphicsConfiguration
Methods inherited from class java.lang.Object

Details

Public Constructors

public AndroidGraphicsConfiguration()

Public Methods

public BufferedImage createCompatibleImage(int width, int height)

Creates BufferedImage image object with a data layout and color model compatible with this GraphicsConfiguration with specified width and height parameters.

Parameters

width the width of BufferedImage.
height the height of BufferedImage.

public BufferedImage createCompatibleImage(int width, int height, int transparency)

Creates a BufferedImage that has the specified width, height, transparency and has a data layout and color model compatible with this GraphicsConfiguration.

Parameters

width the width of image.
height the height of image.
transparency the transparency mode.

public VolatileImage createCompatibleVolatileImage(int width, int height, int transparency)

Creates a VolatileImage that supports the specified width, height, transparency and has a data layout and color model compatible with this GraphicsConfiguration.

Parameters

width the width of image.
height the height of image.
transparency the transparency mode.

public VolatileImage createCompatibleVolatileImage(int width, int height)

Creates a VolatileImage that has the specified width and height and has a data layout and color model compatible with this GraphicsConfiguration.

Parameters

width the width of image.
height the height of image.

public Rectangle getBounds()

Gets the bounds of area covered by the GraphicsConfiguration in the device coordinates space.

public ColorModel getColorModel(int transparency)

Gets the ColorModel of the GraphicsConfiguration which supports specified Transparency.

Parameters

transparency the Transparency mode: OPAQUE, BITMASK, or TRANSLUCENT.

public ColorModel getColorModel()

Gets the ColorModel of the GraphicsConfiguration.

public AffineTransform getDefaultTransform()

Gets the default AffineTransform of the GraphicsConfiguration. This method translates user coordinates to device coordinates.

public GraphicsDevice getDevice()

Gets the GraphicsDevice of the GraphicsConfiguration.

public AffineTransform getNormalizingTransform()

Gets the normalizing AffineTransform of the GraphicsConfiguration.
Build m5-rc15i - 10 Jun 2008 13:54