RE: createElementNS and and getComputedTextLength()

2002-03-23 Thread David Eason
Looked through the code you suggested and also JSVGComponent.java. Just want to clarify my understanding of the bridge workaround to get a text string pixel width. Tell me where I am right and wrong in my assumptions. I am currently assuming the following: 1. that I need to use the constructor

RE: createElementNS and and getComputedTextLength()

2002-03-21 Thread David Eason
Thanks for the clarification and workarounds. I will pursue both of these strategies to see which one meets my needs. Dave -Original Message- From: Thomas E Deweese [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 7:18 AM To: Batik Users Subject: RE: createElementNS and and get

createElementNS and and getComputedTextLength()

2002-03-20 Thread David Eason
Hello! I took a look at the link below which has some code for generating a rect element: http://xml.apache.org/batik/domapi.html // create the rectangle Element rectangle = doc.createElementNS(svgNS, "rect"); rectangle.setAttributeNS(null, "x", "10"); rectangle.setAttributeNS(null, "y", "20");