Package de.sciss.app

Examples of de.sciss.app.PerformableEdit.perform()


    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


      } else {
        assert false : e.getSource();
      }
      edit = new EditTableLookupRcvSense( this, doc, rcv, distTab, distSpan,
                                 rotTab, rotSpan );
      doc.getUndoManager().addEdit( edit.perform() );
    }
    catch( IOException e1 ) {
      System.err.println( e1.getLocalizedMessage() );
      setVectors();   // undo edits
    }
View Full Code Here

              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
View Full Code Here

              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

            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();
              repaint( virtualToScreenClip( clipRect ));
View Full Code Here

            Math.max( -1.0, Math.min( 1.0, ptAnchor.getY() + ptMouseTrns.getY() )));
          edit   = new EditSetReceiverAnchor( this, doc, rcv, ptAnchor );
         
//System.out.println( "ptDeltaMouse = " + ptDeltaMouse + "; ptMouseTrns = " + ptMouseTrns + "; ptAnchor = " + ptAnchor );
         
          doc.getUndoManager().addEdit( edit.perform() );
        }
      }
      dndCurrentRect  = getUnionRect( dndColl );
      updateReceiverShapes();
      efficientUpdateAndRepaint( dndRecentRect, dndCurrentRect, true );
View Full Code Here

      collNewRcv = Collections.singletonList( rcv );

      if( doc.getSelectedGroups().isEmpty() ) {
        final PerformableEdit edit;
        edit  = new EditAddSessionObjects( this, doc.getMutableReceivers(), collNewRcv );
        doc.getUndoManager().addEdit( edit.perform() );
      } else {
        final AbstractCompoundEdit edit;
        edit  = new BasicCompoundEdit();
        final List selectedGroups = doc.getSelectedGroups().getAll();
        for( int i = 0; i < collNewRcv.size(); i++ ) {
View Full Code Here

        edit.addPerform( new EditAddSessionObjects( this, doc.getMutableReceivers(), collNewRcv ));
//        for( i = 0; i < doc.getSelectedGroups().size(); i++ ) {
//          group  = (SessionGroup) doc.getSelectedGroups().get( i );
//          edit.addPerform( new EditAddSessionObjects( this, group.getReceivers(), collRcv ));
//        }
        edit.perform();
        edit.end();
        doc.getUndoManager().addEdit( edit );
      }
    }
    catch( InstantiationException e1 ) {
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.