|
From: Patrick H. <pa...@13...> - 2001-05-03 21:52:49
|
"Jesus M. Salvo Jr." <jm...@ih...> wrote: } -----BEGIN PGP SIGNED MESSAGE----- } Hash: SHA1 } } On Fri, 4 May 2001 06:35, Jesus M. Salvo Jr. wrote: } > -----BEGIN PGP SIGNED MESSAGE----- } > Hash: SHA1 } > } > Although the actual String has been changed, it has never been rendered. } > } > As soon as an Edge is added to the Graph, and it has a corresponding } > VisualGraph, the VisualGraph is told to repaint() itself so that the new } > VisualEdge is drawn. Your setText() is called after the repaint() of the } > VisualGraph. So you need to call repaint() again. } > } } Without adding the repaint() first, try forcing a repaint of the VisualGraph } ( e.g.: by moving a Vertex ). It should display the new text for the Edge. } } Calling repaint() is actually what happens when you right-click on a Vertex } or Edge ( in Normal State ), then modify the properties then click OK or } Apply. I tried this, and I tried including a repaint() call immediately after I set the text on the edge. Neither works. :( Maybe I have some nasty bug somewhere that I am missing. Is there some way that vertices and edges could get removed and re-added behind the scenes? -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/ |