dguitar.adaptors.song.impl
Class SongPhraseListImpl
java.lang.Object
dguitar.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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
phrases
private java.util.List phrases
SongPhraseListImpl
public SongPhraseListImpl()
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