This method of the Device Class retrieves the physical device size as a Dimension.
public Dimension getDeviceSize();
Returns a Dimension that defines the physical size of the device.