Java Doc for Win32GraphicsDevice.java in » 6.0-JDK-Platform » windows » sun » awt » Java Source Code / Java DocumentationJava Source Code and Java Documentation
public class Win32GraphicsDevice extends GraphicsDevice implements DisplayChangedListener(Code)
This is an implementation of a GraphicsDevice object for a single
Win32 screen.
See Also:GraphicsEnvironment See Also:GraphicsConfiguration version: 10 Feb 1997
getDefaultConfiguration() Returns the default graphics configuration
associated with this graphics device.
protected int
getDefaultPixID(int screen) Returns the PixelFormatID of the default graphics configuration
associated with this graphics device, or 0 if PixelFormats calls fail or
are disabled.
isFullScreenSupported() We support the exclusive fullscreen mode in both ddraw and
noddraw modes, so we return true unless we're not allowed to use
fullscreen mode.
public boolean
isOffscreenAccelerationEnabled() Acceleration can be disabled due to capabilities of the display
device discovered during ddraw initialization.
native protected boolean
isPixFmtSupported(int index, int screen) Returns whether or not the PixelFormat indicated by index is
supported.
boolean
isValid() Returns whether this is a valid devicie.
Returns the maximum number of graphics configurations available, or 1
if PixelFormat calls fail or are disabled.
This number is less than or equal to the number of graphics
configurations supported.
We support the exclusive fullscreen mode in both ddraw and
noddraw modes, so we return true unless we're not allowed to use
fullscreen mode.
isOffscreenAccelerationEnabled
public boolean isOffscreenAccelerationEnabled()(Code)
Acceleration can be disabled due to capabilities of the display
device discovered during ddraw initialization. This is not the
same as isDDEnabledOnDevice(), which returns false when ddraw
was disabled by the user or had problems initializing.
isPixFmtSupported
native protected boolean isPixFmtSupported(int index, int screen)(Code)
Returns whether or not the PixelFormat indicated by index is
supported. Supported PixelFormats support drawing to a Window
(PFD_DRAW_TO_WINDOW), support GDI (PFD_SUPPORT_GDI), and in the
case of an 8-bit format (cColorBits <= 8) uses indexed colors
(iPixelType == PFD_TYPE_COLORINDEX).
We use the index 0 to indicate that PixelFormat calls don't work, or
are disabled. Do not call this function with an index of 0.
Parameters: index - a PixelFormat index