List Info

Thread: Repainting of GVT Tree




Repainting of GVT Tree
country flaguser name
United States
2007-10-01 05:22:26
I am doing an animation operation upon some svg rectangles.

In order to achieve better performance,  i am directly
modifying the GVT
Tree "Inside the UpdateManager's thread", however
the when i move an
external window over the svg canvas, the GVT tree does not
repaint itself.
All of the contents which i draw using GVT nodes are erased.
I suspect that
we need to do some sort of repainting which is not required
when we do
changes through DOM.

How does the repainting of GVT tree work? 
How can i make changes to the GVT persistent?

Naveed
-- 
View this message in context: http://www.nabble.com/Repainting-of-GVT-Tre
e-tf4547419.html#a12976561
Sent from the Batik - Users mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-users-helpxmlgraphics.apache.org


Re: Repainting of GVT Tree
country flaguser name
United States
2007-10-04 07:20:20

Hi Naveed,

noni_4444 <naveed.0972gmail.com&gt; wrote on 10/01/2007 06:22:26 AM:

&gt; In order to achieve better performance,  i am directly modifying the GVT
> Tree "Inside the UpdateManager's thread&quot;, however the when i move an
> external window over the svg canvas, the GVT tree does not repaint itself.

   Right the canvas uses it's offscreen buffer to update the screen.

> All of the contents which i draw using GVT nodes are erased. I suspect that
>; we need to do some sort of repainting which is not required when we do
&gt; changes through DOM.

   Well none of your changes are persisted anywhere, they only exist while
you are doing the actual drawing.  If you updated the transform/coords of
the Graphics Node then you wouldn't need to do any drawing and everything
would happen correctly.

> How does the repainting of GVT tree work?

   When a GraphicsNode is changed it registers a dirty region with
the UpdateTracker which the UpdateManager then uses to know what
regions of an offscreen buffer need to be repainted by the GVT tree...

> How can i make changes to the GVT persistent?

   Actually change the GVT by calling one or more of the
'setXXX' methods on the GraphicsNodes.
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )