|
From: Jesus M. S. Jr. <jm...@ih...> - 2001-05-03 21:10:07
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Are you using release 0.8.1? There was a bug with 0.8.0 wherein the
mouseXXX() methods in AbstractVisualGraphComponents were never called. This
is fixed with 0.8.1. ( See on-line Release Notes for more details ).
On Fri, 4 May 2001 01:36, Patrick Hartling wrote:
> I am trying to handle the event generated when a VisualVertex object is
> clicked on by the user. I have code similar to the following:
>
> public class MyClass extends VisualGraph {
> public boolean addVertex (Vertex v) {
> try {
> add(v);
>
> VisualVertex vis_vertex = getVisaulVertex(v);
> vis_vertex.addMouseListener(new MouseListener () { ... });
> }
> catch (Exception e) {
> // Handle exception ...
> }
> }
> }:
>
> My listener never gets called--or at least, the mouseClicked() method
> never gets called. Am I misunderstanding how vertex selection events
> are generated, or does my graph have to be in a certain state for the
> mouse clicks to be received?
>
> -Patrick
>
>
> Patrick L. Hartling | Research Assistant, VRAC
> pa...@13... | 2624 Howe Hall -- (515)294-4916
> http://www.137.org/patrick/ | http://www.vrac.iastate.edu/
>
> _______________________________________________
> Openjgraph-development mailing list
> Ope...@li...
> http://lists.sourceforge.net/lists/listinfo/openjgraph-development
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjrxyi8ACgkQAvd5SY4qWYw/VQCggeMNSn33irLjN8a+aJqdC9HW
aZgAoKZUEqUIkCrGIF7PxbC0o+QdTbUC
=0wXV
-----END PGP SIGNATURE-----
|