I want to be able to partially fill a shape at the specified position...is this possible?
Currently I need this for partially filling a rounded Rectangle2D shape. I want to do something like this picture I created: http://i394.photobucket.com/albums/pp23/Z-Knight-Z/partial_fill.jpg In this picture you see left side of the rounded rectangle is gray while the right side is yellow...how can I do this in Java 2D? It would be perfect if I could draw the rounded rectangle with one end of it being flat (ie, not rounded) but I don't believe this is possible. So the other thought I had was using Gradient color, but I don't want a transition from gray to yellow (or whatever color). The other thought I had is to apply some kind of mask and I'm searching for info on this topic...does anyone have other suggestions? [Message sent by forum member 'zaczek' (zaczek)] http://forums.java.net/jive/thread.jspa?messageID=331833 =========================================================================== To unsubscribe, send email to lists...@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to lists...@java.sun.com and include in the body of the message "help".