Examples of UIEventCreateNewConnection


Examples of vg.core.event.UIEventCreateNewConnection

        if(locGraphId == null || locGraphId < 0) {
          VisualGraph.windowMessage.warningMessage("Warning: Uncorrect graph.", "Warning");
          return;       
        }
        if(connectionId < 0) {
          UIEventCreateNewConnection event = new UIEventCreateNewConnection(getNextId(), locConnectName, locAnchor, locGraphId, locGraphName, fileId);
          param.userInterface.addEvent(event);             
        } else {
          UIEventDeleteConnection event1 = new UIEventDeleteConnection(connectionId);
          param.userInterface.addEvent(event1);
          UIEventCreateNewConnection event2 = new UIEventCreateNewConnection(connectionId, locConnectName, locAnchor, locGraphId, locGraphName, fileId);
          param.userInterface.addEvent(event2);
        }
        Connector.this.setVisible(false);       
      }
    });
View Full Code Here

Examples of vg.core.event.UIEventCreateNewConnection

    this.connectionId = connectionId;

    this.setVisible(true);
  }
  public void addConnection(String connectionName, String anchor, int graphId, String graphName, int fileId) {
    UIEventCreateNewConnection event = new UIEventCreateNewConnection(getNextId(), connectionName, anchor, graphId, graphName, fileId);
    this.param.userInterface.addEvent(event);
  }
View Full Code Here

Examples of vg.core.event.UIEventCreateNewConnection

            }
            break;
          }
          case DEF_CREATE_NEW_CONNECT:
          {
            UIEventCreateNewConnection bufEvent = (UIEventCreateNewConnection)event;
            addNewConnect(bufEvent.getConnectionId(), bufEvent.getConnectionName(), bufEvent.getGraphId(), bufEvent.getAnchor());
            break;
          }
          case DEF_DELETE_CONNECT:
          {
            UIEventDeleteConnection bufEvent = (UIEventDeleteConnection)event;
            removeConnect(bufEvent.getConnectId());
            break;
          }
          case DEF_CHANGE_UI_STYLE:
          {
            updateUITheme();
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.