Add Convenience Methods For Orientations (P3)

adds methods isVertical() and isHorizontal() for linear layouts and grid
layouts

patch 2: removes use of 'this'

patch 3: use two space indents, instead of tabs