Package vg.core

Examples of vg.core.AMenuItem


          FilterPlugin.this.filter.setSubGraph(FilterPlugin.this.view);
        }
      }
    });
    this.jMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F, KeyEvent.CTRL_DOWN_MASK));
    this.param.userInterface.addMenuItem(new AMenuItem(this.jMenuItem) {
      public void update(java.util.Observable o, Object arg) {
        if(arg instanceof AUIEvent) {
          AUIEvent event = (AUIEvent)arg;
          switch(event.getType()) {
            case DEF_CHANGE_VIEW:
View Full Code Here


      }
    });
    this.undoMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Z, KeyEvent.CTRL_DOWN_MASK));
    this.redoMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Y, KeyEvent.CTRL_DOWN_MASK));
    //---------------------------------------
    this.param.userInterface.addMenuItem(new AMenuItem(this.undoMenuItem) {
      public void update(Observable o, Object arg) {
        changeView(arg);       
      }
    }, "edit");
    this.param.userInterface.addMenuItem(new AMenuItem(this.redoMenuItem) {
      public void update(Observable o, Object arg) {
        changeView(arg);
      }
    }, "edit");
  }
View Full Code Here

            }
          });
          LnFMenuItem.add(skinMenu);
        }

        param.userInterface.addMenuItem(new AMenuItem(LnFMenuItem) {
          public void update(Observable o, Object arg) {
          }
        }, "window");
      }
    });
View Full Code Here

          }
        }
      }
    });
   
    parameter.userInterface.addMenuItem(new AMenuItem(graphSettings) {
      public void update(Observable o, Object arg) {
      }
    }, "edit");
  }
View Full Code Here

      }
    });
    this.saveMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, KeyEvent.CTRL_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK));
    this.loadMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, KeyEvent.CTRL_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK));
    //---------------------------------------
    this.param.userInterface.addMenuItem(new AMenuItem(this.saveMenuItem) {
      public void update(Observable o, Object arg) {
      }
    }, "file");
    this.param.userInterface.addMenuItem(new AMenuItem(this.loadMenuItem) {
      public void update(Observable o, Object arg) {

      }
    }, "file");
  }
View Full Code Here

      public void actionPerformed(ActionEvent e) {
        notepad.open();
      }
    });
    this.jMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, KeyEvent.CTRL_DOWN_MASK));
    this.parameter.userInterface.addMenuItem(new AMenuItem(this.jMenuItem) {     
      public void update(Observable o, Object arg) {
        if(arg instanceof AUIEvent) {
          final AUIEvent event = (AUIEvent)arg;
          switch (event.getType()) {
            case DEF_CLOSE_PROGRAM: {
View Full Code Here

      public void actionPerformed(ActionEvent e) {
        closeAllTab();
      }
    });
   
    this.userInterface.addMenuItem(new AMenuItem(this.closeTabMenuItem) {
      public void update(Observable o, Object arg) {
        // empty, because we state update method for closing all tab menu item
      }
    }, "File");
    this.userInterface.addMenuItem(new AMenuItem(this.closeAllTabMenuItem) {
      public void update(Observable o, Object arg) {
        localUpdate(o, arg);
      }
    }, "File");
View Full Code Here

        filter.open();
        filter.changeView(view);
      }
    });
    this.jMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F, KeyEvent.CTRL_DOWN_MASK));
    this.param.userInterface.addMenuItem(new AMenuItem(this.jMenuItem) {
      public void update(java.util.Observable o, Object arg) {
        if(arg instanceof AUIEvent) {
          AUIEvent event = (AUIEvent)arg;
          switch(event.getType()) {
            case DEF_CHANGE_VIEW:
View Full Code Here

      public void actionPerformed(ActionEvent e) {
        SearchPlugin.this.searchPanel.open();
      }
    });
    this.jMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, KeyEvent.CTRL_DOWN_MASK));
    this.parameter.userInterface.addMenuItem(new AMenuItem(this.jMenuItem) {
      public void update(Observable o, Object arg) {
        if(arg instanceof AUIEvent) {
          final AUIEvent event = (AUIEvent)arg;
          switch (event.getType()) {
            case DEF_CLOSE_PROGRAM: {
View Full Code Here

        openGraph();
      }
    });
    this.jMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, KeyEvent.CTRL_DOWN_MASK));
    //---------------------------------------
    this.parameter.userInterface.addMenuItem(new AMenuItem(this.jMenuItem) {
      public void update(Observable o, Object arg) {
      }
    }, "File");
        fileChooser = new JFileChooser(".");
    String lastDir = VisualGraph.config.getProperty(GUIOpener.DEF_LAST_OPEN_GRAPH_DIR);
View Full Code Here

TOP

Related Classes of vg.core.AMenuItem

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.