https://issues.apache.org/bugzilla/show_bug.cgi?id=46353


Thomas Deweese <[EMAIL PROTECTED]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Thomas Deweese <[EMAIL PROTECTED]>  2008-12-05 18:01:35 PST 
---
(In reply to comment #0)
> JSVGCanvas and JSVGComponent ignore setOpaque() and always draw a background

  Correct it always draws the background color you tell it to.
There is no reason that setOpaque should disable this, the
background color may be semi-transparent.

> but perhaps this should be wrapped in a isOpaque check?

  No.

> current workaround (which maybe processor heavy) is to set the component
> background to a color with a alpha channel set to 0 (e.g. setBackground(new
> Color(0,0,0,0));

   This is the correct solution.  I'd be suprised if it was processor 
intensive as the Graphics2D engine almost certainly will skip actually
drawing the rect if the color has an opacity of zero.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to