uk.org.toot.midi.sequence.edit
Class TrackSelection

java.lang.Object
  extended by uk.org.toot.midi.sequence.edit.TrackSelection
All Implemented Interfaces:
java.lang.Cloneable, Copyable, CutPasteable, Editable, Moveable, Selection, Transposable

public class TrackSelection
extends java.lang.Object
implements Selection, java.lang.Cloneable


Constructor Summary
TrackSelection(MidiTrack track)
           
TrackSelection(MidiTrack track, java.util.List<MidiNote> notes)
           
TrackSelection(MidiTrack track, MidiNote note)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean contains(MidiNote note)
           
 boolean cut()
           
 java.lang.Object deepCopy()
           
 MidiTrack getTrack()
           
 java.util.Iterator iterator()
           
 boolean move(long ticks, int semitones)
           
 boolean paste()
           
 boolean select(MidiNote note)
           
 int size()
           
 boolean transpose(int semitones)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackSelection

public TrackSelection(MidiTrack track)

TrackSelection

public TrackSelection(MidiTrack track,
                      MidiNote note)

TrackSelection

public TrackSelection(MidiTrack track,
                      java.util.List<MidiNote> notes)
Method Detail

size

public int size()
Specified by:
size in interface Selection

iterator

public java.util.Iterator iterator()

contains

public boolean contains(MidiNote note)
Specified by:
contains in interface Selection

select

public boolean select(MidiNote note)

getTrack

public MidiTrack getTrack()

cut

public boolean cut()
Specified by:
cut in interface CutPasteable

paste

public boolean paste()
Specified by:
paste in interface CutPasteable

transpose

public boolean transpose(int semitones)
Specified by:
transpose in interface Transposable

move

public boolean move(long ticks,
                    int semitones)
Specified by:
move in interface Moveable

deepCopy

public java.lang.Object deepCopy()
Specified by:
deepCopy in interface Copyable

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface Editable
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.