Class ClipList

  • java.lang.Object
    • java.util.AbstractCollection<E>
      • java.util.AbstractList<E>
        • java.util.ArrayList<Clip>
          • uk.ac.qmul.eecs.depic.daw.ClipList


  • public class ClipList
    extends java.util.ArrayList<Clip>
    A list of Clips
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(int index, Clip element)
      Unsupported method
      boolean add(Clip s)
      Adds a new SampleSelection.
      boolean addAll(int index, java.util.Collection<? extends Clip> c) 
      boolean addAll(java.util.Collection<? extends Clip> collection) 
      void addSoundWaveListener(SoundWaveListener l) 
      void clear() 
      protected void fireSoundWaveListeners(SoundWaveEvent evt) 
      SoundWaveEditor getClipEditor() 
      java.util.List<Clip> getClipsAt(int pos) 
      java.util.List<Clip> getClipsAtTime(float time) 
      int getLength()
      Returns the length of the SoundWave
      float getLengthMs() 
      int getScaleFactor() 
      boolean remove(java.lang.Object c) 
      boolean removeAll(java.util.Collection<?> c) 
      boolean removeSoundWaveListener(SoundWaveListener l) 
      boolean retainAll(java.util.Collection<?> collection) 
      void setScaleFactor(int newScaleFactor)
      changes the scale factor of this clip list.
      • Methods inherited from class java.util.AbstractCollection

        containsAll, toString
      • Methods inherited from class java.util.AbstractList

        equals, hashCode
      • Methods inherited from class java.util.ArrayList

        clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeIf, removeRange, replaceAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from interface java.util.Collection

        parallelStream, stream
      • Methods inherited from interface java.util.List

        containsAll, equals, hashCode, of, of, of, of, of, of, of, of, of, of, of, of
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • add

        public boolean add(Clip s)
        Adds a new SampleSelection. The order of selections is kept (ordered insert).
        Overrides:
        add in class java.util.ArrayList<Clip>
        Parameters:
        s - the new selection to add
      • add

        public void add(int index,
                        Clip element)
        Unsupported method
        Overrides:
        add in class java.util.ArrayList<Clip>
        Throws:
        java.lang.UnsupportedOperationException
      • addAll

        public boolean addAll(java.util.Collection<? extends Clip> collection)
        Overrides:
        addAll in class java.util.ArrayList<Clip>
      • addAll

        public boolean addAll(int index,
                              java.util.Collection<? extends Clip> c)
        Overrides:
        addAll in class java.util.ArrayList<Clip>
      • removeAll

        public boolean removeAll(java.util.Collection<?> c)
        Overrides:
        removeAll in class java.util.ArrayList<Clip>
      • retainAll

        public boolean retainAll(java.util.Collection<?> collection)
        Overrides:
        retainAll in class java.util.ArrayList<Clip>
      • remove

        public boolean remove(java.lang.Object c)
        Overrides:
        remove in class java.util.ArrayList<Clip>
      • clear

        public void clear()
        Overrides:
        clear in class java.util.ArrayList<Clip>
      • removeSoundWaveListener

        public boolean removeSoundWaveListener(SoundWaveListener l)
      • fireSoundWaveListeners

        protected void fireSoundWaveListeners(SoundWaveEvent evt)
      • getLength

        public int getLength()
        Returns the length of the SoundWave
        Returns:
      • getLengthMs

        public float getLengthMs()
      • getClipsAt

        public java.util.List<Clip> getClipsAt(int pos)
      • getClipsAtTime

        public java.util.List<Clip> getClipsAtTime(float time)
      • setScaleFactor

        public void setScaleFactor(int newScaleFactor)
        changes the scale factor of this clip list. All the contained clips will be rescaled according to the new scale factor.
        Parameters:
        newScaleFactor -
      • getScaleFactor

        public int getScaleFactor()