Package lupos.gui.operatorgraph.visualeditor.guielements

Examples of lupos.gui.operatorgraph.visualeditor.guielements.ContainerPanel


      op.setParentContainer(this, new HashSet<Operator>());
  }


  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


    final JPanel panel = recursiveQueryGraph.createGraph(
        gw.getContainerElements(),
        Arrange.values()[0]);

    this.panel = new ContainerPanel(this, gw, panel, recursiveQueryGraph, parent);
    this.panel.setBorder(new LineBorder(bgColor));

    if(this.operators.size() == 0) {
      this.panel.setPreferredSize(new Dimension(150, 100));
View Full Code Here

TOP

Related Classes of lupos.gui.operatorgraph.visualeditor.guielements.ContainerPanel

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.