Package org.bnplusplus.model.bnpp

Examples of org.bnplusplus.model.bnpp.Pathway


   * @return ListHashMap with groups (according to pathways) that can be visualized
   * */
  private ListHashMap<Pathway, BasicNodeComponentUI> selectGroups(ListHashMap<Pathway, BasicNodeComponentUI> map)
  {
    ListHashMap<Pathway, BasicNodeComponentUI> NewMap = new ListHashMap<Pathway, BasicNodeComponentUI>();
    Pathway pathwayA = new Pathway();   
   
    for(Entry<Pathway, LinkedList<BasicNodeComponentUI>> entry : map.entrySet())
    {           
      for (BasicNodeComponentUI node : entry.getValue())
      { 
        //node.setBorderColor(Color.WHITE);
        if(map.getKeys(node).size()==1)
        {
          Pathway pathway = map.getKeys(node).getFirst();
          NewMap.put(pathway, node);         
       
        else if(map.getKeys(node).size()>2)
        {       
         
          NewMap.put(pathwayA, node)
          highlightNode(node, 3, null);
         
          Pathway pathway = entry.getKey();
          mapToDrawC.put(pathway, node);         
        }   
        else
        {
          highlightNode(node, 3, null);
         
          Pathway pathway = entry.getKey();
          mapToDrawC.put(pathway, node);         
        }
      }
    } 
    LinkedList<Pathway> listPath = new LinkedList<Pathway>();
View Full Code Here

TOP

Related Classes of org.bnplusplus.model.bnpp.Pathway

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.