Problem with interpretation of XML representation of diagram layout [message #1714759] |
Mon, 16 November 2015 12:53  |
Eclipse User |
|
|
|
hey everbody,
after i draw a diagram with my own generated GMF-Editor (see Attachement1), i need to redraw it in another GUI. For that i'm using the XML file of the diagram, and i don't know how to use the XML information to redraw a connection in a right way.
Does anyone know how i can use the three values under the nodes "Edges":
1. bendpoints/points
2. sourceAnchor/id
3. targetAnchor/id
to draw a connection (or get the real bendpoints of a connection).
when i only use the attribute bendpoints/points, i get this (see Attatchment2) and as we see, most of the connections are not on the right place.
and i realized that the attributes sourceAnchor/id and targetAnchor/id are missing at some "edges" nodes (see attached XML file).
please, i really need help, any comment could be helpful.
thanks in advance ..
Nana


Attachment: Attachment1.png
(Size: 15.31KB, Downloaded 552 times)
Attachment: Attachment2.png
(Size: 16.20KB, Downloaded 556 times)
Attachment: XML.xml
(Size: 13.18KB, Downloaded 223 times)
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03054 seconds