You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2009/06/26 20:14:00 UTC

DO NOT REPLY [Bug 47436] New: Changing visibility for CompositeGraphicsNode does not work

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

           Summary: Changing visibility for CompositeGraphicsNode does not
                    work
           Product: Batik
           Version: 1.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: GVT
        AssignedTo: batik-dev@xmlgraphics.apache.org
        ReportedBy: boris.kolar.mail@gmail.com


When setting node.setVisible(false), where node is an instance of
CompositeGraphicsNode, note is still painted.

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;

-- 
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: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 47436] Changing visibility for CompositeGraphicsNode does not work

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47436


Thomas Deweese <de...@apache.org> changed:

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




--- Comment #2 from Thomas Deweese <de...@apache.org>  2009-06-29 02:56:50 PST ---
Setting bug status.

-- 
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: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 47436] Changing visibility for CompositeGraphicsNode does not work

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47436





--- Comment #1 from Thomas Deweese <de...@apache.org>  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: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org