Examples of Track


Examples of org.apache.tapestry5.integration.app1.data.Track

        return new MusicLibrary()
        {
            public Track getById(long id)
            {
                Track result = idToTrack.get(id);

                if (result != null)
                    return result;

                throw new IllegalArgumentException(String.format("No track with id #%d.", id));
            }

            public List<Track> getTracks()
            {
                return tracks;
            }

            public List<Track> findByMatchingTitle(String title)
            {
                String titleLower = title.toLowerCase();

                List<Track> result = CollectionFactory.newList();

                for (Track t : tracks)
                {
                    if (t.getTitle().toLowerCase().contains(titleLower))
                        result.add(t);
                }

                return result;
            }
        };
View Full Code Here

Examples of org.apache.tapestry5.integration.app1.data.Track

        return new MusicLibrary()
        {
            public Track getById(long id)
            {
                Track result = idToTrack.get(id);

                if (result != null) return result;

                throw new IllegalArgumentException(String.format("No track with id #%d.", id));
            }

            public List<Track> getTracks()
            {
                return tracks;
            }

            public List<Track> findByMatchingTitle(String title)
            {
                String titleLower = title.toLowerCase();

                List<Track> result = CollectionFactory.newList();

                for (Track t : tracks)
                {
                    if (t.getTitle().toLowerCase().contains(titleLower)) result.add(t);
                }

                return result;
            }
        };
View Full Code Here

Examples of org.broad.igv.track.Track

        String text = null;
        for (MouseableRegion mouseableRegion : mouseableRegions) {
            if (mouseableRegion.containsPoint(x, y)) {
                Collection<Track> tracks = mouseableRegion.getTracks();
                if (tracks != null && tracks.size() == 1) {
                    Track track = tracks.iterator().next();
                    text = track.getNameValueString(y);
                } else {
                    text = mouseableRegion.getText();
                }
                break;
            }
View Full Code Here

Examples of org.discogs.model.Track

        System.out.println("Title: " + release.getTitle());
        System.out.println("Artist: " + release.getArtists().get(0).getName());
        System.out.println("Tracks");
        List<Track> tracks = release.getTracks();
        for (int i = 0; i < tracks.size(); i++) {
          Track curr = tracks.get(i);
          System.out.println("\t" + (i + 1) + ": " + curr.getTitle());
        }
      }
      Artist artist = discogs.getArtist("Richard H. Kirk", "Richard H Kirk");
      System.out.println(artist);
      Label label = discogs.getLabel("Warp Records");
View Full Code Here

Examples of org.imagearchive.lsm.toolbox.info.scaninfo.Track

    int tracksnum = 0;
    while (tag.entry != 0x0FFFFFFFF) {
      tag = getScanInfoTag(stream);
      if (Track.isTrack(tag.entry)) {
        tracksnum++;
        Track t = new Track();
        while (tag.entry != 0x0FFFFFFFF) {
          tag = getScanInfoTag(stream);

          if (IJ.debugMode)
            IJ.log("Tracktag: " + Long.toHexString(tag.entry));
View Full Code Here

Examples of org.mcisb.beacon.experiment.Track

            ArrayList tracks=currentSpot.getTracks();
            ArrayList excitations=currentSpot.getExcitations();
           
            // Tracks first!
            for (int k=0; k<tracks.size();k++) {
              Track currentTrack = (Track)tracks.get(k);
              RecordModel trackNode = recordModelFactory.createRecordModel("Track"); //$NON-NLS-1$
              trackNode.setValue("id", currentTrack.getId(), false); //$NON-NLS-1$
              trackNode.setValue("name", currentTrack.getName(), false); //$NON-NLS-1$
              spotNode.addChild("Track", trackNode, false); //$NON-NLS-1$
            }
            // Excitations!
            for (int k=0; k<excitations.size(); k++) {
              Excitation currentExcitation = (Excitation)excitations.get(k);
View Full Code Here

Examples of org.musicdb.Track

    return _add;
  }
 
  protected boolean addTrack(final Album it, final String trackTitle, final String trackDuration) {
    List<Track> _tracks = it.getTracks();
    Track _track = new Track();
    final Procedure1<Track> _function = new Procedure1<Track>() {
      public void apply(final Track it) {
        it.setTitle(trackTitle);
        Duration _duration = new Duration(trackDuration);
        int _seconds = _duration.getSeconds();
        it.setSeconds(_seconds);
      }
    };
    Track _doubleArrow = ObjectExtensions.<Track>operator_doubleArrow(_track, _function);
    boolean _add = _tracks.add(_doubleArrow);
    return _add;
  }
View Full Code Here

Examples of quicktime.std.movies.Track

    boolean hasAudio = false;
    boolean hasVideo = false;
   
    for (int i = 1; i <= m.getTrackCount(); ++i)
    {
      final Track track = m.getTrack(i);
      final Media media = track.getMedia();
      final MediaHandler mediaHandler = media.getHandler();
      // MediaHandler can be instanceof both AudioMediaHandler and VisualMediaHandler, for example MPEGMediaHandler.
      if (mediaHandler instanceof AudioMediaHandler)
      {
        hasAudio = true;
View Full Code Here

Examples of se.despotify.domain.media.Track

    }


    long previousChecksum = playlist.calculateChecksum();

    Track track = playlist.getTracks().remove(position - 1);

    playlist.setChecksum(playlist.calculateChecksum());

    String xml = String.format(
        "<change><ops><del><i>%s</i><k>%s</k></del></ops><time>%d</time><user>%s</user></change>" +
View Full Code Here

Examples of vavi.sound.mfi.Track

     * ���ׂẴI�[�f�B�I�f�[�^�`�����N�̍��v�̒������擾���܂��B
     * @since MFi 4.0
     */
    static int getAudioDatumLength(Sequence sequence) {
        int audioDataLength = 0;
        Track track = sequence.getTracks()[0];
        for (int j = 0; j < track.size(); j++) {
            MfiEvent event = track.get(j);
            MfiMessage message = event.getMessage();
            if (message instanceof AudioDataMessage) {
                audioDataLength += message.getLength();
            }
        }
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.