com.softsynth.jmsl.score
Class NoteBlockEnumerator

java.lang.Object
  extended by com.softsynth.jmsl.score.NoteBlockEnumerator
All Implemented Interfaces:
java.util.Enumeration

public class NoteBlockEnumerator
extends java.lang.Object
implements java.util.Enumeration

Enumerate through all Notes in a rectangular selection of a Score. First note must come earlier in time than last note. First and last note do not have to belong to the same staff. First note's time location in the track marks the delimiter for other first notes of other Tracks and Staffs. Last note's time location in its track marks the limit of other last notes in other Tracks and Staffs. JMSL Notation Project

Author:
Nick Didkovsky , copyright 2000 Nick Didkovsky , all rights reserved.

Field Summary
static java.lang.String copyright
           
 
Constructor Summary
NoteBlockEnumerator(Score score, Note firstNote, Note lastNote, boolean maximizeEndTimeLimit)
           
 
Method Summary
 boolean hasMoreElements()
          There are more elements if the last Object returned was not the last Note
 java.lang.Object nextElement()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright
See Also:
Constant Field Values
Constructor Detail

NoteBlockEnumerator

public NoteBlockEnumerator(Score score,
                           Note firstNote,
                           Note lastNote,
                           boolean maximizeEndTimeLimit)
Method Detail

hasMoreElements

public boolean hasMoreElements()
There are more elements if the last Object returned was not the last Note

Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration