Package lupos.gui.operatorgraph

Examples of lupos.gui.operatorgraph.GraphWrapperIDTuple


    String opIDLabel = (!loadObject.getString("id label").equals("")) ? loadObject.getString("id label") : "" + opID;


    // create connection between the two operators...
    this.firstOp.addSucceedingElement(new GraphWrapperIDTuple(this.secondOp, opID));
    this.secondOp.addPrecedingElement(this.firstOp);

    AbstractRuleOperator ruleOp1 = (AbstractRuleOperator) this.firstOp.getElement();
    AbstractRuleOperator ruleOp2 = (AbstractRuleOperator) this.secondOp.getElement();
View Full Code Here


      // put BasicOperator in GraphWrapper class...
      final GraphWrapper element = new GraphWrapperOperator(oit.getOperator());

      // add GraphWrapperIDTuple with current BasicOperator to list of
      // succeeding elements...
      succedingElements.add(new GraphWrapperIDTuple(element, oit.getId()));
    }
    return succedingElements; // return succeeding elements
  }
View Full Code Here

      this.dummyGW = this.queryGraph.createGraphWrapper(this.dummyOperator);
      final GraphBox dummyBox = this.visualEditor.getVisualGraphs().get(0).graphBoxCreator.createGraphBox(this.queryGraph,this.dummyGW);

      this.queryGraph.getBoxes().put(this.dummyGW, dummyBox);

      this.firstOp.addSucceedingElement(new GraphWrapperIDTuple(this.dummyGW, 0));

      this.visualEditor.getStatusBar().setText("ConnectionMode: Click on the second operator you want to connect to finish the connection.");
    }
    else { // second call... end the connectionMode of the editor, remove
      // the dummy and create the connection.../
View Full Code Here

//    if(this.firstOp.getElement() instanceof MultiInputOperator) {
//      opID = ((MultiInputOperator) this.firstOp.getElement()).getFreeOpID();
//    }

    // create connection between the two operators...
    this.firstOp.addSucceedingElement(new GraphWrapperIDTuple(this.secondOp, opID));
    this.secondOp.addPrecedingElement(this.firstOp);

    // sort root nodes of operator containers...
    if(this.firstOp.getGUIComponent().getParentQG().outerReference != null) {
      if(this.firstOp.getGUIComponent().getParentQG().outerReference.getParentOp() instanceof AndContainer)
View Full Code Here

    if(this.secondOp.getElement() instanceof RetrieveData) {
      errorString = "RetrieveData operators (ASK, CONSTRUCT, DESCRIBE, SELECT) can't have preceeding elements!";
    }

    if(((Operator) this.firstOp.getElement()).getParentContainer() == null) {
      this.firstOp.addSucceedingElement(new GraphWrapperIDTuple(this.secondOp, 0));

      if(this.hasCircle(this.firstOp, new HashSet<GraphWrapper>())) {
        errorString = "Circles are not allowed outside a Container!";
      }
View Full Code Here

      this.dummyGW = this.queryGraph.createGraphWrapper(this.dummyOperator);
      final GraphBox dummyBox = this.queryGraph.graphBoxCreator.createGraphBox(this.queryGraph,this.dummyGW);

      this.queryGraph.getBoxes().put(this.dummyGW, dummyBox);

      this.firstOp.addSucceedingElement(new GraphWrapperIDTuple(this.dummyGW, 0));

      this.visualEditor.getStatusBar().setText("ConnectionMode: Click on the second operator you want to connect to finish the connection.");
    }
    else { // second call... end the connectionMode of the editor, remove
      // the dummy and create the connection.../
View Full Code Here

    if(this.firstOp.getElement() instanceof MultiInputOperator) {
      opID = ((MultiInputOperator) this.firstOp.getElement()).getFreeOpID();
    }

    // create connection between the two operators...
    this.firstOp.addSucceedingElement(new GraphWrapperIDTuple(this.secondOp, opID));
    this.secondOp.addPrecedingElement(this.firstOp);

    // sort root nodes of operator containers...
    if(this.firstOp.getGUIComponent().getParentQG().outerReference != null) {
      ((OperatorContainer) this.firstOp.getGUIComponent().getParentQG().outerReference.getParentOp()).determineRootNodes();
View Full Code Here

      // put BasicOperator in GraphWrapper class...
      final GraphWrapper element = new GraphWrapperOperator(oit.getOperator());

      // add GraphWrapperIDTuple with current BasicOperator to list of
      // succeeding elements...
      succedingElements.add(new GraphWrapperIDTuple(element, oit.getId()));
    }

    return succedingElements; // return succeeding elements
  }
View Full Code Here

    box.setX(x);

    // --- update position of subtree - begin ---
    for (final Object o : box.getOp().getSucceedingElements()) {
      final GraphWrapperIDTuple gwIDt = (GraphWrapperIDTuple) o;
      final GraphBox box2 = operatorgraph.getBoxes().get(
          gwIDt.getOperator());
      if (levels.get(box2.getOp()) > level) {
        updateX(operatorgraph, box2, levels, level, box2.getX()
            + offset, visited);
      }
    }
View Full Code Here

    box.setXWithoutUpdatingParentsSize(x);

    // --- update position of subtree - begin ---
    for (final Object o : box.getOp().getSucceedingElements()) {
      final GraphWrapperIDTuple gwIDt = (GraphWrapperIDTuple) o;
      final GraphBox box2 = operatorgraph.getBoxes().get(
          gwIDt.getOperator());
      if (levels.get(box2.getOp()) > level) {
        updateXWithoutUpdatingParentsSize(operatorgraph, box2, levels,
            level, box2.getX() + offset, visited);
      }
    }
View Full Code Here

TOP

Related Classes of lupos.gui.operatorgraph.GraphWrapperIDTuple

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.