dguitar.adaptors.song.impl
Class RepeatedSongPhraseImpl
java.lang.Object
dguitar.adaptors.song.impl.RepeatedSongPhraseImpl
- All Implemented Interfaces:
- RepeatedSongPhrase, SongPhrase
- public class RepeatedSongPhraseImpl
- extends java.lang.Object
- implements RepeatedSongPhrase
Implementation of RepeatedSongPhrase
- Author:
- crnash
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
phrase
SongPhrase phrase
repeatCount
int repeatCount
RepeatedSongPhraseImpl
public RepeatedSongPhraseImpl(SongPhrase phrase,
int repeatCount)
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()
- Specified by:
getPhrase
in interface RepeatedSongPhrase
- Returns:
- Returns the phrase.
getRepeatCount
public int getRepeatCount()
- Specified by:
getRepeatCount
in interface RepeatedSongPhrase
- Returns:
- Returns the repeatCount.