Hi Keith,
Keith Mayfield wrote:
After a user has selected some text on the JSVGCanvas, which api's would give me the text that has been selected. Some sample code would be great!!!
Well the short answer is that it isn't that easy :/
Probably the easiest thing to do is give yourself access to the TextSelectionManager in the JGVTComponent. then give yourself access to the textSelector in the TextSelectionManager, this would then allow you to register a SelectionListener to the canvas (this should probably be exposed on the canvas).
The selectionListener gets called with a SelectionEvent from which you can get the current Selection Object. I think this is currently an AttributedCharacterIterator but you can get just a string from that if you want.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]