dguitar.codecs.guitarPro
Class GPTrackLyrics

java.lang.Object
  extended bydguitar.codecs.guitarPro.GPTrackLyrics

public class GPTrackLyrics
extends java.lang.Object

This class describes the track lyrics.

Author:
Matthieu Wipliez

Field Summary
private  java.lang.String[] _lines
          Contains 5 strings of lyrics
private  int[] _measureNumber
          The measure a line of lyrics start from.
private  int _trackNumber
          The number of the track the lyrics are associated with.
 
Constructor Summary
GPTrackLyrics()
          Creates a new TrackLyrics
 
Method Summary
 java.lang.String getLines(int i)
          Returns the ith line of lyrics.
 int getMeasureNumber(int i)
          Returns the number of the measure from which the lyrics start on line i.
 int getTrackNumber()
          Returns the track number.
 void setLine(int i, java.lang.String line)
          Sets the ith line of lyrics.
 void setMeasureNumber(int i, int measureNumber)
          Sets the number of the measure from which the lyrics start on line i.
 void setTrackNumber(int trackNumber)
          Sets the track number.
 java.lang.String toString()
          Returns a string representation of this GPTrackLyrics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_lines

private java.lang.String[] _lines
Contains 5 strings of lyrics


_measureNumber

private int[] _measureNumber
The measure a line of lyrics start from.


_trackNumber

private int _trackNumber
The number of the track the lyrics are associated with.

Constructor Detail

GPTrackLyrics

public GPTrackLyrics()
Creates a new TrackLyrics

Method Detail

getLines

public java.lang.String getLines(int i)
Returns the ith line of lyrics.

Parameters:
i - the line number.
Returns:
the ith line of lyrics.

getMeasureNumber

public int getMeasureNumber(int i)
Returns the number of the measure from which the lyrics start on line i.

Parameters:
i - the line number.
Returns:
the number of the measure from which the lyrics start on line i.

getTrackNumber

public int getTrackNumber()
Returns the track number.

Returns:
the track number.

setLine

public void setLine(int i,
                    java.lang.String line)
Sets the ith line of lyrics.

Parameters:
i - the line number.
line - the line to set.

setMeasureNumber

public void setMeasureNumber(int i,
                             int measureNumber)
Sets the number of the measure from which the lyrics start on line i.

Parameters:
i - the index to be used
measureNumber - the number of the measure from which the lyrics start on line i.

setTrackNumber

public void setTrackNumber(int trackNumber)
Sets the track number.

Parameters:
trackNumber - the trackNumber to set.

toString

public java.lang.String toString()
Returns a string representation of this GPTrackLyrics.