Package lupos.gui.operatorgraph.visualeditor.util

Examples of lupos.gui.operatorgraph.visualeditor.util.GraphWrapperOperator


  public void determineRootNodes() {
    final ContainerPanel panel = (ContainerPanel) this.panel;

    for(final Operator op : this.operators)
      panel.getQueryGraph().removeFromRootList(new GraphWrapperOperator(op));

    final LinkedHashSet<Operator> allOps = new LinkedHashSet<Operator>();

    for(final Operator rootNode : this.operators) {
      final SimpleOperatorGraphVisitor sogv = new SimpleOperatorGraphVisitor() {
        private static final long serialVersionUID = -3649188246478511485L;

        public Object visit(final Operator operator) {
          allOps.add(operator);

          return null;
        }
      };
      rootNode.visit(sogv);
    }

    this.operators = RDFTerm.findRootNodes(allOps);

    for(final Operator op : this.operators)
      panel.getQueryGraph().addToRootList(new GraphWrapperOperator(op));
  }
View Full Code Here


  public VisualGraphOperator(VisualEditor<Operator> visualEditor) {
    super(visualEditor);
  }

  public GraphWrapperEditable createGraphWrapper(Operator op) {
    return new GraphWrapperOperator(op);
  }
View Full Code Here

    this.predicates.get(child).remove(index);

    if(this.predicates.get(child).size() == 0) {
      this.deleteAnnotation(child);
      child.getGUIComponent().getParentQG().addToRootList(new GraphWrapperOperator(child));
    }
  }
View Full Code Here

      PredicatePanel predicatePanel = new PredicatePanel(parent, this, child, this.prefix);

      this.annotationLabels.put(child, predicatePanel);

      // add predicate panel to hash table with its GraphWrapper...
      predicates.put(new GraphWrapperOperator(child), predicatePanel);
    }

    return predicates;
  }
View Full Code Here

TOP

Related Classes of lupos.gui.operatorgraph.visualeditor.util.GraphWrapperOperator

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.