The mapping between nodes and elements is maintained in the BridgeContext. (BridgeContext.getElement (GraphicNode aNode).

Bibek Sahu wrote:
Howdy all,

I'm currently working on an SVG editor based on Batik, as part of some
educational software.  Currently, I'm trying to figure out some stuff about
editing text.

What I'm wondering is: how do I modify formatted text inside an SVG, from
Java code?

The reason I'm stuck is because when working with GraphicsNodes (TextNodes,
specifically), only one is accessible for an entire text element, even when
that text element contains sub-elements (textPath, tspan, tref, etc.).  I
can use TextNode.getTextRuns() to get the list broken down as a list of
StrokedTextPainter.TextRun objects, which is sufficient for displaying them,
but as near as I can tell there's no way to get the SVGElements which
they're tied to (which is necessary to manipulate them).

Am I barking up the wrong tree?  Should I be watching for DOM events
instead?

Any help would be greatly appreciated.

Thanks!

- Bibek


--------------------------------------------------------------------- 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