Examples of NengoClipboard


Examples of ca.nengo.ui.util.NengoClipboard

   * Create context menu
   *
   * @return Menu builder
   */
  protected void constructMenu(PopupMenuBuilder menu, Double posX, Double posY) {
    NengoClipboard clipboard = NengoGraphics.getInstance().getClipboard();
    if (clipboard.hasContents()) {
      ArrayList<String> clipboardNames = clipboard.getContentsNames();
      String selectionName = "";
      if (clipboardNames.size() == 1) {
        selectionName = clipboardNames.get(0);
      } else {
        selectionName = "selection";
View Full Code Here

Examples of ca.nengo.ui.util.NengoClipboard

        this.nodeContainer = nodeContainer;
    }

    @Override
    protected void action() throws ActionException {
      NengoClipboard clipboard = NengoGraphics.getInstance().getClipboard();
        if (clipboard.hasContents()) {
      ArrayList<Node> nodes = clipboard.getContents();
      ArrayList<Point2D> offsets = clipboard.getOffsets();
      WorldImpl clipboardSrcWorld = clipboard.getSourceWorld();
         
          for (int i = 0; i < nodes.size(); i++) {
            Node node = nodes.get(i);
            try {
              CreateModelAction.ensureNonConflictingName(node, nodeContainer);
View Full Code Here

Examples of ca.nengo.ui.util.NengoClipboard

        return nodeContainer;
    }

    @Override
    protected void initialize() {
        clipboard = new NengoClipboard();
        clipboard.addClipboardListener(new NengoClipboard.ClipboardListener() {

            public void clipboardChanged() {
                updateEditMenu();
            }
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.