Thanks a lot, Lewis,
that looks pretty much like I thought it would.
However, what's the xml:space attribute for?

Also, which namespace do I have to operate in?
Using "http://www.w3.org/2000/svg"; produces odd errors,
but maybe I'm (once again) missing something during the
conversion from dom4j to W3C DOM.

-Urs


Lewis Keen wrote:
Urs,

I used the following snippet in my recent project:

<flowRoot id="helpFlow" pointer-events="none" xml:space="preserve">
    <flowRegion>
        <rect x="10" y="50" width="780" height="400" fill="none"/>
    </flowRegion>
    <flowDiv id="helpBody">
        <flowPara font-size="12" fill="white">This is an example of using
flowRoot in order to word wrap paragraphs</flowPara>
    </flowDiv>
</flowRoot>

The flowRegion specifies the region that the text is to be displayed
in. The flowDiv then specifies the text to be displayed, with
flowParas specifying each paragraph. This is a very basic example and
was derived from the SVG spec. I use this with Batik and seems to work
ok.

As an extra thing I modified the number of flowParas attached to the
flowDiv in my java code. I used this for displaying my help pages, and
an example of this can be found at
http://www.yeggstry.com/poker/poker_help.jpg

Hope this helps,

Lewis Keen

On 5/18/06, Urs Reupke <[EMAIL PROTECTED]> wrote:
Hello,

I was wondering about how to use flowtext, and whether
to use the SVG 1.2 version or Batik's own.
What are the differences between the two, and what pitfalls
are there with each of them?

Most importantly, however: Is there any documentation how to
use Batik flowtext apart from the examples available in SVN?
 From what I've seen there, the basic declaration is a "flowtext",
with a single "flowregion" as well as a "flowdiv" containing a "flowpara"?

Thank you
-Urs

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to