dguitar.adaptors.song.impl
Class SongPhraseListImpl

java.lang.Object
  extended bydguitar.adaptors.song.impl.SongPhraseListImpl
All Implemented Interfaces:
SongPhrase, SongPhraseList
Direct Known Subclasses:
SongImpl

public class SongPhraseListImpl
extends java.lang.Object
implements SongPhraseList

Implementation of SongPhraseList

Author:
crnash

Field Summary
private  java.util.List phrases
           
 
Constructor Summary
SongPhraseListImpl()
           
 
Method Summary
 void addPhrase(SongPhrase phrase)
           
 SongMeasure getPerformanceMeasure(int measure)
           
 int getPerformanceMeasureCount()
           
 SongPhrase getPhrase(int index)
           
 int getPhraseCount()
           
 SongMeasure getScoreMeasure(int measure)
           
 int getScoreMeasureCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

phrases

private java.util.List phrases
Constructor Detail

SongPhraseListImpl

public SongPhraseListImpl()
Method Detail

addPhrase

public void addPhrase(SongPhrase phrase)
Specified by:
addPhrase in interface SongPhraseList

getScoreMeasureCount

public int getScoreMeasureCount()
Specified by:
getScoreMeasureCount in interface SongPhrase
Returns:
The count of the number of measures in this phrase on a printed score

getScoreMeasure

public SongMeasure getScoreMeasure(int measure)
Specified by:
getScoreMeasure in interface SongPhrase
Parameters:
measure - The measure index (0 based)
Returns:
the measure at this index when printed on a score

getPerformanceMeasureCount

public int getPerformanceMeasureCount()
Specified by:
getPerformanceMeasureCount in interface SongPhrase
Returns:
The count of the number of measures in this phrase when it is performed

getPerformanceMeasure

public SongMeasure getPerformanceMeasure(int measure)
Specified by:
getPerformanceMeasure in interface SongPhrase
Parameters:
measure - the measure index (0 based)
Returns:
the measure at this index when performed

getPhrase

public SongPhrase getPhrase(int index)
Specified by:
getPhrase in interface SongPhraseList

getPhraseCount

public int getPhraseCount()
Specified by:
getPhraseCount in interface SongPhraseList