Package fbench.graph

Examples of fbench.graph.FB


      connectionType = "OutputVars";

    for ( Enumeration els = model.getGraph().elements(); els.hasMoreElements();) {
      GraphElement ge = (GraphElement) els.nextElement();
      if(ge instanceof FB){
        FB fb = (FB)ge;
        if(fb.getMainLabel().getText().equals(fbName)){
          Document fbDocument = Library.getDocument(fb.getFBType() + ".fbt");
          if(fbDocument != null){
            NodeList connectionTypeNL = fbDocument.getElementsByTagName(connectionType);
            if(connectionTypeNL.getLength() == 0)
              return fbTypeComponentList;
            NodeList interfaceNodes = connectionTypeNL.item(0).getChildNodes();
View Full Code Here


      int connectionEndPt = 0;
      GraphModel model = GraphModel.forElement(getElement());
      for ( Enumeration els = model.getGraph().elements(); els.hasMoreElements();) {
        GraphElement ge = (GraphElement) els.nextElement();
        if(ge instanceof FB){
          FB fb = (FB)ge;
          if(fb.getMainLabel().getText().equals(sourceFBName))
            connectionStartPt = fb.getPreferredBounds().x;
          else if(fb.getMainLabel().getText().equals(destinationFBName))
            connectionEndPt = fb.getPreferredBounds().x;
        }
      }       
      float dx1 = connectionStartPt + (Math.abs(connectionEndPt - connectionStartPt)/2) / scaleFactor;
      newConnectionElement.setAttribute("dx1", ""+dx1);
View Full Code Here

TOP

Related Classes of fbench.graph.FB

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.