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


Constructor Summary
TGBeat(TGFactory factory)
           
 
Method Summary
 void addNote(TGNote note)
           
 TGBeat clone(TGFactory factory)
           
 int countNotes()
           
 TGChord getChord()
           
 TGDuration getDuration()
           
 TGMeasure getMeasure()
           
 TGNote getNote(int index)
           
 java.util.List getNotes()
           
 long getStart()
           
 TGText getText()
           
 boolean isChordBeat()
           
 boolean isRestBeat()
           
 boolean isTextBeat()
           
 void moveNote(int index, TGNote note)
           
 void removeChord()
           
 void removeNote(TGNote note)
           
 void removeText()
           
 void setChord(TGChord chord)
           
 void setDuration(TGDuration duration)
           
 void setMeasure(TGMeasure measure)
           
 void setStart(long start)
           
 void setText(TGText text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TGBeat

public TGBeat(TGFactory factory)
Method Detail

getStart

public long getStart()

setStart

public void setStart(long start)

getDuration

public TGDuration getDuration()

setDuration

public void setDuration(TGDuration duration)

getMeasure

public TGMeasure getMeasure()

setMeasure

public void setMeasure(TGMeasure measure)

getNotes

public java.util.List getNotes()

addNote

public void addNote(TGNote note)

moveNote

public void moveNote(int index,
                     TGNote note)

removeNote

public void removeNote(TGNote note)

getNote

public TGNote getNote(int index)

countNotes

public int countNotes()

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()

isRestBeat

public boolean isRestBeat()

isChordBeat

public boolean isChordBeat()

isTextBeat

public boolean isTextBeat()

clone

public TGBeat clone(TGFactory factory)