This method of the Device Class retrieves the device aspect ratio in terms of a Dimension data type.
public Dimension getAspectRatio();
Returns a Dimension that defines the device aspect ratio.