com.android.sdklib.devices
Class Screen
java.lang.Object
com.android.sdklib.devices.Screen
public class Screen
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Screen
public Screen()
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