Package de.sciss.meloncillo.gui

Examples of de.sciss.meloncillo.gui.ToolBar


   */
  public void init( Receiver rcv )
  {
    super.init( rcv );

    final ToolBar    vtb    = new VectorEditorToolBar();
    final Box      b    = Box.createHorizontalBox();
    final JPanel    gp    = GUIUtil.createGradientPanel();
    final Container    c    = getContentPane();
    c.setLayout( new BoxLayout( c, BoxLayout.Y_AXIS ));
    vtb.setOpaque( false );
    b.add( vtb );
    b.add( Box.createHorizontalGlue() );
    gp.add( b );
    c.add( gp );
    c.add( padPanel1 );
    c.add( padPanel2 );
        if( AbstractApplication.getApplication().getUserPrefs().getBoolean(
      PrefsUtil.KEY_INTRUDINGSIZE, false )) {
     
            c.add( Box.createVerticalStrut( 16 ));
        }
    vtb.addToolActionListener( distanceEditor );
    vtb.addToolActionListener( rotationEditor );

    updateSpaces();
    setVectors();
    observer  = (ObserverPalette) AbstractApplication.getApplication().getComponent( Main.COMP_OBSERVER );
    surface    = (SurfaceFrame) AbstractApplication.getApplication().getComponent( Main.COMP_SURFACE );
View Full Code Here


  private void createSettingsView()
  {
    float      f1;
    float[]      warpTable;
    final  ToolBar  vtb      = new VectorEditorToolBar();
   
    warpTable   = new float[ 1024 ];
    f1      = 1.0f / 1023;
    for( int i = 0; i < 1024; i++ ) {
      warpTable[i] = i * f1;
    }
   
    warpEditor  = new VectorEditor( warpTable );
    warpEditor.setSpace( null, VectorSpace.createLinSpace( 0.0, 1.0, 0.0, 1.0, null, null, null, null ));
    warpEditor.setPreferredSize( new Dimension( 320, 320 ));
    warpEditor.addTopPainter( this );
    warpEditor.addMouseListener( new PopupListener( VectorTransformer.createPopupMenu( warpEditor )));
    vtb.setBorder( BorderFactory.createMatteBorder( 0, 0, 2, 0, Color.white ));

    this.setLayout( new BorderLayout() );
    this.add( vtb, BorderLayout.NORTH );
    this.add( warpEditor, BorderLayout.CENTER );
    vtb.addToolActionListener( warpEditor );
//        HelpGlassPane.setHelp( this, "FilterTimeWarp" );  // EEE
  }
View Full Code Here

    final AbstractAction  actionPlay, actionStop, actionGoToTime;
    final JButton      ggFFwd, ggRewind;
    final InputMap      imap    = this.getInputMap( JComponent.WHEN_IN_FOCUSED_WINDOW );
    final ActionMap      amap    = this.getActionMap();

    toolBar      = new ToolBar( SwingConstants.HORIZONTAL );

        ggRewind    = new JButton();
    GraphicsUtil.setToolIcons( ggRewind, GraphicsUtil.createToolIcons( GraphicsUtil.ICON_REWIND ));
    ggRewind.addChangeListener( new CueListener( ggRewind, -100 ));
    imap.put( KeyStroke.getKeyStroke( KeyEvent.VK_NUMPAD1, 0, false ), "startrwd" );
View Full Code Here

TOP

Related Classes of de.sciss.meloncillo.gui.ToolBar

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.