Package de.sciss.common

Examples of de.sciss.common.ProcessingThread$Event


      Event[] events = history.getLatestPage();

      System.out.println("Events In the latestPage are : ");
      for (int i = 0; i < events.length; i++)
      {
        Event anEvent = events[i];
        System.out.println("Event: " + anEvent.getClass().getName()
            + "  FullFormattedMessage: "
            + anEvent.getFullFormattedMessage());
      }
    } catch (Exception e)
    {
      System.out.println("Caught Exception : " + " Name : "
          + e.getClass().getName() + " Message : " + e.getMessage()
View Full Code Here


                {
                    ArrayOfEvent aoe = (ArrayOfEvent) value;
                    Event[] evts = aoe.getEvent();
                    for (int evtID = 0; evtID < evts.length; ++evtID)
                    {
                        Event anEvent = evts[evtID];
                        System.out.println("\n----------" + "\n Event ID: "
                                + anEvent.getKey() + "\n Event: "
                                + anEvent.getClass().getName()
                                + "\n FullFormattedMessage: "
                                + anEvent.getFullFormattedMessage()
                                + "\n VM Reference: "
                                + anEvent.getVm().getVm().get_value()
                                + "\n----------\n");
                    }
                } else if (value instanceof VmEvent)
                {
                    VmEvent anEvent = (VmEvent) value;
                    System.out.println("\n----------" + "\n Event ID: "
                            + anEvent.getKey() + "\n Event: "
                            + anEvent.getClass().getName()
                            + "\n FullFormattedMessage: "
                            + anEvent.getFullFormattedMessage()
                            + "\n VM Reference: "
                            + anEvent.getVm().getVm().get_value()
                            + "\n----------\n");
                }
                System.out.println("===============");
            }
        }
View Full Code Here

        evtMgr.createCollectorForEvents(eventFilter);
      Event[] events = ehc.getLatestPage();

      for (int i = 0; i < events.length; i++)
      {
        Event anEvent = events[i];
        System.out.println("Event: " +
            anEvent.getClass().getName());
      }
    }
    si.getServerConnection().logout();
  }
View Full Code Here

    ServiceInstance si = new ServiceInstance(
        new URL(args[0]), args[1], args[2], true);

    // get the latest event and print it out
    EventManager evtMgr = si.getEventManager();
    Event latestEvent = evtMgr.getLatestEvent();
    printEvent(latestEvent);

    // create a filter spec for querying events
    EventFilterSpec efs = new EventFilterSpec();
    // limit to only error and warning
View Full Code Here

      final String name = getResourceString( "menuClose" );
      if( !confirmCancel( name )) {
        wasClosed.set( false );
        return null;
      }
      final ProcessingThread pt = confirmUnsaved( name, wasClosed );
      if( pt != null ) {
        pt.addListener( new ProcessingThread.Listener() {
          public void processStarted( ProcessingThread.Event e ) { /* ignored */ }
          public void processStopped( ProcessingThread.Event e )
          {
            if( e.isDone() ) {
              documentClosed();
View Full Code Here

    {
      final ClipboardTrackList  tl    = doc.getSelectionAsTrackList();
      final Session        doc2;
      final AudioFileDescr    afd, afd2;
      final int          selChans;
      final ProcessingThread    pt;
     
      if( tl == null ) return;
     
      selChans      = tl.getTrackNum( AudioTrail.class );
     
      afd          = doc.getDisplayDescr();
      afd2        = new AudioFileDescr();
      afd2.bitsPerSample  = afd.bitsPerSample;
      afd2.channels    = selChans;
      afd2.rate      = afd.rate;
      afd2.sampleFormat  = afd.sampleFormat;
     
      doc2        = ((MenuFactory) app.getMenuFactory()).newDocument( afd2 );
      if( doc2 == null ) {
        // it's important that the clipboard tl be diposed
        // when not used any more
        tl.dispose();
        return;
      }
     
      pt = doc2.pasteTrackList( tl, 0, getResourceString( "menuPaste" ), Session.EDIT_INSERT );
      if( pt != null ) {
        pt.addListener( new ProcessingThread.Listener() {
          public void processStarted( ProcessingThread.Event e1 ) { /* ignored */ }
          public void processStopped( ProcessingThread.Event e2 ) {
            tl.dispose();
          }
        });
View Full Code Here

      perform();
    }
   
    public void perform()
    {
      final ProcessingThread pt = closeDocument( false, new Flag( false ));
      if( pt != null ) doc.start( pt );
    }
View Full Code Here

    }

    protected void perform( String name, Span span, AudioFileDescr[] afds,
                int[] channelMap, boolean saveMarkers, boolean asCopy, boolean openAfterSave )
    {
      final ProcessingThread pt = initiate( name, span, afds, channelMap, saveMarkers, asCopy, openAfterSave );
      if( pt != null ) doc.start( pt );
    }
View Full Code Here

    }

    protected ProcessingThread initiate( String name, final Span span, final AudioFileDescr[] afds,
                       int[] channelMap, boolean saveMarkers, final boolean asCopy, final boolean openAfterSave )
    {
      final ProcessingThread pt = doc.procSave( name, span, afds, channelMap, saveMarkers, asCopy );
      if( pt == null ) return null;
     
      pt.addListener( new ProcessingThread.Listener() {
        public void processStopped( ProcessingThread.Event e )
        {
          if( !e.isDone() ) return;

          wpHaveWarned = false;
View Full Code Here

      span.replaceStart( span.stop - consc.bcPost.getLen() );

    progress    = 0.0f;
//    pt  = new ProcessingThread( this, doc.getFrame(), doc.bird, plugIn.getName(), new Object[] { context, null },
//                  Session.DOOR_ALL );
    pt  = new ProcessingThread( this, doc.getFrame(), plugIn.getName() );
    pt.putClientArg( "context", context );
    pt.putClientArg( "source", source );
    pt.putClientArg( "rar", rar );
    pt.putClientArg( "inTrnsLen", new Integer( inTrnsLen ));
//    pt.putClientArg( "tis", Track.getInfos( doc.selectedTracks.getAll(), doc.tracks.getAll() ));
View Full Code Here

TOP

Related Classes of de.sciss.common.ProcessingThread$Event

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.