Package lupos.gui.operatorgraph.visualeditor.ruleeditor.util

Examples of lupos.gui.operatorgraph.visualeditor.ruleeditor.util.RuleConnection


  private JMenu buildOperatorMenu() {
    // create JMenuItem to add a connection between two Operators...
    final JMenuItem addConnectionMI = new JMenuItem("Add connection between two operators");
    addConnectionMI.addActionListener(new ActionListener() {
      public void actionPerformed(final ActionEvent ae) {
        that.connectionMode = new RuleConnection(that);
      }
    });

    // create JMenuItem to add Operator...
    final JMenuItem opMI = new JMenuItem("Operator");
View Full Code Here


    }

    if(loadObject.has("connections")) {
      JSONObject connectionsLoadObject = loadObject.getJSONObject("connections");

      RuleConnection ruleConnection = new RuleConnection(this.visualEditor, this);

      keyIt = connectionsLoadObject.keys();

      while(keyIt.hasNext()) {
        String parentName = keyIt.next();
        JSONArray connections = connectionsLoadObject.getJSONArray(parentName);

        for(int i = 0; i < connections.length(); i += 1) {
          ruleConnection.createConnection(tmp.get(parentName), connections.getJSONObject(i), tmp);
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of lupos.gui.operatorgraph.visualeditor.ruleeditor.util.RuleConnection

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.