FileDocCategorySizeDatePackage
HeadlessGraphicsEnvironment.javaAPI DocAndroid 1.5 API2466Wed May 06 22:41:54 BST 2009java.awt

HeadlessGraphicsEnvironment

public class HeadlessGraphicsEnvironment extends org.apache.harmony.awt.gl.CommonGraphicsEnvironment
The HeadlessGraphicsEnvironment class is the CommonGraphicsEnvironment implementation to use in the case where the environment lacks display, keyboard, and mouse support.
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public java.awt.GraphicsDevicegetDefaultScreenDevice()
Gets the default screen device as GraphicDevice object.

return
the GraphicDevice object which represents default screen device.
throws
HeadlessException if isHeadless() returns true.

        throw new HeadlessException();
    
public java.awt.GraphicsDevice[]getScreenDevices()
Gets an array of all available screen devices.

return
the array of GraphicsDevice objects which represents all available screen devices.
throws
HeadlessException if isHeadless() returns true.

        throw new HeadlessException();
    
public booleanisHeadlessInstance()
Returns whether or not a display, keyboard, and mouse are supported in this graphics environment.

return
true, if HeadlessException will be thrown from areas of the graphics environment that are dependent on a display, keyboard, or mouse, false otherwise.

        return true;