<
From version < 9.1 >
edited by cds
on 2013/09/02 12:16
To version < 10.1 >
edited by msp
on 2014/03/05 12:44
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Parent
... ... @@ -1,0 +1,1 @@
1 +Infrastructure for Meta Layout (KIML)
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.cds
1 +XWiki.msp
Content
... ... @@ -57,12 +57,10 @@
57 57   KPort port2 = factory.createKPort();
58 58   port2.setNode(node2);
59 59  
60 - // The 'edges' and 'sourcePort' / 'targetPort' references are not
61 - // opposite, so they all have to be set explicitly.
60 + // Setting the source port / target port reference automatically
61 + // adds an edge to the port's list of edges.
62 62   edge.setSourcePort(port1);
63 - port1.getEdges().add(edge);
64 64   edge.setTargetPort(port2);
65 - port2.getEdges().add(edge);
66 66  {{/code}}
67 67  
68 68  A larger example that uses the KGraph for automatic layout is found inĀ [[standalone/LayoutTest/src/test/layout/Test.java>>url:http://rtsys.informatik.uni-kiel.de/fisheye/browse/kieler/standalone/LayoutTest/src/test/layout/Test.java||shape="rect"]].
kgraph.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +82.4 KB
Content
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -9469960
1 +885075
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/9469960/KGraph Meta Model
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/885075/KGraph Meta Model