Package lupos.gui.operatorgraph.graphwrapper

Examples of lupos.gui.operatorgraph.graphwrapper.GraphWrapper


    return ret.toString();
  }

  @Override
  public synchronized void arrange(final Arrange arrange) {
    final GraphWrapper prefixGW = new GraphWrapperPrefix(this.prefix);

    if(this.boxes.containsKey(prefixGW)) {
      final GraphBox oldBox = this.boxes.remove(prefixGW);
      this.remove(oldBox.getElement());
    }
View Full Code Here


      this.createOperator(newOp);

      this.handleAddOperator(newOp);

      final GraphWrapper gw = this.createGraphWrapper(newOp);

      // create the GraphBox at the right position...
      final GraphBox box = this.graphBoxCreator.createGraphBox(this, gw);
      box.setY(y);
      box.updateX(x, y, new HashSet<GraphBox>());
View Full Code Here

    this.createOperator(newOp);

    this.handleAddOperator(newOp);

    //    final GraphWrapper gw = new GraphWrapperOperator(newOp, this.prefix);
    final GraphWrapper gw = this.createGraphWrapper(newOp);

    // find out whether the operator is a subclass of RetrieveData...
    if(newClassSuperName.startsWith("RetrieveData")) {
      this.rootList.add(gw);
    }
View Full Code Here

    final LinkedList<GraphWrapperIDTuple> succedingElements = new LinkedList<GraphWrapperIDTuple>();

    // walk through succeeding BasicOperators...
    for(final OperatorIDTuple<Operator> oit : succedingOperators) {
      // 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()));
    }
View Full Code Here

      for( Term term : ato.getTerms()){

        if( (term.isList() || term.isUniterm()) ){

          GraphWrapper childGW = term.getSucceedingOperator();
         
          if(childGW==null){
            Operator dummyOperator = term.getDummyOperator();
           
            if(dummyOperator==null){
View Full Code Here

      for( Term term : ato.getTerms()){

        if( (term.isList() || term.isUniterm()) ){

          GraphWrapper childGW = term.getSucceedingOperator();
         
          if(childGW==null){
            Operator dummyOperator = term.getDummyOperator();
           
            if(dummyOperator==null){
View Full Code Here

    final Hashtable<GraphWrapper, AbstractSuperGuiComponent> lineLables = new Hashtable<GraphWrapper, AbstractSuperGuiComponent>();

    for(final OperatorIDTuple<Operator> opIDt : this.succeedingOperators) {
      final String text = (opIDt.getId() == 0) ? "left" : "right";

      final GraphWrapper gw = new GraphWrapperOperator(opIDt.getOperator());

      final AbstractGuiComponent<Operator> element = new OptionalPanel(this, gw, parent, text, opIDt.getOperator());

      this.annotationLabels.put(opIDt.getOperator(), element);
View Full Code Here

    public List<Operator> getTermSucceedingElements(){
      final LinkedList<Operator> list = new LinkedList<Operator>();
      for( final Term term : this.getTerms()){
        System.out.println(term.isUniterm());
        if( (term.isList() || term.isUniterm()) ){
          final GraphWrapper childGW = term.getSucceedingOperator();
          if(childGW==null){
            final Operator dummyOperator = term.getDummyOperator();
            if(dummyOperator==null){
              continue;
            }
            list.add(dummyOperator);

          } else {
            list.add((Operator)childGW.getElement());
          }
        }
      }
      System.out.println("AbstractTermOperator. getTermSucceedingElements() "+list.size());
      return list;
View Full Code Here

          this.annotationLabels.put(op, classificationOperatorPanel);
          // add predicate panel to hash table with its GraphWrapper...
          predicates.put(new GraphWrapperOperator(op), classificationOperatorPanel);
      }
      for(final Operator op : this.getTermSucceedingElements()) {
        final GraphWrapper gw = new GraphWrapperOperator(this);
        final GraphWrapper childGW = new GraphWrapperOperator(op);
        System.out.println("AbstractTermOperator.drawAnnotations() : this.getTermSucceedingElements()");
        if (op instanceof AbstractTermOperator){
          final AbstractTermOperator child = (AbstractTermOperator) op; // get current children
          child.setChild(true);
        }
View Full Code Here

   * create the button to show the operator graph.
   */
  public JButton createASTButton() {
    // create operatorgraph-button, add actionListener and add it to
    // Applet...
    final GraphWrapper graphWrapper = getASTGraphWrapper();
    final JButton bt_AST = new JButton("Show AST of " + queryOrRule());
    bt_AST.setMargin(new Insets(0, 0, 0, 0));
    bt_AST.setEnabled(graphWrapper != null);

    if (graphWrapper != null) {
View Full Code Here

TOP

Related Classes of lupos.gui.operatorgraph.graphwrapper.GraphWrapper

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.