Examples of EditSetSessionObjects


Examples of de.sciss.eisenkraut.edit.EditSetSessionObjects

        selected  = true;
        collTracks  = Collections.singletonList( t )// deselect all except uns
      }
    }
    // XXX should use a lazy edit here
    edit = new EditSetSessionObjects( this, selectedTracks, collTracks ).perform();
    undo.addEdit( edit );
    repaint();
    }
View Full Code Here

Examples of de.sciss.meloncillo.edit.EditSetSessionObjects

//          for( int i = 0; i < doc.getSelectedGroups().size(); i++ ) {
//            group  = (SessionGroup) doc.getSelectedGroups().get( i );
//            edit.addPerform( new EditAddSessionObjects( this, group.getReceivers(), coll3 ));
//          }

          edit.addPerform( new EditSetSessionObjects( this, doc.getMutableSelectedReceivers(), coll3 ));
          edit.perform();
          edit.end();
          doc.getUndoManager().addEdit( edit );
        }
       
View Full Code Here

Examples of de.sciss.meloncillo.edit.EditSetSessionObjects

  {
    final PerformableEdit edit;
 
    try {
      doc.bird.waitExclusive( Session.DOOR_RCV );
      edit = new EditSetSessionObjects( this, doc.getMutableSelectedReceivers(), doc.getMutableReceivers().getAll() );
      doc.getUndoManager().addEdit( edit.perform() );
    }
    finally {
      doc.bird.releaseExclusive( Session.DOOR_RCV );
    }
View Full Code Here

Examples of de.sciss.meloncillo.edit.EditSetSessionObjects

            if( !coll.contains( hitReceiver )) {  // add object to selection
              coll.add( hitReceiver );
            } else {                // remove object from selection
              coll.remove( hitReceiver );
            }
            edit = new EditSetSessionObjects( this, doc.getMutableSelectedReceivers(), coll );
            doc.getUndoManager().addEdit( edit.perform() );
            updateReceiverShapes();
            redrawImage();
            repaint( virtualToScreenClip( hitReceiver.getBounds() ));
          }
        } else {        // single-selection
          coll = doc.getSelectedReceivers().getAll();
          if( (hitReceiver == null && !coll.isEmpty()) ||
            (hitReceiver != null && !coll.contains( hitReceiver ))) {  // selection changed indeed
           
            clipRect = getUnionRect( coll );
            coll.clear();
            if( hitReceiver != null ) {
              coll.add( hitReceiver );
              clipRect2 = hitReceiver.getBounds();
            } else {
              clipRect2 = null;
            }
            edit = new EditSetSessionObjects( this, doc.getMutableSelectedReceivers(), coll );
            doc.getUndoManager().addEdit( edit.perform() );
            updateReceiverShapes();
            redrawImage();
            efficientUpdateAndRepaint( clipRect, clipRect2, false );
          }
View Full Code Here

Examples of de.sciss.meloncillo.edit.EditSetSessionObjects

          if( e.getClickCount() == 2 ) {  // double click creates new Receiver
            rcv = createReceiver( screenToVirtual( e.getPoint() ));
            if( rcv != null ) {
              coll = doc.getSelectedReceivers().getAll();
              coll.add( rcv );
              edit = new EditSetSessionObjects( this, doc.getMutableSelectedReceivers(), coll );
              doc.getUndoManager().addEdit( edit.perform() );
              clipRect = rcv.getBounds();
              updateSurfacePaneImage( clipRect );
              updateReceiverShapes();
              redrawImage();
View Full Code Here

Examples of de.sciss.meloncillo.edit.EditSetSessionObjects

        selected  = true;
        collTracks  = Collections.singletonList( t )// deselect all except uns
      }
    }
    // XXX should use a lazy edit here
    edit = new EditSetSessionObjects( this, selectedTracks, collTracks ).perform();
    undo.addEdit( edit );
    repaint();
    }
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.