Hi all,
i have an SVG file (generated by Graphviz) to which I want to script using
Java in order to add some event handling. The file is practically a set of
<g> elements which correspond to a text inside a box:
<g id="node1" class="node">
<title>node1</title>
<polygon fill="none" stroke="black" points="343,-684 197,-684 197,-648
343,-648 343,-684"/>
<text text-anchor="middle" x="270" y="-661.9" font-family="Times
Roman,serif" font-size="14.00">node1 label</text>
</g>
However, my problem is that I am adding event listener for an onClick action
on either the <g> or the <polygon> element (by srcipting with java). In
either way, the event is triggered only if I click on the text (i.e. when
the mouse pointer changes to a cursor) and not when I click on the box. Am I
missing something? Thank you.
Habib