Package org.gvt.editpart

Examples of org.gvt.editpart.ChsNodeEditPart


        {
            EditPart node = (EditPart) root.getChildren().get(i);
            ListIterator nodeIterator = node.getChildren().listIterator();

            while( nodeIterator.hasNext() ) {
                ChsNodeEditPart oneObj = (ChsNodeEditPart) nodeIterator.next();
                Object oneModel = oneObj.getModel();
                BioPAXElement be = null;

                if( oneModel instanceof Actor)
                {
                    be = ((Actor) oneModel).getEntity();
View Full Code Here


        {
            EditPart node = (EditPart) root.getChildren().get(i);
            ListIterator nodeIterator = node.getChildren().listIterator();

            while( nodeIterator.hasNext() ) {
                ChsNodeEditPart oneObj = (ChsNodeEditPart) nodeIterator.next();
                Object oneModel = oneObj.getModel();
                BioPAXElement be = null;

                if( oneModel instanceof Actor)
                {
                    be = ((Actor) oneModel).getEntity();
View Full Code Here

        {
            EditPart node = (EditPart) root.getChildren().get(i);
            ListIterator nodeIterator = node.getChildren().listIterator();

            while( nodeIterator.hasNext() ) {
                ChsNodeEditPart oneObj = (ChsNodeEditPart) nodeIterator.next();
                Object oneModel = oneObj.getModel();
                BioPAXElement be = null;

                if( oneModel instanceof Actor)
                {
                    be = ((Actor) oneModel).getEntity().l2pe;
View Full Code Here

  public void selectEdges(EditPart parent)
  {
    for (int i = 0; i < parent.getChildren().size(); i++)
    {
      ChsNodeEditPart node = (ChsNodeEditPart) parent.getChildren().get(i);

      for (int s = 0; s < node.getSourceConnections().size(); s++)
      {
        ChsEdgeEditPart edge =
          (ChsEdgeEditPart) node.getSourceConnections().get(s);

        if (edge.getEdgeModel().isIntragraph())
        {
          if (selectionType != SelectEdgesAction.INTER_GRAPH_EDGES)
          {
            main.getViewer().appendSelection(edge);
          }
        }
        else
        {
          if (selectionType != SelectEdgesAction.INTRA_GRAPH_EDGES)
          {
            main.getViewer().appendSelection(edge);
          }
        }
      }

      for (int s = 0; s < node.getTargetConnections().size(); s++)
      {
        ChsEdgeEditPart edge =
          (ChsEdgeEditPart) node.getTargetConnections().get(s);

        if (edge.getEdgeModel().isIntragraph())
        {
          if (selectionType != SelectEdgesAction.INTER_GRAPH_EDGES)
          {
            main.getViewer().appendSelection(edge);
          }
        }
        else
        {
          if (selectionType != SelectEdgesAction.INTRA_GRAPH_EDGES)
          {
            main.getViewer().appendSelection(edge);
          }
        }
      }

      if (node.getChildren() != Collections.EMPTY_LIST)
      {
        selectEdges(node);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.gvt.editpart.ChsNodeEditPart

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.