Package de.sciss.io

Examples of de.sciss.io.Span


      perform();
    }
   
    private void perform()
    {
      Span      selSpan;
      CompoundEdit  edit;
      long      pos;
   
      selSpan    = getSelectionSpan();
      if( selSpan.isEmpty() ) return;
     
      edit  = new BasicCompoundEdit();
      if( deselect ) edit.addEdit( TimelineVisualEdit.select( this, doc, new Span() ).perform() );
      pos    = (long) (selSpan.getStart() + selSpan.getLength() * weight + 0.5);
      edit.addEdit( TimelineVisualEdit.position( this, doc, pos ).perform() );
      edit.end();
      doc.getUndoManager().addEdit( edit );
    }
View Full Code Here


  {
    protected ActionPlaySelection() { /* empty */ }

    public void actionPerformed( ActionEvent e )
    {
      final Span span;
   
      if( transport.isRunning() ) {
        transport.stop();
      }
      span = doc.timeline.getSelectionSpan();
      if( !span.isEmpty() ) {
        transport.playSpan( span, 1.0 );
      } else {
        transport.play( 1.0 );
      }
    }
View Full Code Here

      }
        }
   
    protected void updateLoop()
    {
      Span span;

//      if( !doc.bird.attemptShared( Session.DOOR_TIME, 250 )) return;
//      try {
        span = doc.timeline.getSelectionSpan();
        transport.setLoop( span.isEmpty() ? null : span );
//      }
//      finally {
//        doc.bird.releaseShared( Session.DOOR_TIME );
//      }
    }
View Full Code Here

  }

  public void clear( Object source )
  {
    final boolean  wasEmpty  = isEmpty();
    final Span    span    = getSpan();

    clearIgnoreDependants();

    // ____ dep ____
    if( dependants != null ) {
View Full Code Here

    return editGetSpan( null );
  }
 
  public Span editGetSpan( AbstractCompoundEdit ce )
  {
    return new Span( editGetStart( ce ), editGetStop( ce ));
  }
View Full Code Here

    final long  totStop      = editGetStop( ce );
    final long  delta      = span.getLength();
   
    if( (delta == 0) || (start > totStop) ) return;
   
    final List  collRange    = editGetRange( new Span( start, totStop ), true, ce );
   
    if( collRange.isEmpty() ) return;
   
    final List  collToAdd    = new ArrayList();
    final List  collToRemove  = new ArrayList();
    final Span  modSpan;
    Stake    stake;
    Span    stakeSpan;
   
    switch( touchMode ) {
    case TOUCH_NONE:
      // XXX could use binarySearch ?
      for( int i = 0; i < collRange.size(); i++ ) {
View Full Code Here

    final long  totStop      = editGetStop( ce );
    final long  delta      = -span.getLength();
   
    if( (delta == 0) || (start > totStop) ) return;
   
    final List  collRange    = editGetRange( new Span( start, totStop ), true, ce );
   
    if( collRange.isEmpty() ) return;
   
    final List  collToAdd    = new ArrayList();
    final List  collToRemove  = new ArrayList();
    final Span  modSpan;
    Stake    stake;
    Span    stakeSpan;
   
    switch( touchMode ) {
    case TOUCH_NONE:
      // XXX could use binarySearch ?
      for( int i = 0; i < collRange.size(); i++ ) {
View Full Code Here

   
    if( collRange.isEmpty() ) return;
   
    final List  collToAdd    = new ArrayList();
    final List  collToRemove  = new ArrayList();
    final Span  modSpan;
    Stake    stake;
    Span    stakeSpan;
   
    switch( touchMode ) {
    case TOUCH_NONE:
      for( int i = 0; i < collRange.size(); i++ ) {
        stake    = (Stake) collRange.get( i );
View Full Code Here

    final List    collResult    = new ArrayList();
    final long    start      = span.start;
    final long    stop      = span.stop;
    final boolean  shift      = shiftVirtual != 0;
    Stake      stake, stake2;
    Span      stakeSpan;
   
    switch( touchMode ) {
    case TOUCH_NONE:
      for( int i = 0; i < stakes.size(); i++ ) {
        stake    = (Stake) stakes.get( i );
View Full Code Here

 
    if( ce != null ) {
      checkEdit( ce );
    }
 
    final Span span = addAllPr( stakes, ce );

    // ____ dep ____
    if( (dependants != null) && (span != null) ) {
      synchronized( dependants ) {
        for( int i = 0; i < dependants.size(); i++ ) {
View Full Code Here

TOP

Related Classes of de.sciss.io.Span

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.