Hello,

I've been using FlowText elements for some days in a Java application in
order to  build some kind of annotations. Here is a SVG fragment that
exemplifies how we use FlowText elements :

g id="TMANNOTATION1" cursor="move" transform="translate(200, 200)">
<rect x="0" y="0" cursor="pointer" fill="rgb(254,253,211)" width="400"
rx="3" ry="3" height="200" stroke="black" stroke-width="0.4"/>
<flowText xmlns="http://xml.apache.org/batik/ext"; fill="black"
font-weight="normal" font-size="50" id="TEXT">
<flowRegion vertical-align="middle">
<rect x="0" width="400" y="0" height="200"/>
</flowRegion>
<flowDiv id="DIV">
<flowPara id="PARA" justification="middle">
<flowLine id="LINE">TEXT</flowLine>
</flowPara>
</flowDiv>
</flowText>
</g>

Those annotations are modified dynamically, and well, everything's ok except
when modifying the justification attribute of the FlowPara element. In such
cases, the view is not updated in spite of the fact the SVG document is
modified.

I've made a small SVG file that exemplifies the problem (do not forget to
use the batik-squiggle-ext.jar, not the standard squiggle jar) :

http://www.nabble.com/file/p23197425/TEST.svg TEST.svg 

It contains a flow text element, as well as three texts to perform
modifications on the annotation :
- CHANGE TEXT modifies the text content of the FlowLine element on mouseover
: TEXT > NEW TEXT > TEXT...,
- JUSTIFICATION=START sets the justification attribute of the FlowPara
element to "start" on mouseover,
- JUSTIFICATION=END sets the justification attribute of the FlowPara element
to "end" on mouseover.

The "CHANGE TEXT" command works fine, contrary to the "JUSTIFICATION=START"
and "JUSTIFICATION=END" commands. Indeed, the view is not updated. However,
the SVG document is modified as expected, which can be brought into relief
by using the DOM viewer of Squiggle. It seems that the modification of the
justification attribute doe not trigger a graphical update. The modification
of the justification attribute only becomes visible after using the "CHANGE
TEXT" command.

Had anybody ever met such a situation?

Thanks a lot for your feedback.

Regards.

Romain.
-- 
View this message in context: 
http://www.nabble.com/FlowText-%3A-justification-attribute-problem-tp23197425p23197425.html
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to