473,385 Members | 2,269 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

[BATIK] Rectangle links to other SVG-Document/Webpage

Hi,

im using batik to draw several rectangles via graphics2D.

now i would like to add a link to another html or svg document to the
rectangle. if the user clicks on the rectangle, the other document
should appear.

how can this be done using batik?

thanks!
Jul 20 '05 #1
1 1451


Gemmel wrote:

im using batik to draw several rectangles via graphics2D.

now i would like to add a link to another html or svg document to the
rectangle. if the user clicks on the rectangle, the other document
should appear.


SVG knows links e.g.
<a xlink:href="whatever.svg"><rect ... /></a>
but I don't know what happens in a Java application drawing SVG.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tjorven Lauchardt | last post by:
Hello, I am creating a application with Batik and I have the following problem. I am buidling a DOM Tree and I want to know the bounding box of the text-Elements while I am building the DOM. I...
0
by: Relishguy | last post by:
Hello all: When I run the batik SVG viewer (i.e. squiggle), it is incredibly slow to load an SVG file and to do any transformations. Is there some other open source viewer that is more...
0
by: Brian K | last post by:
I am new to Apache Batik and I am now doing a SVG Editor for my project. I use Java as programming language. I use Batik to generate the SVG from Java Graphics2D, as I would like to transform...
5
by: Raphael Goubet | last post by:
Hi, Is it possible to insert an SVG graphic directly in an XHTML file (ie, not through a reference to an external file, but by directly placing the SVG structure within the XHTML structure)? ...
0
by: Anna | last post by:
Hello all. I hope this is the right group to ask my question. I have an HTML page that contains an SVG file in an object. Inside an SVG file I want to add a link to link to some anchor on the...
15
by: Steven T. Hatton | last post by:
The following may strike many of you as just plain silly, but it represents the kind of delelima I find myself in when trying to make a design decision. This really is a toy project written for...
3
by: Ryan | last post by:
Hello, I'm trying to draw a rectangle on a web page which contains a picture. Following is the function for a similar windows application. private void ZoomIn_Click(object sender,...
0
by: antonye | last post by:
So I've spent some time working on transforming XML into a nice SVG based graph, which I'm happy with. I've now been tasked with putting this graph into some outer html wrapper to create a...
4
by: RobinS | last post by:
I am drawing a rectangle on a picture that has already been drawn on the graphics area (a user control). It works something like this: //in the MouseDown event m_isDragging = true; m_oldX =...
1
SMRCA
by: SMRCA | last post by:
Hello to all, I am new in svg and don't have any idea of all functions first let me clear what I want to implement, I want to make a shape in dia that have one textbox, one rectangle on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.