Package edu.indiana.extreme.xbaya.graph.impl

Examples of edu.indiana.extreme.xbaya.graph.impl.PortImpl


     */
    @Override
    protected void setPortPositions() {
        super.setPortPositions();

        PortImpl controlInPort = this.node.getControlInPort();
        if (controlInPort != null) {
            Point off = new Point(0, this.headHeight / 2);
            controlInPort.getGUI().setOffset(off);
        }
    }
View Full Code Here


            Point offset = new Point(PortGUI.DATA_PORT_SIZE / 2,
                    this.headHeight + PORT_INITIAL_GAP + PORT_GAP * i);
            port.getGUI().setOffset(offset);
        }

        PortImpl controlInPort = this.node.getControlInPort();
        if (controlInPort != null) {
            Point offset = new Point(0, this.headHeight / 2);
            controlInPort.getGUI().setOffset(offset);
        }

        // There are two controlOutPorts.
        List<? extends Port> controlOutPorts = this.node.getControlOutPorts();
        Port controlOutPort1 = controlOutPorts.get(0);
View Full Code Here

                GraphSchema.PORT_TYPE_ATTRIBUTE);
        if (type == null) {
            // Old graphs don't have the namespace for the attribute.
            type = portElement.attributeValue(GraphSchema.PORT_TYPE_ATTRIBUTE);
        }
        PortImpl port;
        if (GraphSchema.PORT_TYPE_WS_DATA.equals(type)) {
            port = new WSPort(portElement);
        } else if(GraphSchema.PORT_TYPE_CEP.equals(type)){
          port = new CepPort(portElement);
        }else if (GraphSchema.PORT_TYPE_SYSTEM_DATA.equals(type)) {
View Full Code Here

                        "Cannot connect more than one Control Ports to the Exit node.");
            }
        }
    }
    protected List<ControlEdge> getEdges() {
      PortImpl port = getControlInPort();
        List<ControlEdge> edges = (List<ControlEdge>) port.getEdges();
        return edges;
    }
View Full Code Here

                // This should not happen.
                throw new XBayaRuntimeException(originalFromNode.getClass()
                        .getName());
            }
            Port originalToPort = originalFromPort.getToPorts().get(0);
            PortImpl toPort = graph.getPort(originalToPort.getID());
            InputNode inputNode = (InputNode) toPort.getFromNode();
            inputNode.setDefaultValue(output);
        }

        return workflow;
    }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.graph.impl.PortImpl

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.