Examples of NodeModel


Examples of org.gvt.model.NodeModel

  protected Command createAddCommand(Request request,
    EditPart childEditPart,
    Object constraint)
  {
    NodeModel part = (NodeModel) childEditPart.getModel();
    Rectangle rect = (Rectangle) constraint;

    AddCommand add = new AddCommand();
    add.setParent((CompoundModel) getHost().getModel());
    add.setChild(part);
View Full Code Here

Examples of org.gvt.model.NodeModel

        Control mod = (Control) map.get(c.getRDFId());
        new EffectorSecondHalf(mod, this, mod.getControl());
      }
      else if (c.isCONTROLLEDOf().isEmpty() && c.getCONTROLLER().size() == 1)
      {
        NodeModel source = map.get(c.getCONTROLLER().iterator().next().getRDFId());
        new NonModulatedEffector(source, this, c,
          c.getCONTROLLER().iterator().next(), inter);
      }
      else
      {
View Full Code Here

Examples of org.gvt.model.NodeModel

    Set<physicalEntityParticipant> prodSet = direction == RIGHT_TO_LEFT ?
      conv.getLEFT() : conv.getRIGHT();
   
    for (physicalEntityParticipant par : subsSet)
    {
      NodeModel sub = map.get(par.getRDFId());
      new Substrate(sub, this, par);
    }
    for (physicalEntityParticipant par : prodSet)
    {
      NodeModel prod = map.get(par.getRDFId());
      new Product(this, prod, par);
    }

    // Infer if this conversion is a transcription

    if (!t && subsSet.isEmpty() && prodSet.size() == 1)
    {
      t = true;
//      this.setText("t");
      util.recordModelTag(BioPAXGraph.TRANSCRIPTION_TAG, "");
    }

    // Create effectors.
   
    for (control con : conv.isCONTROLLEDOf())
    {
      if (map.containsKey(con.getRDFId()))
      {
        Control cont = (Control) map.get(con.getRDFId());
        new EffectorSecondHalf(cont, this, cont.getControl());
      }
      else if (con.isCONTROLLEDOf().isEmpty() && con.getCONTROLLER().size() == 1)
      {
        NodeModel source = map.get(con.getCONTROLLER().iterator().next().getRDFId());
        new NonModulatedEffector(source, this, con,
          con.getCONTROLLER().iterator().next(), conv);
      }
      else
      {
View Full Code Here

Examples of org.gvt.model.NodeModel

    int totalDegree = 0;
    int nodeCounted = 0;

    for (Object o : graph.getNodes())
    {
      NodeModel node = (NodeModel) o;

      if (node instanceof ComplexMember ||
        node instanceof Compartment ||
        (node instanceof Actor && ((Actor) node).isUbique()))
      {
        continue;
      }

      int degree = node.getSourceConnections().size() + node.getTargetConnections().size();

      if (degree > 15)
      {
        System.out.println("degree = " + degree + " node = " + node.getText() + " type = " +
          node.getClass().getName().substring(
            node.getClass().getName().lastIndexOf(".") + 1));
      }

      totalDegree += degree;
      nodeCounted++;
    }
View Full Code Here

Examples of org.gvt.model.NodeModel

    Set<GraphObject> cropto = new HashSet<GraphObject>();

    for (Object o : graph.getNodes())
    {
      NodeModel node = (NodeModel) o;
      if (node.isHighlight())
      {
        cropto.add((GraphObject) node);
      }
    }
View Full Code Here

Examples of org.jdesktop.swingx.treetable.NodeModel

           
        };

       
        // create NodeModel: returns a Contributor for each column
        contributorNodeModel = new NodeModel() {
            public int getColumnCount() {
                // defined on init
                return columnCount;
            }
            public Class<?> getColumnClass(int columnIndex) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.