org.herac.tuxguitar.song.models
Class TGBeat

java.lang.Object
  extended by org.herac.tuxguitar.song.models.TGBeat
Direct Known Subclasses:
TGBeatImpl

public abstract class TGBeat
extends java.lang.Object


Field Summary
static int MAX_VOICES
           
 
Constructor Summary
TGBeat(TGFactory factory)
           
 
Method Summary
 TGBeat clone(TGFactory factory)
           
 int countVoices()
           
 TGChord getChord()
           
 TGMeasure getMeasure()
           
 long getStart()
           
 TGStroke getStroke()
           
 TGText getText()
           
 TGVoice getVoice(int index)
           
 boolean isChordBeat()
           
 boolean isRestBeat()
           
 boolean isTextBeat()
           
 void removeChord()
           
 void removeText()
           
 void setChord(TGChord chord)
           
 void setMeasure(TGMeasure measure)
           
 void setStart(long start)
           
 void setText(TGText text)
           
 void setVoice(int index, TGVoice voice)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_VOICES

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

TGBeat

public TGBeat(TGFactory factory)
Method Detail

getMeasure

public TGMeasure getMeasure()

setMeasure

public void setMeasure(TGMeasure measure)

getStart

public long getStart()

setStart

public void setStart(long start)

setVoice

public void setVoice(int index,
                     TGVoice voice)

getVoice

public TGVoice getVoice(int index)

countVoices

public int countVoices()

setChord

public void setChord(TGChord chord)

getChord

public TGChord getChord()

removeChord

public void removeChord()

getText

public TGText getText()

setText

public void setText(TGText text)

removeText

public void removeText()

isChordBeat

public boolean isChordBeat()

isTextBeat

public boolean isTextBeat()

getStroke

public TGStroke getStroke()

isRestBeat

public boolean isRestBeat()

clone

public TGBeat clone(TGFactory factory)