Package com.projity.grouping.core

Examples of com.projity.grouping.core.NodeBridge


        public void execute(Object arg0) {
          Node child=dependency.getSuccessor().getNode();
          int position=0;
          TreeNode[] path=((NodeBridge)child).getPath();
          if (path.length>1){
            NodeBridge previous=(NodeBridge)path[1];
            position=previous.getRoot().getIndex(previous)+1;
          }
          List nodes=new LinkedList();
        nodes.add(child);
        getGraph().getModel().getCache().getModel().move(null,nodes,position,NodeModel.NORMAL);
        }
View Full Code Here


          }
        }
      boolean containsSubprojects=false;
      List parents=new ArrayList();
      List positions=new ArrayList();
      NodeBridge node,parent;
      for (Iterator i=roots.iterator();i.hasNext();){
        node=(NodeBridge)i.next();
        if (NodeModelUtil.nodeIsSubproject(node))
          containsSubprojects=true;
        parent=(NodeBridge)node.getParent();
        parents.add(parent);
        positions.add(new Integer(parent.getIndex(node)));
      }
      if (!confirmRemove(roots))
        return;
View Full Code Here

    public int getIndexOfNode(Node key, boolean skipVoid) {
      return getIndexOfNode((Node)getRoot(),key,new Counter(),skipVoid);
    }
 
  public Iterator iterator(Node rootNode){
    NodeBridge r;
    if (rootNode!=null && rootNode instanceof NodeBridge) r=(NodeBridge)rootNode;
    else r=(NodeBridge)getRoot();
    return IteratorUtils.asIterator(r.preorderEnumeration());
  }
View Full Code Here

TOP

Related Classes of com.projity.grouping.core.NodeBridge

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.