RE: AW: Batik 1.5beta5 available

2003-03-25 Thread Cory Sanoy
I had this same problem a while back and I downloaded the most recent version of the Crimson parser (http://xml.apache.org/crimson/index.html) and the problem went away. Hope this helps... /Cory -Original Message- From: Christian Enklaar [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25,

Re: Changing style of an element

2003-03-25 Thread JX
Le Tue, 25 Mar 2003 15:31:20 +0100 Jean-Christophe ARNU (JX) <[EMAIL PROTECTED]> me disait que : > Hello, > I'm quite newbie with Batik. I would like to know how I can change a > style > attribute from a given element. This element is out of a pre-loaded > SVGDocument. What is the best

RE: AW: svg element's bounding box error

2003-03-25 Thread Thomas E Deweese
> "R" == Riyaz <[EMAIL PROTECTED]> writes: R> First of all, thanks Thomas for your reply. I am using R> SVGLocatable to get the bounding box of the svg elements as R> follows: You need to use the bridge package (GVTBuilder) to build the rendering tree. Without the rendering tree Batik d

RE: AW: svg element's bounding box error

2003-03-25 Thread Riyaz
First of all, thanks Thomas for your reply. I am using SVGLocatable to get the bounding box of the svg elements as follows: String parser = XMLResourceDescriptor.getXMLParserClassName();   SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser); Document doc = f.createDocument(uri);        

AW: AW: Batik 1.5beta5 available

2003-03-25 Thread Christian Enklaar
Hello, I did not need to grant any permission when using crimson. My applet loads everything from a single jarfile containing the classes from my project as well as everything needed (batik, crimson, etc.) I tried to use crimson again now by setting: SAXSVGDocumentFactory f = new SAXSVGDocument

Re: Changing style of an element

2003-03-25 Thread JX
Sorry for dup message if any (Used the wrong email address to send to the list) :/ > Hello, > I'm quite newbie with Batik. I would like to know how I can change a > style > attribute from a given element. This element is out of a pre-loaded > SVGDocument. What is the best way to do suc

AW: Batik 1.5beta5 available

2003-03-25 Thread Lolling, Jan
Hi, here is it. I have done this job for few days /** * Diese Methode wird im Constructor von JGVTComponent aufgerufen und soll * einen Listener fur Maus und GVTTreeRenderer erzeugen. * Damit der eigene Listener verwendet wird muss diese Methode * uberschrieben werden.

RE: Batik 1.5beta5 available

2003-03-25 Thread Thomas E Deweese
> "BR" == Baron, Randy {PRG~Basel} <[EMAIL PROTECTED]> writes: BR> Hi, I just switched to the new version of Batik 1.5b5. The fix of BR> the tooltips hanging around is fantastic since I was just starting BR> to look into solving that problem myself and it looked very BR> difficult. That prob

RE: Batik 1.5beta5 available

2003-03-25 Thread Baron, Randy {PRG~Basel}
Hi,    I just switched to the new version of Batik 1.5b5.  The fix of the tooltips hanging around is fantastic since I was just starting to look into solving that problem myself and it looked very difficult.  That problem is gone in 1.5b5 but is replaced by another:    I have a JDesktopPa

Changing style of an element

2003-03-25 Thread JX
Hello, I'm quite newbie with Batik. I would like to know how I can change a style attribute from a given element. This element is out of a pre-loaded SVGDocument. What is the best way to do such a thing? I looked at the Mailing list archive and found a code sample using the SVGStylableSuppo

Re: AW: Batik 1.5beta5 available

2003-03-25 Thread Vincent Hardy
Hello Christian, The XML parser changed in 1.5beta5, so you probably need to change your security settings to grant the permissions to the Xerces jar rather than to the Crimson jar. Vincent. Christian Enklaar wrote: Hello, I tried to switch from 1.5beta4 to 1.5beta5 - but seem to get security

AW: Batik 1.5beta5 available

2003-03-25 Thread Christian Enklaar
Hello, I tried to switch from 1.5beta4 to 1.5beta5 - but seem to get security problems with the SAXParser ... String parser = XMLResourceDescriptor.getXMLParserClassName(); SAXDocumentFactory f = new SAXDocumentFactory(new GenericDOMImplementation(),parser); StringReader sr = new StringReader(cur

RE: gvtRoot and AffineTransform, how to get them?

2003-03-25 Thread Durocher, Pascal (EXP)
I found out why I couldn't have a handle on a 'gvtRoot' and why 'getRenderingTransform()' wasn't returning an 'AffineTransform'. I was reusing the code from http://xml.apache.org/batik/svgcanvas.html and inserted some code after the line "svgCanvas.setURI(f.toURL().toString());". The code I inser

AW: How to change image-size online

2003-03-25 Thread Lolling, Jan
Hello Thomas, thanks for your response. My class extends JSVGCanvas. I add this to an scrollpane and implements scrollable. If I resize my window bigger than the svg document-size than you can see as a white rectangle the svg document, surrounded with th grey background from the viewport. here

RE: How to change image-size online

2003-03-25 Thread Thomas E Deweese
> "LJ" == Lolling, Jan <[EMAIL PROTECTED]> writes: LJ> I build a SVG-editor. One of my goals is to manipulate the entire LJ> size (bounds) of the SVG-document. I am trying set the height und LJ> width-attributes from the svg-tag-element over the updateManager LJ> from JSVGCanvas. Nothing ha

RE: AW: SVG element's bounding box..

2003-03-25 Thread Thomas E Deweese
Hi Jan, Riyaz, So the first question to ask when you say 'bounding box' is the bounding box in what coordinate system? And how important is it that the bounding box be 'tight'? So Jan gives one way of doing it which seems to try and get the bounds in screen coords, (but the code assumes t

Batik 1.5beta5 available

2003-03-25 Thread Vincent Hardy
Hello, Batik 1.5beta5 is now available and it is the last beta release before the final 1.5 release. This Beta release contains a large number bug fixes and some new features and improvements. A detailed list of the new features and bug fixes can be found in the change log at [1]. You can find

How to change image-size online

2003-03-25 Thread Lolling, Jan
Hello, I build a SVG-editor. One of my goals is to manipulate the entire size (bounds) of the SVG-document. I am trying set the height und width-attributes from the svg-tag-element over the updateManager from JSVGCanvas. Nothing happens. If I save this changed document the svg-attributes are chan