Package edu.indiana.extreme.xbaya.graph.dynamic

Examples of edu.indiana.extreme.xbaya.graph.dynamic.DynamicNode


        this.outputs = new ArrayList<DynamicComponentPort>();
        this.outputs.add(new DynamicComponentPort(this));
    }

    public Node createNode(Graph graph) {
      DynamicNode node = new DynamicNode(graph);

        // Copy some infomation from the component

        node.setName(getName());
        node.setComponent(new DynamicComponent());

        // Creates a unique ID for the node. This has to be after setName().
        node.createID();

        // Creat ports
        createPorts(node);

        return node;
View Full Code Here


  private void handleDynamicComponent(Node node) throws XBayaException {
    DynamicComponent dynamicComponent = (DynamicComponent) node.getComponent();
    String className = dynamicComponent.getClassName();
    String operationName = dynamicComponent.getOperationName();
    URL implJarLocation = dynamicComponent.getImplJarLocation();
    DynamicNode dynamicNode = (DynamicNode) node;
    LinkedList<Object> inputs = new LinkedList<Object>();
    List<DataPort> inputPorts = dynamicNode.getInputPorts();
    for (DataPort dataPort : inputPorts) {
      Object inputVal = findInputFromPort(dataPort);

      /*
       * Set type after get input value, and override inputValue if output type is array
View Full Code Here

      GraphPiece graphPiece = this.graph.getGUI().getGraphPieceAt(point);
      if (graphPiece instanceof DynamicNode) {
        if (this.draggedPort.getKind() == Kind.DATA_OUT
            && draggedPort instanceof DataPort) {
          this.panel.setCursor(SwingUtil.CROSSHAIR_CURSOR);
          DynamicNode dynamicNode = (DynamicNode) graphPiece;
          dynamicNode.getComponent();
          DataPort freePort = dynamicNode.getFreeInPort();
          try {
            freePort.copyType((DataPort) draggedPort);
          } catch (GraphException e) {
            engine.getErrorWindow().error(e);
            return;
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.graph.dynamic.DynamicNode

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.