We are providing users option to make figures drawn on canvas transparent. To achieve this we are using method setAlpha(0). But this makes figure completely invisible.
Our requirement is that outline / border should be shown on transparent figures if user wishes to have borders.
We tried using method setOpaque(false). But it does not work. We are using Ubuntu 9.1 OS.
Any suggestion to achieve this will be really helpful.
Regards, Pankaj Sharma
You could extend the
Shape
you are using like this:This way you can set the alpha value for the filling independently of the outline.