xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakub W. Jozwicki <jakub...@go2.pl>
Subject changing text inside flowPara
Date Sun, 04 Dec 2005 03:26:20 GMT
I've got SVG document with content:

 <g
     id="infoBaloonContainer">
    <rect
       rx="2.0480058"
       ry="3.774688"
       y="650"
       x="220"
       height="100"
       width="600"
       id="rect13884"
      
style="text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;opacity:1;fill:#ffffe1;fill-opacity:0.0893617;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.94295299;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:0.22978723;display:block"
       inkscape:label="#rect13884" />
       
    <flowText font-size="12" fill="white" xml:space="preserve"
xmlns="http://xml.apache.org/batik/ext">
        <flowRegion>
	        <rect x="220"  y="650" width="600" height="100"/>
	    </flowRegion>
       
        <flowDiv>
	        <flowPara id="infoBaloon" margin="10"
justification="full">SOME_TEXT_HERE</flowPara>
	    </flowDiv>
    </flowText>    
  </g>

and Java code to change it:

setInfoText(String text)
{
	svg.getElementById("infoBaloon").setTextContent(text);	
}

After setInfoText, getTextContent shows that the text is changed in
DOM tree, however the change is not visible looking at JSVGCanvas.

I can call setInfo text inside new Runnable passed to
canvas.getUpdateManager().getUpdateRunnableQueue().invokeLater(),
but there is no difference.

Am I doing it in a wrong way?

Regards,
Jakub


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message