Package org.apache.oodt.cas.workflow.gui.model

Examples of org.apache.oodt.cas.workflow.gui.model.ModelGraph.addChild()


                      (Element) curChild), new Metadata(staticMetadata),
                  globalConfGroups, supportedProcessorIds));
            loadedPreConditions = true;
          } else if (!curChild.getNodeName().equals("configuration")
              && !curChild.getNodeName().equals("requiredMetFields")) {
            graph.addChild(this.loadGraph(rootElements, new FileBasedElement(
                workflowNode.getFile(), (Element) curChild), new Metadata(
                staticMetadata), globalConfGroups, supportedProcessorIds));

          }
        }
View Full Code Here


  public static void addChild(List<ModelGraph> graphs, String parentId,
      ModelGraph child) {
    ModelGraph parent = find(graphs, parentId);
    if (parent != null)
      parent.addChild(child);
  }

  public static List<ModelGraph> findRootGraphs(List<ModelGraph> graphs) {
    List<ModelGraph> rootGraphs = new Vector<ModelGraph>();
    for (ModelGraph graph : graphs) {
View Full Code Here

      while (!graphs.empty()) {
        ModelGraph curGraph = graphs.pop();
        if (curGraph.getModel().isParentType()) {

          if (curGraph.getChildren().size() == 0)
            curGraph.addChild(new ModelGraph(createDummyNode()));

          List<Line> relaventLines = getRelaventLines(lines, curGraph
              .getModel().getId());
          for (Line relaventLine : relaventLines) {
            int index = lines.indexOf(relaventLine);
View Full Code Here

      if (cell != null) {
        if (cell instanceof DefaultGraphCell) {
          ModelGraph graph = GuiUtils.find(state.getGraphs(),
              ((ModelNode) ((DefaultGraphCell) cell).getUserObject()).getId());
          if (graph != null)
            graph.addChild(newGraph);
        }
      } else {
        state.addGraph(newGraph);
        GraphView.this.setShift(state, newGraph, curPoint);
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.