Methods Summary |
---|
public int | getAvailableAcceleratedMemory()Returns the number of bytes available in accelerated memory on this
device.
return 0;
|
public abstract java.awt.GraphicsConfiguration[] | getConfigurations()Returns an array of GraphicsConfiguration objects associated with the
GraphicsDevice.
|
public abstract java.awt.GraphicsConfiguration | getDefaultConfiguration()Gets the default configuration for the GraphicsDevice.
|
public java.awt.DisplayMode | getDisplayMode()Gets the current display mode of the GraphicsDevice.
return displayMode;
|
public java.awt.DisplayMode[] | getDisplayModes()Gets an array of display modes available in this GraphicsDevice.
DisplayMode[] dms = {
displayMode
};
return dms;
|
public abstract java.lang.String | getIDstring()Gets the String identifier which associated with the GraphicsDevice in
the GraphicsEnvironment.
|
public abstract int | getType()Gets the type of this GraphicsDevice: TYPE_IMAGE_BUFFER, TYPE_PRINTER or
TYPE_RASTER_SCREEN.
|
public boolean | isDisplayChangeSupported()Returns true if this GraphicsDevice supports low-level display changes.
return false;
|
public boolean | isFullScreenSupported()Returns true if this GraphicsDevice supports full screen mode.
return false;
|
public void | setDisplayMode(java.awt.DisplayMode dm)Sets the display mode of this GraphicsDevice.
if (!isDisplayChangeSupported()) {
// awt.122=Does not support display mode changes
throw new UnsupportedOperationException(Messages.getString("awt.122")); //$NON-NLS-1$
}
DisplayMode[] dms = getDisplayModes();
for (DisplayMode element : dms) {
if (element.equals(dm)) {
displayMode = dm;
return;
}
}
// awt.123=Unsupported display mode: {0}
throw new IllegalArgumentException(Messages.getString("awt.123", dm)); //$NON-NLS-1$
|