|
From: Jesus M. S. Jr. <jm...@ih...> - 2001-05-03 21:06:42
|
-----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. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjrxyVwACgkQAvd5SY4qWYxGoACgmMgF/5IdU4u+hJbqVjoy0vAz JicAoJ3sTcCAwF7SWXDFowQa5j6Ul+jm =tbdw -----END PGP SIGNATURE----- |