https://issues.apache.org/bugzilla/show_bug.cgi?id=47436
--- Comment #1 from Thomas Deweese <[email protected]> 2009-06-29 02:56:09 PST --- (In reply to comment #0) > When setting node.setVisible(false), where node is an instance of > CompositeGraphicsNode, note is still painted. In the context of the SVG specification this statement is incorrect. Since a CompositeGraphicsNode (a 'g' element) has no content of it's own. What I believe you mean is that when setVisible(false) is called on a composite graphics node it's children are still painted - which is true and correct. > Proposed solution: > in file org/apache/batik/gvt/AbstractGraphicsNode.java add the following at > the > beginning of method "public void paint(Graphics2D g2d)": > > if (!isVisible()) > return; This would break the following SVG content: <g visibility="hidden"> <rect x="0" y="0" width="200" height="50" visibility="visible" fill="red"/> </g> I can understand that if you are using the GVT tree independent of SVG that this might be confusing. -- 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]
