Package org.apache.airavata.xbaya.graph.system.gui

Examples of org.apache.airavata.xbaya.graph.system.gui.StreamSourceNode


    /**
     * @see org.apache.airavata.xbaya.component.Component#createNode(org.apache.airavata.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


        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_WORKFLOW.equals(type)) {
            node = new WorkflowNode(nodeElement);
        } else if (GraphSchema.NODE_TYPE_INPUT.equals(type)) {
            node = new InputNode(nodeElement);
        } else if (GraphSchema.NODE_TYPE_OUTPUT.equals(type)) {
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 org.apache.airavata.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.