Examples of addListener()


Examples of com.xuggle.mediatool.IMediaReader.addListener()

            log.debug("Created reader: {}", reader);
            if (ADD_VIEWER)
            {
              final IMediaViewer viewer = ToolFactory.makeViewer();
              reader.addListener(viewer);
            }
            while(reader.readPacket() == null)
            {
              log.trace("read packet: {}", numPackets[index]);
              ++numPackets[index];
View Full Code Here

Examples of com.xuggle.mediatool.IMediaTool.addListener()

    // create a tool chain:
    //   reader -> addTimeStamp -> reduceVolume -> writer

    reader.addListener(addTimeStamp);
    addTimeStamp.addListener(reduceVolume);
    reduceVolume.addListener(writer);

    // add a viewer to the writer, to see media modified media
   
    writer.addListener(ToolFactory.makeViewer());
View Full Code Here

Examples of com.xuggle.mediatool.IMediaWriter.addListener()

    final IMediaWriter writer = ToolFactory.makeWriter("myballs.mov");

    // add a viewer so we can see the media as it is created

    writer.addListener(ToolFactory.makeViewer(
        IMediaViewer.Mode.AUDIO_VIDEO, true,
        javax.swing.WindowConstants.EXIT_ON_CLOSE));

    // add the video stream
View Full Code Here

Examples of com.xuggle.mediatool.MediaReader.addListener()

          MediaToolExhaustiveTest.class.getName()+"_"+
          model + "_" +
          i + ".mov";
        // adds itself to the reader
        writer = new MediaWriter(outURL, reader);
        reader.addListener(writer);
      }
      if (doViewer)
      {
        MediaViewer viewer = new MediaViewer(viewerMode,
            true,
View Full Code Here

Examples of com.xuggle.mediatool.MediaWriter.addListener()

      return;
    File file = new File(PREFIX + "transcode-to-flv.flv");
    file.delete();
    assert(!file.exists());
    MediaWriter writer = new MediaWriter(file.toString(), mReader);
    writer.addListener(new MediaViewer(mViewerMode, true));
    mReader.addListener(writer);
    while (mReader.readPacket() == null)
      ;
    assert(file.exists());
    assertEquals(1062946, file.length(), 300);
View Full Code Here

Examples of dbfit.diff.DataTableDiff.addListener()

        if (lastRow == null) {
            throw new Error("Query structure missing from second row");
        }

        DataTableDiff diff = new DataTableDiff(loadRowStructure(lastRow));
        diff.addListener(getReporter(table));

        diff.diff(dt1, dt2);
    }

    protected FitFixtureReporter getReporter(final Parse table) {
View Full Code Here

Examples of dcamj.DcamAcquisition.addListener()

                                    IOException
  {

    final DcamAcquisition lDcamAcquisition = new DcamAcquisition(0);

    lDcamAcquisition.addListener(new DcamAcquisitionListener()
    {

      @Override
      public void frameArrivedfinal DcamAcquisition pDcamAquisition,
                                final long pAbsoluteFrameIndex,
View Full Code Here

Examples of de.ailis.oneinstance.OneInstance.addListener()

        // If Xadrian is already running then focus the already running
        // Xadrian and pass command line arguments to it. This allows us
        // to open more complexes in the already running Xadrian by
        // double-clicking the *.x3c files.
        final OneInstance oneInstance = OneInstance.getInstance();
        oneInstance.addListener(new OneInstanceListener()
        {
            @Override
            public boolean newInstanceCreated(final File workingDir, final String[] args)
            {
                SwingUtilities.invokeLater(new Runnable()
View Full Code Here

Examples of de.innovationgate.eclipse.editors.models.WGAreaDefinitionModel.addListener()

        txtName = factory.createText(subform, "Name:", "name");
        txtName.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        factory.createCheckBox(subform, "Auto creation:", "Enabled", "autoCreate");

        WGAreaDefinitionModel areaDefintionModel = new WGAreaDefinitionModel();
        areaDefintionModel.addListener(new BeanChangedListener<WGAreaDefinition>() {
            public void changed(WGAreaDefinition bean) {
                _treeViewer.refresh(bean, true);
                _model.fireModelChanged();
            }           
        });
View Full Code Here

Examples of de.innovationgate.eclipse.editors.models.WGContentItemDefinitionModel.addListener()

               
            }
        });
       
        WGContentItemDefinitionModel contentItemDefinitionModel = new WGContentItemDefinitionModel(_model);       
        contentItemDefinitionModel.addListener(new BeanChangedListener<WGContentItemDefinition>() {
            public void changed(WGContentItemDefinition bean) {
                _treeViewer.refresh(bean, true);
                _model.fireModelChanged();
            }           
        });
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.