private double getAngle ( ServletRequest pRequest ) { // Get angle double angle = ServletUtil . getDoubleParameter ( pRequest , PARAM_TEXT_ROTATION , 0.0 ) ; // Convert to radians, if needed String units = pRequest . getParameter ( PARAM_TEXT_ROTATION_UNITS ) ; if ( ! StringUtil . isEmpty ( units ) && ROTATION_DEGREES . equalsIgnoreCase ( units ) ) { angle = Math . toRadians ( angle ) ; } return angle ; }
Gets the angle of rotation from the request .