private static int getHorizontalShadowColor ( final int elevation , @ NonNull final Orientation orientation , final boolean parallelLight ) { switch ( orientation ) { case TOP_LEFT : case TOP_RIGHT : return getShadowColor ( elevation , Orientation . TOP , parallelLight ) ; case BOTTOM_LEFT : case BOTTOM_RIGHT : return getShadowColor ( elevation , Orientation . BOTTOM , parallelLight ) ; default : throw new IllegalArgumentException ( "Invalid orientation: " + orientation ) ; } }
Returns the color of a shadow which is located next to a corner of an elevated view in horizontal direction .