Package de.sciss.eisenkraut.edit

Examples of de.sciss.eisenkraut.edit.EditSetTimelineLength


      final long            pasteLength  = ((Long) context.getClientArg( "pasteLen" )).longValue();
      final Span            insertSpan  = (Span) context.getClientArg( "insertSpan" );
     
      if( (context.getReturnCode() == DONE) ) {
        if( expTimeline && (pasteLength != 0) ) {  // adjust timeline
          edit.addPerform( new EditSetTimelineLength( this, Session.this, timeline.getLength() + pasteLength ));
          if( timeline.getVisibleSpan().isEmpty() ) {
            edit.addPerform( TimelineVisualEdit.scroll( this, Session.this, insertSpan ));
          }
        }
        if( !insertSpan.isEmpty() ) {
View Full Code Here


              ti.trail.editEnd( edit );
            }
          }
        }

        edit.addPerform( new EditSetTimelineLength( this, Session.this, selSpan.getLength() ));
        edit.addPerform( TimelineVisualEdit.select( this, Session.this, selSpan.shift( -selSpan.start )));

        edit.perform();
        edit.end();
        getUndoManager().addEdit( edit );
View Full Code Here

      final AbstractCompoundEdit  edit    = (AbstractCompoundEdit) context.getClientArg( "edit" );
      final Span          insertSpan  = (Span) context.getClientArg( "span" );

      if( context.getReturnCode() == DONE ) {
        if( !insertSpan.isEmpty() ) {  // adjust timeline
          edit.addPerform( new EditSetTimelineLength( this, Session.this, timeline.getLength() + insertSpan.getLength() ));
          if( timeline.getVisibleSpan().isEmpty() ) {
            edit.addPerform( TimelineVisualEdit.scroll( this, Session.this, insertSpan ));
          }
        }
        if( !insertSpan.isEmpty() ) {
View Full Code Here

            visiSpan = new Span( Math.max( 0, newDocLength - visiSpan.getLength() ), newDocLength );
            TimelineVisualEdit tve = TimelineVisualEdit.scroll( this, Session.this, visiSpan );
            edit.addPerform( tve );
          } // else visiSpan untouched
        }
        edit.addPerform( new EditSetTimelineLength( this, Session.this, newDocLength ));
      }

      final ProcessingThread proc = new ProcessingThread( this, getFrame(), procName );
      proc.putClientArg( "span", span );
      proc.putClientArg( "mode", new Integer( mode ));
View Full Code Here

TOP

Related Classes of de.sciss.eisenkraut.edit.EditSetTimelineLength

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.