Hello Ernie,

Ernie wrote:
I'm still not following what you are saying.

You say "look into the code of the classes I was mentioning"
        what classes are you mentioning??
In an earlier email, I mentioned the classes to look at:

If you are wondering how to do that for content generated from SVGGraphics2D,
> you'll need to look into the structure of what SVGGraphics2D manages.
> This is documented in the DOMTreeManager and the DOMGroupManager
> classes. > With that information and your knowledge of what you draw in an SVGGraphics2D,
you can then access the content generated by SVGGraphics2D and add attributes to it
This is the best I can offer today. I understand that you'd like an
example but in the meantime, I think you could go a long way with
a little homework on the classes I mentioned.

Regards,
Vincent.


The java docs documentation doesnt tell me anything about adding elements.

Like a said, an example would go a long way.

Thanks

Ernie
----- Original Message -----
From: "Vincent Hardy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 10:26 AM
Subject: Re: Adding attributes to elements.



Hello Ernie,

Ernest Martinez wrote:

I need to do it for content created from SVGGraphics2D. I dont exactly
follow what you mean by "you'll need to look into the structure of what
SVGGraphics2D manages" A code snippet would tell a thousand pictures.
What I meant was: look into the code of the classes I was mentioning.
The documentation in these classes explain the structure of the content
generated by SVG Graphics 2D.

Vincent.


Ernie

-----Original Message-----
From: Vincent Hardy [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 12:22 PM
To: [EMAIL PROTECTED]
Subject: Re: Adding attributes to elements.


Hello Ernie,

Ernie wrote:


Hi I'm new to Batik and have a rather simple yet frustrating question.

I just need to be able to add some other attributes to some SVG elements
eg I need to add "my_id" to a rect element. I saw a thread which
addressed this exact issue but the only answer was to look at
org.apache.batik.svggen.SwingSVGPrettyPrint.

This told me absolutely nothing. Can someone be kind enough to show me
an example of how this is accomplished.


Are you asking how to do this for content generated by SVGGraphics2D or
for SVG content in general?

If you are creating content through the DOM, you would do:

Element r = document.createElementNS(svgNS, "rect");
r.setAttribute("id", "my_id");

If you are wondering how to do that for content generated from
SVGGraphics2D, you'll need t. This is documented in the DOMTreeManager

and

the
DOMGroupManager classes. With that information and your knowledge of
what you draw in an SVGGraphics2D, you can then access the content
generated by SVGGraphics2D and add attributes to it...

If that is not answering your question, thanks for giving more details
on what you want to accomplish.

Vincent.


---------------------------------------------------------------------
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]




---------------------------------------------------------------------
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]




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

Reply via email to