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

           Summary: setOpaque(false) not honoured
           Product: Batik
           Version: 1.7
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: GVT
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


JSVGCanvas and JSVGComponent ignore setOpaque() and always draw a background

I think it's becuase
AbstractJGVTComponent.paintComponent
always does this...

g2d.setComposite(AlphaComposite.SrcOver);
g2d.setPaint(getBackground());
g2d.fillRect(visRect.x,     visRect.y,
             visRect.width, visRect.height);

but perhaps this should be wrapped in a isOpaque check?

if{isOpqaue())
{
g2d.setComposite(AlphaComposite.SrcOver);
g2d.setPaint(getBackground());
g2d.fillRect(visRect.x,     visRect.y,
             visRect.width, visRect.height);
}

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));


-- 
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