Hi Kywan, Keywan Najafi Tonekaboni <[EMAIL PROTECTED]> wrote on 05/23/2007 04:02:55 PM:
> i want use Batik for a small Swing-Application to draw simple geometric > shapes (circle, rectangle, line). I read the howtos in the "Using Batik" > section, but have no idea how to manipulate the svg after displaying and > refreshing the view. Is there somewhere a small application, which I > could use for inspiration? The Batik examples directory includes a number of examples of manipulating the svg. Those examples typically use JavaScript to do the manipulation, however you can do exactly the same things in Java. The only trick is that unless you are using the DOM Event handlers (addEventHandler, etc) (and I strongly recommend you use DOM Event handlers) you must run your Java code in the UpdateManagers RunnableQueue (see the FAQ For details). > Another question is, which method I must use to zoom in/out. Is there a > ready method? When yes, in which class. I couldn't find anything > appropriate in the API. Well the Canvas provides "ZoomIn"/"ZoomOut" actions in it's action map. Which you can use to trigger zoom in and out. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
