Does setSVGDocument go inside my JSVGCanvas.java file? An actual simple example would be great.
I am using "batik-1.1.1" with "j2sdk1.4.0_01". >>>>> "MLL" == Mitchell, Lincoln L <[EMAIL PROTECTED]> writes: MLL> Hello all, I am new to the group and have a nice and easy startup MLL> question. MLL> I am trying to go through the batik tute at: MLL> http://xml.apache.org/batik/domapi.html MLL> I have made some progress and can: 1. Create a document using DOM MLL> The class gets generated, and I assume I am not meant to see any MLL> SVG output so I then; 2. Creating a JSVGCanvas The canvas MLL> appears, I can load a document via the load button but this is MLL> not what I want to do. MLL> What I expect to happen is that I create SVG via DOM and have MLL> some other code at the end on the main method that automatically MLL> opens JSVGCanvas and using the method getSVGDocument it populates MLL> the canvas with the SVG I just created. For this to work you need to be using Batik1.5b4. Otherwise you can build your DOM and provide it to the JSVGCanvas when you are done with the 'setSVGDocument'. For large scale changes (like building the document on the fly) you are much better off just setting the document. For small changes you are better off getting the document and modifying it in place. MLL> The problem is that I don't now how to use "getSVGDocument"! getSVGDocument returns the SVG document the canvas has loaded. Unless you have done something (like calling setURI())this will be null. So you really want to build your document and set it on the JSVGCanvas. MLL> Maybe someone can show me how it's done. NOTE: I am not well MLL> versed in using swing, java or batik so "little steps please". MLL> Thanks as always for any help the group can provide. This group MLL> is a life saver! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This email was received from the Internet. If this email is unsolicited, non-business related, inappropriate or spam, please forward it to [EMAIL PROTECTED] Please do not reply or unsubscribe to spam as this may confirm your email address to the spammer. --------------------------------------------------------------------- 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]
