A question about the Batik API

Discussion in 'Java' started by Laurent Rincon, May 22, 2006.

  1. 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.
    Laurent Rincon, May 22, 2006
    #1
    1. Advertising

  2. Thomas Weidenfeller, May 22, 2006
    #2
    1. Advertising

  3. Laurent Rincon

    Oliver Wong Guest

    "Laurent Rincon" <> wrote in message
    news:...
    > 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
    Oliver Wong, May 25, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian K
    Replies:
    0
    Views:
    839
    Brian K
    Oct 12, 2003
  2. Shripathi Kamath

    Question on JFreeChart and Batik

    Shripathi Kamath, Nov 26, 2003, in forum: Java
    Replies:
    0
    Views:
    2,316
    Shripathi Kamath
    Nov 26, 2003
  3. Laurent Rincon

    A question about the Batik Api

    Laurent Rincon, May 22, 2006, in forum: Java
    Replies:
    0
    Views:
    301
    Laurent Rincon
    May 22, 2006
  4. Laurent Rincon

    A question about the Batik Api

    Laurent Rincon, May 22, 2006, in forum: Java
    Replies:
    0
    Views:
    296
    Laurent Rincon
    May 22, 2006
  5. Laurent Rincon

    A question about the Batik Api

    Laurent Rincon, May 22, 2006, in forum: Java
    Replies:
    0
    Views:
    308
    Laurent Rincon
    May 22, 2006
Loading...

Share This Page