You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by th...@kodak.com on 2007/11/06 11:53:01 UTC

Re: changing a textpath

Hi Amanda,

"Amanda Fernandez Redondo" <ja...@gmail.com> wrote on 10/28/2007 
08:22:48 AM:

> I'm working in an aplication in which I need to manage graphs. I
> can paint nodes and edges, and I put text above them. I write the 
> text from the edges in a textpath, wich "d" argument is just a line 
> fromo the first node to the second. But when I move an edge, I 
> change the path (I have checked the "d" new value and it's ok) but 
> the text does not move in the canvas. I put this code in a runnable 
> threar, but it doesnt move anyway. 

   If the textpath references a path element through an xlink:href
then likely Batik doesn't detect the change to the path element.
You will unfortunately need to 'twiddle' the textpath element 
directly for Batik to notice that it needs to be updated.