Examples of NeighborhoodQueryParamDialog


Examples of org.gvt.gui.NeighborhoodQueryParamDialog

    //if action is called from PopupMenu
    if (useSelection)
    {
      //open dialog
      NeighborhoodQueryParamDialog dialog =
        new NeighborhoodQueryParamDialog(this.main);
      options = dialog.open(options);

      //Return if Cancel was pressed
      if ( !options.isCancel() )
      { 
        options.setCancel(true);
      }
      else
      {
        return;
      }
     
      //Get Selected Nodes in graph
      sourceNodes = getSelectedNodes();
    }
    //if action is called from TopMenuBar
    else
    {
      //open dialog
      NeighborhoodQueryParamWithEntitiesDialog dialog = new NeighborhoodQueryParamWithEntitiesDialog(main);
      options = dialog.open(options);

      if ( !options.isCancel() )
      { 
        options.setCancel(true);
      }
      else
      {
        return;
      }

      //if cancel is not pressed, begin running algorithm
     
      ArrayList<EntityHolder> addedEntities = dialog.getAddedEntities();

      Set<Node> sourceSet = main.getRootGraph().getRelatedStates(addedEntities);

      main.getRootGraph().replaceComplexMembersWithComplexes(sourceSet);
View Full Code Here

Examples of org.gvt.inspector.NeighborhoodQueryParamDialog

    //if action is called from PopupMenu
    if (useSelection)
    {
      //open dialog
      NeighborhoodQueryParamDialog dialog =
        new NeighborhoodQueryParamDialog(this.main);
      options = dialog.open(options);

      //Return if Cancel was pressed
      if ( !options.isCancel() )
      { 
        options.setCancel(true);
      }
      else
      {
        return;
      }
     
      //Get Selected Nodes in graph
      sourceNodes = getSelectedNodes();
    }
    //if action is called from TopMenuBar
    else
    {
      //open dialog
      NeighborhoodQueryParamWithEntitiesDialog dialog = new NeighborhoodQueryParamWithEntitiesDialog(main);
      options = dialog.open(options);

      if ( !options.isCancel() )
      { 
        options.setCancel(true);
      }
      else
      {
        return;
      }

      //if cancel is not pressed, begin running algorithm
     
      ArrayList<physicalEntity> addedEntities = dialog.getAddedEntities();

      Set<GraphObject> sourceSet =
        main.getRootGraph().getRelatedStates(addedEntities);

      main.getRootGraph().replaceComplexMembersWithComplexes(sourceSet);
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.