Register Listeners before adding Document to Canvas

2005-02-07 Thread Andres Toussaint
I want to know if there is any problem in adding my EventListeners to specific Nodes before setting the document in the canvas. I am building a SVGDocument programatically and then adding it to a JSVGCanvas with svgCanvas.setDocument(). And i would like to initialize my listeners during the ini

Re: Register Listeners before adding Document to Canvas

2005-02-07 Thread Thomas DeWeese
Hi Andres, Andres Toussaint wrote: I want to know if there is any problem in adding my EventListeners to specific Nodes before setting the document in the canvas. I don't believe so. I am building a SVGDocument programatically and then adding it to a JSVGCanvas with svgCanvas.setDocument(). An

Re: Batik Performance Questions

2005-02-07 Thread Steven Huey
Thanks George. I'll let you know if I ever get to the bottom of this. - Steve On Feb 6, 2005, at 6:27 AM, George Armhold wrote: Steven Huey wrote: > Here are the results (all times in seconds): > > = PowerBook = > Load Document: 10.762 > Build GVT Tree: 7.371 > Prepare to Render: 8.912 > Render: 11

Question: How do I capture the mouse click event prior to loading a link associated SVG File

2005-02-07 Thread Pramod Kalapa
Hopefully I am explaining my requirement right (I am new to Batik)... I have an SVG document loaded into the JSVGCanvas. I want to capture the generated event on clicking with the mouse before the JSVGCanvas loads the SVG file associated with the link: i.e., I need to do some processing to decid

How do get the text that has been highligted

2005-02-07 Thread Keith Mayfield
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!!! Thanx __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://

Re: Batik Performance Questions

2005-02-07 Thread Thomas DeWeese
Hi Steven, Yes, I've been aware that drawing on Mac OS X is much slower although I must admit that I am very surprised at the difference you are seeing (although the example seems to be a fairly extreme one). The first thing I would try is adjusting the format of the Buffered Image created by

Re: Question: How do I capture the mouse click event prior to loading a link associated SVG File

2005-02-07 Thread Thomas DeWeese
Hi Pramod, You need to register an onclick mouse listener during the "capture" phase of DOM event dispatch. Then if you decide you don't want the document opened you can call 'preventDefault' on the event passed into your handler to prevent it from activating the link (this part might only work

Re: How do get the text that has been highligted

2005-02-07 Thread Thomas DeWeese
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

Re: small patch for custom cursors

2005-02-07 Thread Thomas DeWeese
Hi George, First the formalities, do you have a CLA[*] on file with Apache? I just checked and I didn't see your name. George Armhold wrote: There currently seems to be no way to replace the "default" cursor in the canvas; it can be replaced temporarily via UserAgent.setSVGCursor(), but the Bri

Re: Mix SVG with Swing - Swing GraphicsNode?

2005-02-07 Thread Lukasz Matuszczak
- Original Message - From: "Thomas DeWeese" <[EMAIL PROTECTED]> To: "Batik Users" Sent: Tuesday, January 18, 2005 1:54 PM Subject: Re: Mix SVG with Swing - Swing GraphicsNode? Thank you very much for Your answers, Thomas. I am new to the batik project and i'm really impressed with such a