Package edu.indiana.extreme.xbaya.component

Examples of edu.indiana.extreme.xbaya.component.Component


    /**
     * @see edu.indiana.extreme.xbaya.graph.impl.NodeImpl#getComponent()
     */
    @Override
    public Component getComponent() {
        Component component = super.getComponent();
        if (component == null) {
            // The component is null when read from the graph XML.
            component = new ConstantComponent();
            setComponent(component);
        }
View Full Code Here


    this.portViewer.setInputPort(inputPort);
    this.portViewer.setOutputPort(outputPort);

    // Reset component viewer.
    Node node = graphPanel.getSelectedNode();
    Component component;
    if (node != null) {
      component = node.getComponent();
    } else {
      component = this.componentSelector.getSelectedComponent();
    }
View Full Code Here

     */
    public void componentSelectorChanged(ComponentSelectorEvent event) {
        ComponentSelectorEventType type = event.getType();
        switch (type) {
        case COMPONENT_SELECTED:
            Component component = event.getComponent();
            setComponent(component);
            break;
        }
    }
View Full Code Here

    /**
     * @see edu.indiana.extreme.xbaya.graph.impl.NodeImpl#getComponent()
     */
    @Override
    public Component getComponent() {
        Component component = super.getComponent();
        if (component == null) {
            // The component is null when read from the graph XML.
            component = new S3InputComponent();
            setComponent(component);
        }
View Full Code Here

   *
   * @see edu.indiana.extreme.xbaya.graph.impl.NodeImpl#getComponent()
   */
  @Override
  public Component getComponent() {
    Component component = super.getComponent();
    if (component == null) {
      // The component is null when read from the graph XML.
      component = new InstanceComponent();
      setComponent(component);
    }
View Full Code Here

        workflow.setDescription("Complex math workflow");

        Graph graph = workflow.getGraph();

        // Adder nodes
        Component adderComp = this.componentRegistry.getComponents(
                MATH_ADDER_WSDL).get(0);

        Node adderNode1 = workflow.addNode(adderComp);
        adderNode1.setPosition(new Point(170, 50));

        Node adderNode2 = workflow.addNode(adderComp);
        adderNode2.setPosition(new Point(170, 210));

        // Multiplier node
        Component multiComp = this.componentRegistry.getComponents(
                MATH_MULTIPLIER_WSDL).get(0);

        Node multiNode = workflow.addNode(multiComp);
        multiNode.setPosition(new Point(320, 130));
View Full Code Here

   *
   * @see edu.indiana.extreme.xbaya.graph.impl.NodeImpl#getComponent()
   */
  @Override
  public Component getComponent() {
    Component component = super.getComponent();
        if (component == null) {
            // The component is null when read from the graph XML.
            component = new TerminateInstanceComponent();
            setComponent(component);
        }
View Full Code Here

      // The component might not have loaded if the network is slow.
      new Thread() {
        @Override
        public void run() {
          try {
            Component component = componentReference.getComponent();
            addNode(component, location);
            // To be able to delete the added node by the keyboard.
            GraphCanvas.this.panel.requestFocusInWindow();
            // XXX this sometimes throws exception.
            event.dropComplete(true);
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.component.Component

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.