|
From: Jesus M. S. Jr. <jm...@ih...> - 2001-11-16 20:09:31
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Maybe a little clarification is in order. Execute runsample1.sh ( or runsample1.bat for windows ). You would see two graphs. Hit the layout button on the right, then drag one of the vertices. You should see an edge being drawn orthogonally ( vertical and horizontal lines only ) instead of being drawn straight. Now OpenGraph also reads and writes them back to XGMML. BUT ..... the problem is keeping track of the state, which is not saved into XGMML. This state tells the layout manager things like which "port" in each vertex is the orthogonal edge connected to. The end result is that, although you have read the orthogonal edge from XGMML, it is not displayed properly. ( See the Release Notes for 0.9.0 under XGMML ). Maybe my understanding of XML is not clear, or maybe GraphXML is better suited for these kind of things .... John On Sat, 17 Nov 2001 06:55, Jesus M. Salvo Jr. wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Thu, 15 Nov 2001 23:55, kiran wrote: > > Hi.. > > I am new to this project. I need some help in the following situation. > > Any help would be greatly appreciated. what do i need to do to allow an > > visualedge to be drawn as series of line segments > > It already does this. VisualEdge, like VisualVertex, implements > VisualGraphComponent which has an overloaded setGeneralPath() to define > the line segments that make up the drawing. It either takes a > java.awt.geom.GeneralPath or a java.awt.geom.PathIterator. > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjv1c3oACgkQOPLhoZL+0H27vgCggCpl4leYyRtWIABfWmG45Til IDIAn3hSOVLEvJGXo36O/QR/NRgX9dml =cBWz -----END PGP SIGNATURE----- |