gnu.awt.xlib

Class XGraphicsDevice


public class XGraphicsDevice
extends GraphicsDevice

Field Summary

Fields inherited from class java.awt.GraphicsDevice

TYPE_IMAGE_BUFFER, TYPE_PRINTER, TYPE_RASTER_SCREEN

Constructor Summary

XGraphicsDevice(int id, XToolkit toolkit)

Method Summary

GraphicsConfiguration[]
getConfigurations()
Return all configurations valid for this device.
GraphicsConfiguration
getDefaultConfiguration()
Return the default configuration for this device.
String
getIDstring()
Returns an identification string for the device.
int
getType()
Returns the type of the device.
boolean
isDisplayChangeSupported()
Returns whether this device supports low-level display changes.
boolean
isFullScreenSupported()
Returns true if the device supports full-screen exclusive mode.

Methods inherited from class java.awt.GraphicsDevice

getAvailableAcceleratedMemory, getBestConfiguration, getConfigurations, getDefaultConfiguration, getDisplayMode, getDisplayModes, getFullScreenWindow, getIDstring, getType, isDisplayChangeSupported, isFullScreenSupported, setDisplayMode, setFullScreenWindow

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

XGraphicsDevice

public XGraphicsDevice(int id,
                       XToolkit toolkit)

Method Details

getConfigurations

public GraphicsConfiguration[] getConfigurations()
Return all configurations valid for this device.
Overrides:
getConfigurations in interface GraphicsDevice
Returns:
an array of configurations

getDefaultConfiguration

public GraphicsConfiguration getDefaultConfiguration()
Return the default configuration for this device.
Overrides:
getDefaultConfiguration in interface GraphicsDevice
Returns:
the default configuration

getIDstring

public String getIDstring()
Returns an identification string for the device. This can be vendor-specific, and may be useful for debugging.
Overrides:
getIDstring in interface GraphicsDevice
Returns:
the identification

getType

public int getType()
Returns the type of the device.
Overrides:
getType in interface GraphicsDevice
Returns:
the device type

isDisplayChangeSupported

public boolean isDisplayChangeSupported()
Returns whether this device supports low-level display changes. This may depend on whether full-screen exclusive mode is available. XXX The default implementation returns false for now.
Overrides:
isDisplayChangeSupported in interface GraphicsDevice
Returns:
true if display changes are supported
Since:
1.4

isFullScreenSupported

public boolean isFullScreenSupported()
Returns true if the device supports full-screen exclusive mode. The default implementation returns true; subclass it if this is not the case.
Overrides:
isFullScreenSupported in interface GraphicsDevice
Returns:
true if full screen support is available
Since:
1.4

Copyright (C) 2005 Free Software Foundation This file is part of libgcj. This software is copyrighted work licensed under the terms of the Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details.