Build 1.0_r1(from source)

android.view
Class Display

java.lang.Object
  extended by android.view.Display

public class Display
extends Object


Field Summary
static int DEFAULT_DISPLAY
          Specify the default Display
 
Constructor Summary
Display(int display)
          Use the WindowManager interface to create a Display object.
 
Method Summary
(package private) static int getDisplayCount()
           
 int getDisplayId()
           
 int getHeight()
           
 void getMetrics(DisplayMetrics outMetrics)
          Initialize a DisplayMetrics object from this display's data.
 int getOrientation()
           
 int getPixelFormat()
           
 float getRefreshRate()
           
 int getWidth()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DISPLAY

public static final int DEFAULT_DISPLAY
Specify the default Display

See Also:
Constant Field Values
Constructor Detail

Display

Display(int display)
Use the WindowManager interface to create a Display object. Display gives you access to some information about a particular display connected to the device.

Method Detail

getDisplayId

public int getDisplayId()
Returns:
index of this display.

getDisplayCount

static int getDisplayCount()
Returns:
the number of displays connected to the device.

getWidth

public int getWidth()
Returns:
width of this display in pixels.

getHeight

public int getHeight()
Returns:
height of this display in pixels.

getOrientation

public int getOrientation()
Returns:
orientation of this display.

getPixelFormat

public int getPixelFormat()
Returns:
pixel format of this display.

getRefreshRate

public float getRefreshRate()
Returns:
refresh rate of this display in frames per second.

getMetrics

public void getMetrics(DisplayMetrics outMetrics)
Initialize a DisplayMetrics object from this display's data.

Parameters:
outMetrics -

Build 1.0_r1(from source)

Please submit a feedback, bug or feature