diff --git a/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java b/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java index 4baa140..a3d2687 100644 --- a/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java +++ b/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java @@ -449,8 +449,8 @@ // create resource vertices for (ResourceNode resNode: dataFlowGraph.getRootResourceNodes()) { - int w = 300; - int h = 200; + int w = 80; + int h = 30; ResourcePath res = resNode.getOutSideResource(); Object resource = graph.insertVertex(parent, null, res.getResourceName(), 20, 20, w, h, @@ -500,17 +500,17 @@ public void getChildResource(Object resource, ResourceNode resNode, Map resources, int w, int h) { for (ResourceNode c: resNode.getChildren()) { - w = w - 100; - if(w <= 0) { - w = 100; - } - h = (2 * w) / 3; +// w = w - 100; +// if(w <= 0) { +// w = 100; +// } +// h = (2 * w) / 3; ResourcePath chRes = c.getOutSideResource(); Object chResource = graph.insertVertex(resource, null, - chRes.getName(), 110, 90, w, h, + chRes.getName(), 0, 0, w, h, "shape=ellipse;perimeter=ellipsePerimeter"); // insert a resource as a vertex resources.put(chRes, chResource); - getChildResource(chResource, c, resources, w, h); + getChildResource(chResource, c, resources, w, h); } }