use of org.eclipse.draw2d.graph.NodeList in project cubrid-manager by CUBRID.
the class ERMinJoinDirectedGraphLayout method getLayoutedRec.
public Rectangle getLayoutedRec() {
NodeList nodes = joinDirectedGraph.getNodes();
Rectangle fullRec = new Rectangle(0, 0, 0, 0);
Iterator it = nodes.iterator();
while (it.hasNext()) {
ERTableNode node = (ERTableNode) it.next();
LayoutUtil.unionAndExpand(fullRec, node.getRectangle());
}
return fullRec;
}
use of org.eclipse.draw2d.graph.NodeList in project cubrid-manager by CUBRID.
the class ERMinJoinDirectedGraphLayout method adjust.
public void adjust(int offsetX, int offsetY) {
if (offsetX == 0 && offsetY == 0) {
return;
}
NodeList nodes = joinDirectedGraph.getNodes();
Iterator it = nodes.iterator();
it = nodes.iterator();
while (it.hasNext()) {
ERTableNode node = (ERTableNode) it.next();
node.setXoffset(offsetX);
node.setYoffset(offsetY);
}
}