Re: Request public interface hitTestChar for GVT TextNode

2005-02-23 Thread Tonny Kohar
Hi, The patch is attached to this message. Thanks Tonny Kohar > > > > It may be easier and cleaer to add this method to Mark, as > > every Mark actually created is an instance of > > "gvt.renderer.BasicTextPainter.BasicMark" which contains a TextHit > > internally. > > So, I will add metho

Re: Transcoding inside an Applet

2005-02-23 Thread Tonny Kohar
Hi, > I am using JSVGCanvas inside an Applet and I'm planning to > enable users to transcode the viewed document into a typical image format. > In its first version my applet was signed and users could save the > transcoder results > under their filesystem. However after discussing with my team,

Re: Request public interface hitTestChar for GVT TextNode

2005-02-23 Thread Tonny Kohar
Hi, > > I would like to request adding public method/function hitTestChar for > > GVT TextNode or TextPainter which return TextHit instead of Mark. > >Is this because you want access to the 'getCharIndex' method of > TextHit? Exactly, this is what I want getCharIndex from TextHit. > > If it

Re: Trying to draw my overlay

2005-02-23 Thread Thomas DeWeese
Lasse Riis wrote: I've been looking in to your answers and trying to build my app. But I'm stuck now. I restructured it to use some methods to build the app, as oppose to a huge main(). [...] Here we go: You are close, basically you want to make your class implement the Overlay interface from Ba

Re: AW: Tool tip

2005-02-23 Thread Thomas DeWeese
Scheit Christoph wrote: I'm using a walker and try to add to every rectangle in my Dom-Tree a tooltip... But it's not working. Do I miss something? No it's what I thought we only look for title/desc when the document is first loaded. It's actually pretty easy to support adding them dynamically,

Re: Trying to draw my overlay

2005-02-23 Thread James Shaw
Lasse Riis wrote: Hi I've been looking in to your answers and trying to build my app. But I'm stuck now. I restructured it to use some methods to build the app, as oppose to a huge main(). It should be very clear to anyone that I am not very familiar with Java. So sometimes I have no idea what I

Trying to draw my overlay

2005-02-23 Thread Lasse Riis
Hi I've been looking in to your answers and trying to build my app. But I'm stuck now. I restructured it to use some methods to build the app, as oppose to a huge main(). It should be very clear to anyone that I am not very familiar with Java. So sometimes I have no idea what I'm doing. And usu

Re: Batik & Swing Questions

2005-02-23 Thread James Shaw
Antonio Gomes wrote: Hello Steve , how can I pull the code from CVS ?! I'm using Debian Sarge ... Thanks .. Install cvs client (apt-get cvs) IIRC. Then cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout xml-batik This information is on the Batik website, so rtfm! ;-) James Shaw -

Re: Batik & Swing Questions

2005-02-23 Thread Antonio Gomes
Hello Steve , how can I pull the code from CVS ?! I'm using Debian Sarge ... Thanks .. --- Steven Huey <[EMAIL PROTECTED]> escreveu: > Thanks Thomas - I just tested things with the new > code from CVS and > it's working great! > > - Steve > > On Feb 23, 2005, at 6:28 AM, Thomas DeWeese wrot

Re: SVG Library for Graphical Building ....

2005-02-23 Thread Antonio Gomes
Sorry for my bad english ... just correcting and complementing ... ** And I wanna you, experients batik users and "svg programmers", advice me how viable is my approuch ?! I'm asking it bacuase the user will all the time changing the content ... I have some results and screenshot ... Thanks agai

Transcoding inside an Applet

2005-02-23 Thread oliver clement
Hi, I am using JSVGCanvas inside an Applet and I'm planning to enable users to transcode the viewed document into a typical image format. In its first version my applet was signed and users could save the transcoder results under their filesystem. However after discussing with my team, it turned o

Re: Color problems after merging two svgs

2005-02-23 Thread Thomas DeWeese
Hi Guido, Guido Kämper wrote: TD> I would just use the image element to put the two TD> documents side by side is there a reason this won't work? I'm sorry... As I wrote before, i'm not very experienced with SVGs and especially with Batik. This was the first way I tested to merge the images.

SVG Library for Graphical Building ....

2005-02-23 Thread Antonio Gomes
Hello every one, well I worked with SVG and Batik one year ago, and I proved myself that this combination is really powerfull ;) Now I'm interest and already work on a new approuch to SVG graphics and the batik toolkit ... I'm modelling and implementing a new library with a set the classes that e

Re[2]: Color problems after merging two svgs

2005-02-23 Thread Guido Kämper
Hello Thomas, TD>Possible yes, easy no. That's what i guessed :-) >> This is important, because I don't have any influence over >> the input files. TD> Then you will also have problems with id conflicts (use TD> references etc). >> in the attachment is one of the test input svgs. TD>

Re: Color problems after merging two svgs

2005-02-23 Thread Thomas DeWeese
Guido Kämper wrote: thanks for the fast answer, Thomas:-) I think you're right. the images have CSS style sheets. Is it possible to convert the images automatically to non-css images? Possible yes, easy no. This is important, because I don't have any influence over the input files. Then yo

Re[2]: Color problems after merging two svgs

2005-02-23 Thread Guido Kämper
Hi, thanks for the fast answer, Thomas:-) I think you're right. the images have CSS style sheets. Is it possible to convert the images automatically to non-css images? This is important, because I don't have any influence over the input files. in the attachment is one of the test input svgs.

Re: Color problems after merging two svgs

2005-02-23 Thread Thomas DeWeese
Guido Kämper wrote: i've experimented a little bit with the batik libraries and it's really great, how easy you can achive the first results :-) My sourcecode below merges two images from JSVGCanvas svg1, svg2 to svgResult. The images have the same structure, but different colors and text. in t

Color problems after merging two svgs

2005-02-23 Thread Guido Kämper
Hi, i've experimented a little bit with the batik libraries and it's really great, how easy you can achive the first results :-) My sourcecode below merges two images from JSVGCanvas svg1, svg2 to svgResult. The images have the same structure, but different colors and text. in the mixed image

Re: Batik & Swing Questions

2005-02-23 Thread Steven Huey
Thanks Thomas - I just tested things with the new code from CVS and it's working great! - Steve On Feb 23, 2005, at 6:28 AM, Thomas DeWeese wrote: Hi Steven, There should be a fix for this in CVS now. Steven Huey wrote: Wrong archive, sorry. It's fixed now, the URL is the same: http://www.ste

Re: Request public interface hitTestChar for GVT TextNode

2005-02-23 Thread Thomas DeWeese
Tonny Kohar wrote: I would like to request adding public method/function hitTestChar for GVT TextNode or TextPainter which return TextHit instead of Mark. Is this because you want access to the 'getCharIndex' method of TextHit? If it is ok, I will write and submit the patch. The method is basicly

Re: Batik & Swing Questions

2005-02-23 Thread Thomas DeWeese
Hi Steven, There should be a fix for this in CVS now. Steven Huey wrote: Wrong archive, sorry. It's fixed now, the URL is the same: http://www.stevenhuey.net/test.zip . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: XMLSupport.defaultXMLSpace(String) questions

2005-02-23 Thread Thomas DeWeese
Tonny Kohar wrote: Since Batik is also SVG processor, does the white-space processing returned by that method is valid? What method? defaultXMLSpace? yes I believe so for the very simple case of a single text node child (it wouldn't be right for tspans). eg: text with white-space before and aft

Re: XMLSupport.defaultXMLSpace(String) questions

2005-02-23 Thread Tonny Kohar
Hi, > Sorry, I answered a completely different question. > > Since the XML 1.0 rec says > > The value "default" signals that applications' default white-space > processing modes are acceptable for this element; > > I imagine that any behaviour wrt whitespace is valid. Since Batik is also S

Request public interface hitTestChar for GVT TextNode

2005-02-23 Thread Tonny Kohar
Hi, I would like to request adding public method/function hitTestChar for GVT TextNode or TextPainter which return TextHit instead of Mark. If it is ok, I will write and submit the patch. The method is basicly a copy of org.apache.batik.gvt.renderer.StrokingTextPainter.hitTest(double x, double y,

AW: Tool tip

2005-02-23 Thread Scheit Christoph
Hello, I tried it out following your example: if ("rect".equals(tag)) { Element desc = doc.createElementNS(SVGDOMImplementation.SVG_NAMESPACE_URI, "desc"); desc.appendChild(doc.createTextNode("tip")); elem.appendChild(desc);