org.herac.tuxguitar.song.models
Class TGTrack

java.lang.Object
  extended by org.herac.tuxguitar.song.models.TGTrack
Direct Known Subclasses:
TGTrackImpl

public abstract class TGTrack
extends java.lang.Object


Field Summary
static int MAX_OFFSET
           
static int MIN_OFFSET
           
 
Constructor Summary
TGTrack(TGFactory factory)
           
 
Method Summary
 void addMeasure(int index, TGMeasure measure)
           
 void addMeasure(TGMeasure measure)
           
 void clear()
           
 TGTrack clone(TGFactory factory, TGSong song)
           
 void copy(TGFactory factory, TGSong song, TGTrack track)
           
 int countMeasures()
           
 TGChannel getChannel()
           
 TGColor getColor()
           
 TGLyric getLyrics()
           
 TGMeasure getMeasure(int index)
           
 java.util.Iterator getMeasures()
           
 java.lang.String getName()
           
 int getNumber()
           
 int getOffset()
           
 TGSong getSong()
           
 TGString getString(int number)
           
 java.util.List getStrings()
           
 boolean isMute()
           
 boolean isPercussionTrack()
           
 boolean isSolo()
           
 void removeMeasure(int index)
           
 void setChannel(TGChannel channel)
           
 void setColor(TGColor color)
           
 void setLyrics(TGLyric lyrics)
           
 void setMute(boolean mute)
           
 void setName(java.lang.String name)
           
 void setNumber(int number)
           
 void setOffset(int offset)
           
 void setSolo(boolean solo)
           
 void setSong(TGSong song)
           
 void setStrings(java.util.List strings)
           
 int stringCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_OFFSET

public static final int MAX_OFFSET
See Also:
Constant Field Values

MIN_OFFSET

public static final int MIN_OFFSET
See Also:
Constant Field Values
Constructor Detail

TGTrack

public TGTrack(TGFactory factory)
Method Detail

getNumber

public int getNumber()

setNumber

public void setNumber(int number)

getMeasures

public java.util.Iterator getMeasures()

addMeasure

public void addMeasure(TGMeasure measure)

addMeasure

public void addMeasure(int index,
                       TGMeasure measure)

getMeasure

public TGMeasure getMeasure(int index)

removeMeasure

public void removeMeasure(int index)

countMeasures

public int countMeasures()

getChannel

public TGChannel getChannel()

setChannel

public void setChannel(TGChannel channel)

getStrings

public java.util.List getStrings()

setStrings

public void setStrings(java.util.List strings)

getColor

public TGColor getColor()

setColor

public void setColor(TGColor color)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getOffset

public int getOffset()

setOffset

public void setOffset(int offset)

isSolo

public boolean isSolo()

setSolo

public void setSolo(boolean solo)

isMute

public boolean isMute()

setMute

public void setMute(boolean mute)

getLyrics

public TGLyric getLyrics()

setLyrics

public void setLyrics(TGLyric lyrics)

getString

public TGString getString(int number)

stringCount

public int stringCount()

isPercussionTrack

public boolean isPercussionTrack()

getSong

public TGSong getSong()

setSong

public void setSong(TGSong song)

clear

public void clear()

clone

public TGTrack clone(TGFactory factory,
                     TGSong song)

copy

public void copy(TGFactory factory,
                 TGSong song,
                 TGTrack track)