Package edu.indiana.extreme.xbaya.graph.system.gui

Examples of edu.indiana.extreme.xbaya.graph.system.gui.StreamSourceNode


        NodeImpl node;
        if (GraphSchema.NODE_TYPE_WS.equals(type)) {
            node = new WSNode(nodeElement);
        } else if(GraphSchema.NODE_TYPE_STREAM_SOURCE.equals(type)){
          node = new StreamSourceNode(nodeElement);
        }else if(GraphSchema.NODE_TYPE_CEP.equals(type)){
          node = new CepNode(nodeElement);
        }else if (GraphSchema.NODE_TYPE_WORKFLOW.equals(type)) {
            node = new WorkflowNode(nodeElement);
        } else if (GraphSchema.NODE_TYPE_INPUT.equals(type)) {
View Full Code Here


  /**
   * @see edu.indiana.extreme.xbaya.component.Component#createNode(edu.indiana.extreme.xbaya.graph.Graph)
   */
  @Override
  public StreamSourceNode createNode(Graph graph) {
    StreamSourceNode node = new StreamSourceNode(graph);
    if (this.streamName != null) {
      node.setName(NAME+"_"+this.streamName);
    } else {
      node.setName(NAME);
    }
    node.setComponent(this);

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

    // Creates a output port
    createPorts(node);

    return node;
View Full Code Here

            public void actionPerformed(ActionEvent e) {

              String stream = model.getStream(row);
              String rate = model.getStreamRate(row);

              StreamSourceNode node = new StreamSourceComponent(stream, rate)
                  .createNode(engine.getWorkflow().getGraph());
              engine.getGUI().getGraphCanvas().repaint();
              node.setStreamName(stream);
              engine.getWorkflow().getGraph().setStreamModel(model);
            }
          });
          popupMenu.add(addMenuItem);
View Full Code Here

      this.draggedNode.getGUI().setDraggedFlag(false);
      this.panel.setCursor(SwingUtil.DEFAULT_CURSOR);

      // Check if it s stream grouping
      if (draggedNode instanceof InputNode) {
        StreamSourceNode streamNode = this.graph.getGUI()
            .getStreamSourceAt(point);
        if (streamNode != null) {
          streamNode.addInputNode((InputNode) draggedNode);
        }

      }
      this.draggedNode = null;
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.graph.system.gui.StreamSourceNode

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.