public void setRotation ( String rotation ) { if ( rotation != null ) { try { setRotation ( Integer . parseInt ( rotation ) ) ; } catch ( NumberFormatException e ) { setRotation ( - 1 ) ; } } }
Set the degrees of rotation . Value will be set to - 1 if not available .