private static float getCornerAngle ( @ NonNull final Orientation orientation ) { switch ( orientation ) { case TOP_LEFT : return QUARTER_ARC_DEGRESS * 2 ; case TOP_RIGHT : return QUARTER_ARC_DEGRESS * 3 ; case BOTTOM_LEFT : return QUARTER_ARC_DEGRESS ; case BOTTOM_RIGHT : return 0 ; default : throw new IllegalArgumentException ( "Invalid orientation: " + orientation ) ; } }
Returns the angle which should be used to draw a shadow which is located at a corner of an elevated view .