Package vg.core.event

Examples of vg.core.event.AUIEvent


      return toolBar;
    }
    @Override
    public void update(Observable o, Object arg) {
      if (arg instanceof AUIEvent) {
        AUIEvent event = (AUIEvent) arg;
        switch (event.getType()) {
        case DEF_CHANGE_UI_STYLE: {
          SwingUtilities.invokeLater(new Runnable() {
            public void run() {
              synchronized (PathSelectingPanel.this) {
                SwingUtilities.updateComponentTreeUI(PathSelectingPanel.this.toolBar);
View Full Code Here


    });
    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:
            {
              UIEventChangeView bufEvent = (UIEventChangeView)event;
              FilterPlugin.this.view = bufEvent.getView();
              if(FilterPlugin.this.filter.isVisible()) {
View Full Code Here

    quitMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F4, KeyEvent.ALT_DOWN_MASK));
    // Add event and request listener for this window
    this.eventListener = new Observer() {
      public synchronized void update(Observable o, Object arg) {
        if(arg instanceof AUIEvent) {
          final AUIEvent event = (AUIEvent)arg;
          switch (event.getType()) {
            case DEF_CLOSE_PROGRAM: {
              quit();
              break;
            }
            case DEF_CHANGE_UI_STYLE: {
View Full Code Here

    this.view.setLayout(new GridLayout(1,1));
    this.view.add(this.scrollPane);
  }
  public void update(Observable o, Object arg) {
    if(arg instanceof AUIEvent) {
      final AUIEvent event = (AUIEvent)arg;
      SwingUtilities.invokeLater(new Runnable() {
        public void run() {
          switch(event.getType()) {
            case DEF_OPEN_NEW_GRAPH:
            {
              UIEventOpenNewGraph bufEvent = (UIEventOpenNewGraph)event;
              SimpleNavigator.this.addGraph(bufEvent.getGraphId());
              break;
View Full Code Here

    }, "edit");
  }
  private void changeView(Object obj) {
    if(obj==null) return;
    if(obj instanceof AUIEvent) {
      AUIEvent event = (AUIEvent)obj;
      switch(event.getType()) {
        case DEF_CHANGE_VIEW:
        {
          UIEventChangeView bufEvent = (UIEventChangeView)event;
          this.view = bufEvent.getView();
          break;
View Full Code Here

    this.userInterface.addInstrument(this);
  }
  public void update(Observable o, Object arg) {
    synchronized (this.theMutexObject) {
      if(arg instanceof AUIEvent) {
        AUIEvent event = (AUIEvent)arg;
        switch (event.getType()) {
          case DEF_CHANGE_UI_STYLE: {
            SwingUtilities.invokeLater(new Runnable() {
              public void run() {
                synchronized (ZoomPanel.this.theMutexObject) {
                  SwingUtilities.updateComponentTreeUI(ZoomPanel.this.toolBar);
View Full Code Here

      }
    };     
  }
  public void update(Observable o, Object arg) {
    if(arg instanceof AUIEvent) {
      AUIEvent event = (AUIEvent)arg;
      switch(event.getType()) {
        case DEF_CHANGE_VIEW:
        {
          UIEventChangeView bufEvent = (UIEventChangeView)event;
          setGraphView(bufEvent.getView());
          break;
View Full Code Here

    });
    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: {
              notepad.close();
              break;
            }
            case DEF_CHANGE_UI_STYLE: {
View Full Code Here

      this.userInterface.addRequest(req);     
    }
  }
  private void localUpdate(Observable o, Object arg) {
    if (arg instanceof AUIEvent) {
      AUIEvent event = (AUIEvent) arg;
      switch (event.getType()) {
        case DEF_OPEN_NEW_TAB: {
          UIEventOpenNewTab bufEvent = (UIEventOpenNewTab)event;
          synchronized (this.tabSet) {
            this.tabSet.add(bufEvent.getTabId());
          }
View Full Code Here

    });
    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:
            {
              UIEventChangeView bufEvent = (UIEventChangeView)event;
              view = bufEvent.getView();
              if(filter.isVisible()) {
View Full Code Here

TOP

Related Classes of vg.core.event.AUIEvent

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.