A question about the Batik API

L

Laurent Rincon

Hello all,

I have to write an application using the Batik API, but I don't know
very well how to use it. I want to draw a flow chart on a screen. Each
part of this chart has to be clickable. For the moment, I add a mouse
listener to my JSVGCanvas, and by getting the mouse's position when I
click on it, I determine what object of the screen is concerned by the
event. But this solution doesn't satisfy me because I'm afraid it will
be too long or too difficult to deal a more complicated chart...
So I want to know if it's possible to define objects (like rectangle,
ellipse, ...) on which we can add mouse listeners (like a button) and
how to do this. If you have code example to do this, or internet
address where to find information, it would be great.
 
O

Oliver Wong

Laurent Rincon said:
Hello all,

I have to write an application using the Batik API, but I don't know
very well how to use it. I want to draw a flow chart on a screen. Each
part of this chart has to be clickable. For the moment, I add a mouse
listener to my JSVGCanvas, and by getting the mouse's position when I
click on it, I determine what object of the screen is concerned by the
event. But this solution doesn't satisfy me because I'm afraid it will
be too long or too difficult to deal a more complicated chart...
So I want to know if it's possible to define objects (like rectangle,
ellipse, ...) on which we can add mouse listeners (like a button) and
how to do this. If you have code example to do this, or internet
address where to find information, it would be great.

If CPU time is your concern, see
http://en.wikipedia.org/wiki/Binary_space_partitioning

- Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top