FileDocCategorySizeDatePackage
WindowAlignment.javaAPI DocAndroid 5.1 API10495Thu Mar 12 22:22:56 GMT 2015android.support.v17.leanback.widget

WindowAlignment

public class WindowAlignment extends Object
Maintains Window Alignment information of two axis.

Fields Summary
private int
mOrientation
public final Axis
vertical
public final Axis
horizontal
private Axis
mMainAxis
private Axis
mSecondAxis
Constructors Summary
Methods Summary
public final intgetOrientation()

        return mOrientation;
    
public final android.support.v17.leanback.widget.WindowAlignment$AxismainAxis()


        
        return mMainAxis;
    
public final voidreset()

        mainAxis().reset();
    
public final android.support.v17.leanback.widget.WindowAlignment$AxissecondAxis()

        return mSecondAxis;
    
public final voidsetOrientation(int orientation)

        mOrientation = orientation;
        if (mOrientation == HORIZONTAL) {
            mMainAxis = horizontal;
            mSecondAxis = vertical;
        } else {
            mMainAxis = vertical;
            mSecondAxis = horizontal;
        }
    
public java.lang.StringtoString()

        return new StringBuffer().append("horizontal=")
                .append(horizontal.toString())
                .append("; vertical=")
                .append(vertical.toString())
                .toString();