Examples of VectorEditor


Examples of de.sciss.meloncillo.gui.VectorEditor

    distVAxis.setSpace( distanceSpace );
    box        = Box.createHorizontalBox();
    box.add( Box.createHorizontalStrut( distVAxis.getPreferredSize().width ));
    box.add( distHAxis );
   
    distanceEditor = new VectorEditor();
    distanceEditor.setSpace( null, distanceSpace );
    distancePopup  = VectorTransformer.createPopupMenu( distanceEditor );

    padPanel1 = new JPanel( new BorderLayout() );
    padPanel1.add( BorderLayout.CENTER, distanceEditor );
    padPanel1.add( box, BorderLayout.NORTH );
    padPanel1.add( distVAxis, BorderLayout.WEST );
//    padPanel1.setBorder( BorderFactory.createMatteBorder( 4, 4, 2, 4, Color.white ));

    rotationSpace  = VectorSpace.createLinSpace( 0.0, 360.0, 0.0, 2.0,
                     app.getResourceString( "rcvEditRotation" ), null, null, null );

    rotHAxis    = new Axis( Axis.HORIZONTAL, Axis.FIXEDBOUNDS );
    rotHAxis.setSpace( rotationSpace );
    rotVAxis    = new Axis( Axis.VERTICAL, Axis.FIXEDBOUNDS );
    rotVAxis.setSpace( rotationSpace );
    box        = Box.createHorizontalBox();
    box.add( Box.createHorizontalStrut( rotVAxis.getPreferredSize().width ));
    box.add( rotHAxis );

    rotationEditor = new VectorEditor();
    rotationEditor.setSpace( null, rotationSpace );
    rotationPopup  = VectorTransformer.createPopupMenu( rotationEditor );
    padPanel2 = new JPanel( new BorderLayout() );
    padPanel2.add( BorderLayout.CENTER, rotationEditor );
    padPanel2.add( box, BorderLayout.NORTH );
View Full Code Here

Examples of de.sciss.meloncillo.gui.VectorEditor

    msgCursorX    = new MessageFormat( app.getResourceString( "simpleTrnsEditXMsg" ), Locale.US );   // XXX
    msgCursorY    = new MessageFormat( app.getResourceString( "simpleTrnsEditYMsg" ), Locale.US );   // XXX

//    setOpaque( false );

    xEditor = new VectorEditor();
    xEditor.setSpace( null, VectorSpace.createLinSpace( 0.0, 1.0, 0.0, 1.0,
                app.getResourceString( "labelX" ), null, null, null ));
    xEditor.setFillArea( false );
    xEditor.addListener( this );    // we don't use DynamicListening because of being only rendered in the JTable
    padPanel1 = new JPanel();
    padPanel1.setLayout( new BorderLayout() );
    padPanel1.add( BorderLayout.CENTER, xEditor );
    padPanel1.setBorder( BorderFactory.createMatteBorder( 2, 0, 2, 0, Color.white ));   // top left bottom right
//    padPanel1.setOpaque( false );

    yEditor = new VectorEditor();
    yEditor.setSpace( null, VectorSpace.createLinSpace( 0.0, 1.0, 0.0, 1.0,
                app.getResourceString( "labelY" ), null, null, null ));
    yEditor.setFillArea( false );
    yEditor.addListener( this );    // we don't use DynamicListening because of being only rendered in the JTable
    padPanel2 = new JPanel();
View Full Code Here

Examples of de.sciss.meloncillo.gui.VectorEditor

    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 ));
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.