APIdia Launch Partner
Top Fields Constructors Methods
sun.print

public final Class PrinterGraphicsDevice

extends GraphicsDevice
Class Inheritance
Imports
java.awt.GraphicsConfiguration, .GraphicsDevice, .Window

Field Summary

Modifier and TypeField and Description
private final GraphicsConfiguration
private final String
Inherited from java.awt.GraphicsDevice:
TYPE_IMAGE_BUFFERTYPE_PRINTERTYPE_RASTER_SCREEN

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public GraphicsConfiguration[]
getConfigurations()

Implements abstract java.awt.GraphicsDevice.getConfigurations.

Returns all of the GraphicsConfiguration objects associated with this GraphicsDevice.

public GraphicsConfiguration
getDefaultConfiguration()

Implements abstract java.awt.GraphicsDevice.getDefaultConfiguration.

Returns the default GraphicsConfiguration associated with this GraphicsDevice.

public Window
getFullScreenWindow()

Overrides java.awt.GraphicsDevice.getFullScreenWindow.

Returns the Window object representing the full-screen window if the device is in full-screen mode.

public String
getIDstring()

Implements abstract java.awt.GraphicsDevice.getIDstring.

Returns the identification string associated with this GraphicsDevice.

public int
getType()

Implements abstract java.awt.GraphicsDevice.getType.

Returns the type of this GraphicsDevice.

public void
setFullScreenWindow(Window w)

Overrides java.awt.GraphicsDevice.setFullScreenWindow.

Enter full-screen mode, or return to windowed mode.

Inherited from java.awt.GraphicsDevice:
getAvailableAcceleratedMemorygetBestConfigurationgetDisplayModegetDisplayModesisDisplayChangeSupportedisFullScreenSupportedisWindowTranslucencySupportedsetDisplayMode

Field Detail

configback to summary
private final GraphicsConfiguration config
printerIDback to summary
private final String printerID

Constructor Detail

PrinterGraphicsDeviceback to summary
pack-priv PrinterGraphicsDevice(GraphicsConfiguration conf, String id)

Method Detail

getConfigurationsback to summary
public GraphicsConfiguration[] getConfigurations()

Implements abstract java.awt.GraphicsDevice.getConfigurations.

Doc from java.awt.GraphicsDevice.getConfigurations.

Returns all of the GraphicsConfiguration objects associated with this GraphicsDevice.

Annotations
@Override
getDefaultConfigurationback to summary
public GraphicsConfiguration getDefaultConfiguration()

Implements abstract java.awt.GraphicsDevice.getDefaultConfiguration.

Doc from java.awt.GraphicsDevice.getDefaultConfiguration.

Returns the default GraphicsConfiguration associated with this GraphicsDevice.

Annotations
@Override
getFullScreenWindowback to summary
public Window getFullScreenWindow()

Overrides java.awt.GraphicsDevice.getFullScreenWindow.

Doc from java.awt.GraphicsDevice.getFullScreenWindow.

Returns the Window object representing the full-screen window if the device is in full-screen mode.

Annotations
@Override
getIDstringback to summary
public String getIDstring()

Implements abstract java.awt.GraphicsDevice.getIDstring.

Doc from java.awt.GraphicsDevice.getIDstring.

Returns the identification string associated with this GraphicsDevice.

A particular program might use more than one GraphicsDevice in a GraphicsEnvironment. This method returns a String identifying a particular GraphicsDevice in the local GraphicsEnvironment. Although there is no public method to set this String, a programmer can use the String for debugging purposes. Vendors of the Java Runtime Environment can format the return value of the String. To determine how to interpret the value of the String, contact the vendor of your Java Runtime. To find out who the vendor is, from your program, call the getProperty method of the System class with "java.vendor".

Annotations
@Override
getTypeback to summary
public int getType()

Implements abstract java.awt.GraphicsDevice.getType.

Doc from java.awt.GraphicsDevice.getType.

Returns the type of this GraphicsDevice.

Annotations
@Override
setFullScreenWindowback to summary
public void setFullScreenWindow(Window w)

Overrides java.awt.GraphicsDevice.setFullScreenWindow.

Doc from java.awt.GraphicsDevice.setFullScreenWindow.

Enter full-screen mode, or return to windowed mode. The entered full-screen mode may be either exclusive or simulated. Exclusive mode is only available if isFullScreenSupported returns true.

Exclusive mode implies:

  • Windows cannot overlap the full-screen window. All other application windows will always appear beneath the full-screen window in the Z-order.
  • There can be only one full-screen window on a device at any time, so calling this method while there is an existing full-screen Window will cause the existing full-screen window to return to windowed mode.
  • Input method windows are disabled. It is advisable to call Component.enableInputMethods(false) to make a component a non-client of the input method framework.

The simulated full-screen mode places and resizes the window to the maximum possible visible area of the screen. However, the native windowing system may modify the requested geometry-related data, so that the Window object is placed and sized in a way that corresponds closely to the desktop settings.

When entering full-screen mode, if the window to be used as a full-screen window is not visible, this method will make it visible. It will remain visible when returning to windowed mode.

When entering full-screen mode, all the translucency effects are reset for the window. Its shape is set to null, the opacity value is set to 1.0f, and the background color alpha is set to 255 (completely opaque). These values are not restored when returning to windowed mode.

It is unspecified and platform-dependent how decorated windows operate in full-screen mode. For this reason, it is recommended to turn off the decorations in a Frame or Dialog object by using the setUndecorated method.

When returning to windowed mode from an exclusive full-screen window, any display changes made by calling setDisplayMode are automatically restored to their original state.

Annotations
@Override