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
public DisplayDevice(Graphics g) throws DeviceException;
Creates a display device object.
Parameter | Description |
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.
public int getBltAlignment();
Retrieves the blit alignment.
Return Value:
Returns the blit alignment.
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
|
public int getVerticalRefresh();
Retrieves the device vertical refresh rate.
Return Value:
Returns the vertical refresh rate (in MHz).