Package lupos.gui.operatorgraph.visualeditor.queryeditor.operators

Examples of lupos.gui.operatorgraph.visualeditor.queryeditor.operators.TripleContainer


          // only single RDF terms are pasted...
          // => collect them in a TripleContainer!
          final LinkedHashSet<Operator> lhso = new LinkedHashSet<Operator>();
          lhso.addAll(rdfHash.values());

          final TripleContainer tc = new TripleContainer(lhso);
          tc.setParents();

          final GraphBox graphBox = this.visualGraphs.get(0).graphBoxCreator.createGraphBox(
              this.visualGraphs.get(0), new GraphWrapperOperator(
                  tc));
          graphBox.setY(rowY);
          graphBox.arrange(Arrange.values()[0]);

          this.visualGraphs.get(0).addOperator(graphBox.getX(), rowY,
              tc);

          ((ContainerPanel) tc.getGUIComponent()).arrange(Arrange.values()[0]);

          if (tc.getGUIComponent().getLocation().x < 0) {
            this.visualGraphs.get(0).getBoxes()
            .get(new GraphWrapperOperator(tc))
            .setX((int) this.visualGraphs.get(0).PADDING);
          }
        }
View Full Code Here


            j++;
          }
        }

        if (rdfTermToJoin.size() > 0) {
          final TripleContainer opContainer = new TripleContainer(
              rdfTermToJoin);

          joinOp.addSucceedingOperator(new OperatorIDTuple<Operator>(
              opContainer, j));
        }

        testOP = joinOp;
      } else { // There should be only triple patterns or one
        // ASTUnionConstraint / ASTGraphConstraint
        for (int i = 0; i < node.jjtGetNumChildren(); i++) {
          final Node n = node.jjtGetChild(i);

          if (n instanceof ASTTripleSet) {
            final TripleContainer opContainer = new TripleContainer(
                rdfTermToJoin);

            testOP = opContainer;

            break;
View Full Code Here

TOP

Related Classes of lupos.gui.operatorgraph.visualeditor.queryeditor.operators.TripleContainer

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.