Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.awt   Previous This
Package
Next

 


Class DisplayDevice

public class DisplayDevice extends Device
{
  // Constructors
  public DisplayDevice(Graphics g) throws DeviceException;

  // Methods
  public int getBltAlignment();
  public Dimension getDesktopResolution();
  public int getVerticalRefresh();
}

This class handles display devices.

Device
  |
  +--DisplayDevice

Constructors

DisplayDevice

public DisplayDevice(Graphics g) throws DeviceException;

Creates a display device object.

ParameterDescription
g The graphics object that the device is created for.

Exceptions:

com.ms.awt.DeviceException if the graphics object is not an instance of the FxGraphics or the GraphicsX class.

Methods

getBltAlignment

public int getBltAlignment();

Retrieves the blit alignment.

Return Value:

Returns the blit alignment.

getDesktopResolution

public Dimension getDesktopResolution();

Retrieves the display device desktop resolution.

Return Value:

Returns the dimensions of the desktop resolution. This is commonly one of the resolutions shown in the following table.
480 x 640, 600 x 800, 768 x 1024, 864 x 1152, or 1024 x 1280

getVerticalRefresh

public int getVerticalRefresh();

Retrieves the device vertical refresh rate.

Return Value:

Returns the vertical refresh rate (in MHz).

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.