Package de.sciss.gui

Examples of de.sciss.gui.MenuAction


    {
      super.toolAcquired( c );
      c.setCursor( zoomCsr[ 0 ]);
      if( c instanceof JComponent ) {
        final JComponent jc = (JComponent) c;
        if( actionZoomOut == null ) actionZoomOut = new MenuAction( "zoomOut",
          KeyStroke.getKeyStroke( KeyEvent.VK_ALT, InputEvent.ALT_DOWN_MASK, false )) {
          public void actionPerformed( ActionEvent e ) {
            c.setCursor( zoomCsr[ 1 ]);
          }
        };
        if( actionZoomIn == null ) actionZoomIn = new MenuAction( "zoomIn",
           KeyStroke.getKeyStroke( KeyEvent.VK_ALT, 0, true )) {
          public void actionPerformed( ActionEvent e ) {
            c.setCursor( zoomCsr[ 0 ]);
          }
        };
View Full Code Here


    {
      super.toolAcquired( c );
      c.setCursor( zoomCsr[ 0 ]);
      if( c instanceof JComponent ) {
        final JComponent jc = (JComponent) c;
        if( actionZoomOut == null ) actionZoomOut = new MenuAction( "zoomOut",
          KeyStroke.getKeyStroke( KeyEvent.VK_ALT, InputEvent.ALT_DOWN_MASK, false )) {
          public void actionPerformed( ActionEvent e ) {
            c.setCursor( zoomCsr[ 1 ]);
          }
        };
        if( actionZoomIn == null ) actionZoomIn = new MenuAction( "zoomIn",
           KeyStroke.getKeyStroke( KeyEvent.VK_ALT, 0, true )) {
          public void actionPerformed( ActionEvent e ) {
            c.setCursor( zoomCsr[ 0 ]);
          }
        };
View Full Code Here

TOP

Related Classes of de.sciss.gui.MenuAction

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.