I just took another look to the code and I saw the mapping tables in
BridgeContext. Never mind, I see now how to implement them.
Lionel
Lionel wrote:
Hi all,
I'm wondering if it's really simple to implement those methods. I'm
pretty new in the Batik code, so
correct me if I'm wrong. It seems to me that because non-formatted
values are clearly separated from formatted/dynamic values it's not
easy to make the latter available at the OM level. Each OM object is
*temporarily* associated to GVT object where formatted and dynamic
values are available.
I'm curious to know how you would do it. Can you give us some hints?
Thanks
Lionel
Hi Harald,
Harald Kuhn wrote:
I am trying to get the rendered length of a SVG Text Element. As far
as i understood, the getTextLength() Method of
SVGTextContentElement is supposed to do this.
No you want the "getComputedTextLength" function, "getTextLength"
is tied to the "textLength" attribute (which should, if set, be the
same as the computed text length but for most content it is not).
The "getComputedTextLength()" function _is_ implemented.
However when i tried this, a RuntimeException was thrown and by
looking at the code I found out that the Method returns an
implementation of AbstractSVGAnimatedLength where getDefaultValue()
and getAnimatedValue() are not implemented. My question is, wether
there are any plans for implementing this method(s) ?
There is (since it's pretty simple for Batik, in fact I'm not
sure why it isn't already). However, as I said above it really
wouldn't help you much ;)
---------------------------------------------------------------------
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]