Package org.gvt.model

Examples of org.gvt.model.NodeModel


    {
      Object o = ((EditPart)selectedObjects.next()).getModel();

      if (o instanceof NodeModel)
      {
        NodeModel model = (NodeModel) o;

        if (model instanceof Actor)
        {
          Actor actor = (Actor) model;
View Full Code Here


    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

  /**
   * Gets the graph that this node is inserted.
   */
  public BioPAXL2Graph getGraph()
  {
    NodeModel parent = (NodeModel) node;

    do
    {
      parent = parent.getParentModel();
    }
    while (parent != null && !(parent instanceof BioPAXL2Graph));

    return (BioPAXL2Graph) parent;
  }
View Full Code Here

  /**
   * Gets the compartment that this node is in.
   */
  public Compartment getCompartment()
  {
    NodeModel parent = (NodeModel) node;

    do
    {
      parent = parent.getParentModel();
    }
    while (parent != null && !(parent instanceof Compartment));

    return (Compartment) parent;
  }
View Full Code Here

TOP

Related Classes of org.gvt.model.NodeModel

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.