Hi Phil,

"Phil Wright" <[EMAIL PROTECTED]> wrote on 11/19/2006 03:43:49 PM:

> In the SVG 1.2 specs ( 
http://www.w3.org/TR/2004/WD-SVG12-20041027/text.html )
> there is mention of Editable Text Fields for "text" and "flowDiv" 
elements. 
> 
> Does Batik support this?

   No and the WG has moved in a different direction.  They still suggest
the use of the 'editable' attribute for text fields but all the flow
stuff is out the window.

> If Batik doesn't support editable text elements can someone point me in 
a 
> direction for providing editable text elements in a presented SVG 
document? 
> Is there any example code out there for dynamically modifying a 
displated 
> textelement? 

   There might be, but I don't know of any off the top of my
head.  Providing an editable text element in SVG would be
a fairly large amount of script work, especially if you
wanted to support cut and paste, selection etc.  The TextContent
interfaces probably give you everything you need but it
would be a lot of work.

   What would be a lot easier would be to take the text and
put it in a JTextArea component.  When the user signals they
are done (perhaps by clicking outside the TextArea component)
the contents of the edited text element would be replaced.
In earlier drafts this would even be a conformant implementation
(the editing did not need to be 'live').


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

Reply via email to