Package info.unipax.bina.visualization.model.ui.impl.basic

Examples of info.unipax.bina.visualization.model.ui.impl.basic.BasicNodeComponentUI


      for (IComponent iComponent : thingRegistry.getComponents())
      {     
        IComponentUI nUI = iComponent.getUI();
        if (nUI instanceof BasicNodeComponentUI)
        {
          BasicNodeComponentUI n = (BasicNodeComponentUI) nUI;
          String labelText = n.getLabel();
         
          Thing thing = ((IThingMappingModel) controller.getMappingModel()).getThing(iComponent);

          if (thing instanceof Participant)
          {
View Full Code Here


        if(actualPathwayString == null) //if ungrouped node was choosen
        {
          IComponentUI ui = node.getUI();
          if (ui instanceof BasicNodeComponentUI)
          {
            BasicNodeComponentUI n = (BasicNodeComponentUI) ui;
            if (!mapToDrawE.isEmpty())
            {
              pathways = mapToDrawE.getKeys(n);
            }
            else
View Full Code Here

        for (IComponent c : comps)
        {
          IComponentUI nUI = c.getUI();
          if (nUI instanceof BasicNodeComponentUI)
          {
            BasicNodeComponentUI n = (BasicNodeComponentUI) nUI;
                       
            for (Role r : p.getPlaysRoleLnkVector()) //for all roles of actual protein
            {
              Event event = r.getEventLnk(); //to which event belong the role
             
              if (event.getPathwayLnkVector() != null)
              {
                for (Pathway pathway : event.getPathwayLnkVector()) //test if event is in actual pathway
                {       
                  if (mapToDraw.containsKey(pathway))
                  {
                    mapToDrawETemp.put(pathway, n);
                  }                     
                }   
              }                               
            }               
          }
        }
      }
    } 
   
    if (mapToDrawE.isEmpty())
    {
      for (Entry<Pathway, LinkedList<BasicNodeComponentUI>> entry : mapToDraw.entrySet())
      {
        for (BasicNodeComponentUI node : entry.getValue())
        {
          mapToDrawE.put(entry.getKey(), node);
        }
      }     
    } 
   
    for (Entry<Pathway, LinkedList<BasicNodeComponentUI>> entry : mapToDrawETemp.entrySet())
    {     
      for (BasicNodeComponentUI n : entry.getValue())
      { 
        boolean need = true;
        for (String s : listOfNodesNames)
        {
          if (s.equalsIgnoreCase(n.getLabel()))
          {
            need = false;           
          }           
        }
        if (need)
View Full Code Here

TOP

Related Classes of info.unipax.bina.visualization.model.ui.impl.basic.BasicNodeComponentUI

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.