|
From: Patrick H. <pa...@13...> - 2001-05-03 22:04:53
|
"Jesus M. Salvo Jr." <jm...@ih...> wrote: } -----BEGIN PGP SIGNED MESSAGE----- } Hash: SHA1 } } Okay, so it seems you are using 0.8.1. } } Was the vertex removed and then added before you clicked on the vertex? } What happens if you start with a Graph with no vertices, add a single vertex } and adding an additional MouseListener to the visualvertex of the added } vertex, then clicking on the visualvertex? Okay, this works just fine. I modified the SameGraph example program so that it only adds a single vertex (to a single GraphEditor). I added a very simple MouseListener to the VisualVertex, and it is doing what I expect. I guess something must be going wrong with my code. -Patrick } On Fri, 4 May 2001 03:17, Patrick Hartling wrote: } > To folow up on this, further debugging has shown that an element is } > being added to mouseListeners in AbstractVisualGraphComponent properly. } > When processMouseEvent() is called, however, mouseListeners has no } > elements. This leads me to believe that the code below is modifying } > the wrong VisualVertex object (i.e., a different object than what is } > clicked on in the graph panel). If that is case, how do I get a } > reference to the VisualVertex that is in the VisualGraph so that I can } > operate on it? Thanks. } > } > -Patrick } > } > } > _______________________________________________ } > 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 } } iEYEARECAAYFAjrxzJsACgkQAvd5SY4qWYxtgQCdFrb4JSgasb6fbEqLFDWPQ20G } rI8AmgKHqY40cfNjdT08YfI2FExAOU8Y } =iatU } -----END PGP SIGNATURE----- Patrick L. Hartling | Research Assistant, VRAC pa...@13... | 2624 Howe Hall -- (515)294-4916 http://www.137.org/patrick/ | http://www.vrac.iastate.edu/ |