&& !(objs[k] instanceof NAryEdge) && !(objs[k] instanceof DefaultEdge)) { if (((DefaultGraphCell)objs[k]).getChildCount()>0){ Iterator edges = graph.getModel().edges(((DefaultGraphCell)objs[k]).getChildAt(0));
private boolean evaluateIfDefaultGraphCellHasToBeHighlighted( DefaultGraphCell dgc, boolean found, DefaultGraphCell toPaint) { if (dgc.getChildCount() > 0) { for (Object objectport : dgc.getChildren()) { if (objectport instanceof DefaultPort) { DefaultPort port = (DefaultPort) objectport; Iterator<DefaultEdge> edges = graph.getModel().edges(port); while (edges.hasNext() && !found) { DefaultEdge next = edges.next(); found = found || ((DefaultPort) (next.getTarget())) .getParent().equals(toPaint) || ((DefaultPort) (next.getSource())) .getParent().equals(toPaint); } } } } return found; }
for (DefaultGraphCell dgc : children) { if (dgc.getChildCount()>0){
&& !(objs[k] instanceof NAryEdge) && !(objs[k] instanceof DefaultEdge)) { if (((DefaultGraphCell)objs[k]).getChildCount()>0){ Iterator edges = graph.getModel().edges(((DefaultGraphCell)objs[k]).getChildAt(0));
&& !(objs[k] instanceof NAryEdge) && !(objs[k] instanceof DefaultEdge)) { if (((DefaultGraphCell)objs[k]).getChildCount()>0){ Iterator edges = graph.getModel().edges(((DefaultGraphCell)objs[k]).getChildAt(0));
for (int j=0;j<otherdgc.getChildCount();j++){ if (gm.isPort(otherdgc.getChildAt(j))){ Iterator edges = gm.edges(otherdgc.getChildAt(j));