com.android.sdklib.devices
Class Screen

java.lang.Object
  extended by com.android.sdklib.devices.Screen

public class Screen
extends java.lang.Object


Constructor Summary
Screen()
           
 
Method Summary
 Screen deepCopy()
          Returns a copy of the object that shares no state with it, but is initialized to equivalent values.
 boolean equals(java.lang.Object o)
           
 int getChin()
          Get the "chin" height in pixels.
 double getDiagonalLength()
           
 com.android.resources.TouchScreen getMechanism()
           
 Multitouch getMultitouch()
           
 com.android.resources.Density getPixelDensity()
           
 com.android.resources.ScreenRatio getRatio()
           
 com.android.resources.ScreenRound getScreenRound()
           
 ScreenType getScreenType()
           
 com.android.resources.ScreenSize getSize()
           
 int getXDimension()
           
 double getXdpi()
           
 int getYDimension()
           
 double getYdpi()
           
 int hashCode()
           
 void setChin(int chin)
          Sets the "chin" height in pixels.
 void setDiagonalLength(double diagonalLength)
           
 void setMechanism(com.android.resources.TouchScreen mechanism)
           
 void setMultitouch(Multitouch m)
           
 void setPixelDensity(com.android.resources.Density pDensity)
           
 void setRatio(com.android.resources.ScreenRatio ratio)
           
 void setScreenRound(com.android.resources.ScreenRound screenRound)
           
 void setScreenType(ScreenType screenType)
           
 void setSize(com.android.resources.ScreenSize s)
           
 void setXDimension(int xDimension)
           
 void setXdpi(double xdpi)
           
 void setYDimension(int yDimension)
           
 void setYdpi(double ydpi)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Screen

public Screen()
Method Detail

getSize

public com.android.resources.ScreenSize getSize()

setSize

public void setSize(com.android.resources.ScreenSize s)

getDiagonalLength

public double getDiagonalLength()

setDiagonalLength

public void setDiagonalLength(double diagonalLength)

getPixelDensity

public com.android.resources.Density getPixelDensity()

setPixelDensity

public void setPixelDensity(com.android.resources.Density pDensity)

getRatio

public com.android.resources.ScreenRatio getRatio()

setRatio

public void setRatio(com.android.resources.ScreenRatio ratio)

getXDimension

public int getXDimension()

setXDimension

public void setXDimension(int xDimension)

getYDimension

public int getYDimension()

setYDimension

public void setYDimension(int yDimension)

getXdpi

public double getXdpi()

setXdpi

public void setXdpi(double xdpi)

getYdpi

public double getYdpi()

setYdpi

public void setYdpi(double ydpi)

getMultitouch

public Multitouch getMultitouch()

setMultitouch

public void setMultitouch(Multitouch m)

getMechanism

public com.android.resources.TouchScreen getMechanism()

setMechanism

public void setMechanism(com.android.resources.TouchScreen mechanism)

getScreenType

public ScreenType getScreenType()

setScreenType

public void setScreenType(ScreenType screenType)

getScreenRound

@Nullable
public com.android.resources.ScreenRound getScreenRound()

setScreenRound

public void setScreenRound(@Nullable
                           com.android.resources.ScreenRound screenRound)

getChin

public int getChin()
Get the "chin" height in pixels. This is for round screens with a flat section at the bottom. The "chin" height is the largest perpendicular distance from the flat section to the original circle.

Returns:
The offset in pixels.

setChin

public void setChin(int chin)
Sets the "chin" height in pixels.

See Also:
getChin()

deepCopy

public Screen deepCopy()
Returns a copy of the object that shares no state with it, but is initialized to equivalent values.

Returns:
A copy of the object.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object