xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeferson <jefer...@liveware.com.br>
Subject Re: How to add a link
Date Wed, 14 Mar 2007 14:30:46 GMT
thomas.deweese@kodak.com wrote:

>Hi Jeferson,
>
>Jeferson <jeferson@liveware.com.br> wrote on 03/12/2007 01:52:06 PM:
>
>  
>
>>The problem is: i need that Batik do it when i convert from a Java2D 
>>instead of do manually.
>>    
>>
>
>     The way to do this is to build your document in combination
>with the SVGGraphics2D class.
>
>     The function getRoot(Element parent) will append everything
>drawn since the last call to getRoot as children of 'parent'.
>So if you create your 'a' elements with the DOM (doc.createElementNS)
>you can draw the items you want to have a link and then append
>them under your 'a' element(s).
>
>  
>
>>I dont know if this is possible since that i havent found any solution 
>>so far, but it could be like add a link to a shape and when i convert to 
>>    
>>
>
>  
>
>>svg Batik will generate the snippet as you sad automatically.
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
>For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>  
>
This is a good solution, but it's like develop with JavaScript. Add 
anchors to an element could be a future implementation for Batik since 
that it would be easier to develop svg for web applications. Thanks for 
help.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message