Microsoft SDK for Java

Device Class Methods

The Device Class contains the following methods:

getAspectRatio retrieves the device aspect ratio in terms of a Dimension data type.
getAspectRatioXY retrieves the device aspect ratio in terms of an integer.
getBasics retrieves the basic information set (common to all devices types) from the native system.
getBitsPerPixel retrieves the device number of bits per pixel.
getClipCapabilities retrieves the clipping capabilities of the device.
getColorResolution retrieves a device's color resolution.
getCurveCapabilities retrieves the curve capabilities of the device.
getDeviceFromGraphics retrieves a device, given a graphics context.
getDeviceSize retrieves the physical device size as a Dimension.
getDisplayContext retrieves a display context usable on the device.
getDriverVersion retrieves the device driver version number.
getLineCapabilities retrieves the line capabilities of the device.
getLogicalPixelsPerInch retrieves a device's logical pixels per inch.
getNumberOfBrushes retrieves the number of brushes used by the device.
getNumberOfColors retrieves the number of colors used by the device.
getNumberOfFonts retrieves the number of fonts used by the device.
getNumberOfMarkers retrieves the number of markers used by the device.
getNumberOfPens retrieves the number of pens used by the device.
getPaletteReserved retrieves a reserved device palette.
getPaletteSize retrieves a device palette size.
getPixelRes retrieves the device's pixel resolution (in pixels per inch).
getPlanes retrieves the number of planes used by the device.
getPolygonCapabilities retrieves the polygon capabilities of the device.
getRasterCapabilities retrieves the device raster capabilities.
getTechnology retrieves the device technology.
getTextCapabilities retrieves the text capabilities of the device.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.