Minimum implementation of batik - just for viewing SVG files

2004-06-15 Thread R Karthick
Hi, I am really stuck in this. I am writing a Java Applet, which loads svg files, just for displaying. Now the jar files itself comes around 2 to 3 megs, which is really large for a web application. I cannot expect the user to download the 2 to 3 megs of data for using my Applet over the web. I

Re: Calling java methods from ECMASCRIPT (not solved at the list)

2004-06-15 Thread Cameron McCormack
Gorka Garay: > Thanks a lot for your so fast response. > > I think you cannot call a non-static method from the TabbedPane in an static > context, so I cannot do what you say : ( But you just need to call the non-static method on the reference that you return to JavaScript. One way of doing it w

RE: problem with JPEGTranscoder

2004-06-15 Thread pegan
Title: RE: problem with JPEGTranscoder Hi Cameron and Venkat, I'm using 1.5.1. I misread the code the first time (saw the setAttributeNodeNS but missed the fact the the Attr a was being passed in the recursive call, apologies), now I do not understand how it can be working. It does still ap

Re: problem with JPEGTranscoder

2004-06-15 Thread Venkat S Kota
Hi Patrick The ELEMENT_NODE case is invoking importNode() method recursively for each attribute node and the case for handling attribute node seems to be creating attribute node without value. I have copied deepCloneDocument() method into my class and printed the document incrementally to veri

Re: Calling java methods from ECMASCRIPT (not solved at the list)

2004-06-15 Thread Gorka Garay
Hi Cameron, Thanks a lot for your so fast response. I think you cannot call a non-static method from the TabbedPane in an static context, so I cannot do what you say : ( The method I have to call is non-static, and must be the method of the previously instantiated TabbedPane. Another way of mak

Re: problem with JPEGTranscoder

2004-06-15 Thread Cameron McCormack
Hi Patrick. [EMAIL PROTECTED]: > I have not noticed any problem with DeepCloneDocument, but because am using > this method in my code I felt compelled to check it out. > I may wrong but on having a look it appears to me that > AbstractDocument.importNode copies the node values at the point it hand

Re: Calling java methods from ECMASCRIPT (not solved at the list)

2004-06-15 Thread Cameron McCormack
Hi Gorka. Gorka Garay: > Ok, the thing is to call a Java method from the ECMAScript. I have > searched the list and found out some examples that helped me to make > this work: > > importPackage(Packages.myPackage); > var myvar = (new MyObject()).myMethod(ECMAScript_vble1); // non-static method fro

RE: problem with JPEGTranscoder

2004-06-15 Thread pegan
Title: RE: problem with JPEGTranscoder Hi Guys, I have not noticed any problem with DeepCloneDocument, but because am using this method in my code I felt compelled to check it out. I may wrong but on having a look it appears to me that AbstractDocument.importNode copies the node values at t

Calling java methods from ECMASCRIPT (not solved at the list)

2004-06-15 Thread Gorka Garay
Hello everybody,     I´m working on a java application where I use xml files to create SVG documents shown on a JSVGCanvas (well, MyJSVGCanvas extending JSVGCanvas but I guess it is the same). The SVGDocument I put on the JSVGCanvas contains some ECMAScript functions in order to move some SV

Re: problem with JPEGTranscoder

2004-06-15 Thread Cameron McCormack
Hi Venkat. Venkat S Kota: > I have downloaded the source distribution and found that the attribute > node value is ignored while creating a new node in the importNode() > implementation in the AbstractDocument class. See the code snippets > below.. I presume the bug Cameron mentioned is still e

Re: problem with JPEGTranscoder

2004-06-15 Thread Venkat S Kota
[EMAIL PROTECTED] wrote: Venkat S Kota: thanks for the reply. I am using Batik 1.5.1 In which case, I'm not sure why it's not cloning properly, sorry. Hi I have downloaded the source distribution and found that the attribute no

Re: problem with JPEGTranscoder

2004-06-15 Thread Cameron McCormack
Venkat S Kota: > thanks for the reply. I am using Batik 1.5.1 In which case, I'm not sure why it's not cloning properly, sorry. -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 - To unsubscribe, e-mail: [EMAIL PR

Re: problem with JPEGTranscoder

2004-06-15 Thread Venkat S Kota
Hi Cameron thanks for the reply. I am using Batik 1.5.1 Venkat [EMAIL PROTECTED] wrote: Hi Venkat. Venkat S Kota: The transcode() method invocation always results in throwing Exception that some of the mandatory attributes are required ( Eg: The attribute "r" of the element