Package org.apache.airavata.xbaya.ui.graph

Examples of org.apache.airavata.xbaya.ui.graph.PortGUI


//    } else if (node instanceof Graph){
//        nodeGUI=new GraphGUI((Graph)node);
//    } else if (node instanceof GraphPiece){
//        nodeGUI=new GraphPieceGUI((GraphPiece)node);
    } else if (node instanceof Port){
        nodeGUI=new PortGUI((Port)node);
    } else if (node instanceof Edge){
        nodeGUI=new EdgeGUI((Edge)node);
    } else if (node instanceof TerminateInstanceNode){
        nodeGUI=new TerminateInstanceNodeGUI((TerminateInstanceNode)node);
    } else if (node instanceof InstanceNode){
View Full Code Here


        // There are two controlOutPorts.
        List<? extends Port> controlOutPorts = this.node.getControlOutPorts();
        Port controlOutPort1 = controlOutPorts.get(0);
        Point offset = new Point(getBounds().width, +this.headHeight / 2);
        PortGUI truePortGUI = NodeController.getGUI(controlOutPort1);
        truePortGUI.setOffset(offset);
        truePortGUI.setPortText("T");

        Port controlOutPort2 = controlOutPorts.get(1);
        offset = new Point(this.getBounds().width, getBounds().height - this.headHeight / 2);
        PortGUI falsePortGUI = NodeController.getGUI(controlOutPort2);
    falsePortGUI.setOffset(offset);
    falsePortGUI.setPortText("F");
   
        // No outputs
    }
View Full Code Here

//    } else if (node instanceof Graph){
//        nodeGUI=new GraphGUI((Graph)node);
//    } else if (node instanceof GraphPiece){
//        nodeGUI=new GraphPieceGUI((GraphPiece)node);
    } else if (node instanceof Port){
        nodeGUI=new PortGUI((Port)node);
    } else if (node instanceof Edge){
        nodeGUI=new EdgeGUI((Edge)node);
    } else if (node instanceof TerminateInstanceNode){
        nodeGUI=new TerminateInstanceNodeGUI((TerminateInstanceNode)node);
    } else if (node instanceof InstanceNode){
View Full Code Here

TOP

Related Classes of org.apache.airavata.xbaya.ui.graph.PortGUI

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.