Factorized check for transparent colors out of gradient-handling code


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609516 13f79535-47bb-0310-9956-ffa450edef68