I am generating some images using the Graphics2D interface, and occasionally I'd like to be able to draw some text on the image and apply to it effects like the ones in Adobe Photoshop.
Right now to generate a 'shadow' on the text I am drawing the text twice, once in the original color, and once in black with a slight (1px) x&y offset. Unfortunately this is overly simplistic as I need more control over the shadow (opacity,size, spread).
As for Inner Glows and Outer Glows, I am not really sure where to start; a mask/gradient paint/alpha blending?
Is there a Java library for producing these types of effects? If not how would you go about creating these effects?