Login | Register
My pages Projects Community openCollabNet

gef
Reply to message

* = Required fields
* Subject
* Body
Attachments
Send reply to
Topic
Author (directly in email)
Please type the letters in the image above.

Original message

Author bugmaster@tigris.org
Full name bugmaster@tigris.org
Date 2000-08-03 05:21:40 PDT
Message http://www.tigris.or​g/bugs/show_bug.cgi?​id=186

*** shadow/186 Thu Aug 3 05:21:40 2000
--- shadow/186.tmp.20344 Thu Aug 3 05:21:40 2000
***************
*** 0 ****
--- 1,43 ----
+ Bug#: 186
+ Product: gef
+ Version: 0.7
+ Platform: PC
+ OS/Version: Linux
+ Status: NEW
+ Resolution:
+ Severity: enhancement
+ Priority: P3
+ Component: dist
+ Area: BUILD
+ AssignedTo: bugs at gef dot tigris dot org
+ ReportedBy: tnfink at inf dot fu-berlin dot de
+ URL:
+ Summary: Use existing diagram elements in LayerPerspective
+
+ If LayerPerspective is constructed with a filled GraphModel it does not use
+ these elements. For my application it is convenient to first create the network
+ layer and then generate the GUI stuff.
+
+ Therefor I changed the constructor to:
+ ==-
+ public LayerPerspective(String name, GraphModel gm) {
+ super(name);
+ _gm = gm;
+ _gm.addGraphEventLis​tener(this);
+
+ // tnfink (start)
+ Vector nodes = gm.getNodes();
+ for (int i=0; i<nodes.size();i++) {
+ nodeAdded(new GraphEvent(this,nodes.get(i)));
+ }
+ Vector edges = gm.getEdges();
+ for (int i=0; i<edges.size();i++) {
+ edgeAdded(new GraphEvent(this,edges.get(i)));
+ }
+ // tnfink (end)
+ }
+
+ ==-
+
+ I hope that this fix does not create strange side-effects but up to now it
+ works.