|
From: Patrick H. <pa...@13...> - 2001-05-04 04:42:07
|
Okay, I figured out what I was doing wrong. When I set up my GraphScrollPane, I was passing it a VisualGraph but calling setGraph() instead of setVisualGraph(). Now it's all working as desired. =) Thanks for the help. -Patrick Patrick Hartling <pa...@13...> wrote: } I have found that the VisualVertex constructor is being called twice for } every vertex I add to the graph. In the simple program I wrote where the } listeners work, this is not the case. What might I be doing that would } cause the VisualVertex contructor to be called repeatedly? } } -Patrick } } "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 verte *** x } } and adding an additional MouseListener to the visualvertex of the added } } vertex, then clicking on the visualvertex? } } } } 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-49 *** 16 } http://www.137.org/patrick/ | http://www.vrac.iastate.edu/ } } _______________________________________________ } Openjgraph-development mailing list } Ope...@li... } http://lists.sourceforge.net/lists/listinfo/openjgraph-development Patrick L. Hartling | Research Assistant, VRAC pa...@13... | 2624 Howe Hall -- (515)294-4916 http://www.137.org/patrick/ | http://www.vrac.iastate.edu/ |