|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarytts.util.data.text.PraatTextGrid
public class PraatTextGrid
Representation of a Praat TextGrid annotation. A TextGrid consists of a number of tiers (which can be either TextTiers or, more commonly, IntervalTiers), containing mutually independent label strings and their associated time points.
| Constructor Summary | |
|---|---|
PraatTextGrid()
bare constructor |
|
PraatTextGrid(java.util.Vector<PraatTier> tiers)
constructor accepting a Vector of PraatTiers |
|
| Method Summary | |
|---|---|
void |
appendTier(PraatTier tier)
add a new tier at the end of the TextGrid's tiers |
int |
getNumberOfTiers()
getter for number of tiers |
PraatTier |
getTier(int index)
getter for individual tier |
double |
getXmax()
getter for TextGrid end time. |
double |
getXmin()
getter for TextGrid start time. |
void |
setTiers(java.util.Vector<PraatTier> tiers)
replace tiers by specified Vector of tiers |
java.lang.String |
toString()
string representation of TextGrid, as it is written into text files by Praat and this.writeToFile(). |
void |
writeToFile(java.lang.String fileName)
write TextGrid to text file which can be used by Praat |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PraatTextGrid()
public PraatTextGrid(java.util.Vector<PraatTier> tiers)
tiers - | Method Detail |
|---|
public double getXmin()
public double getXmax()
public int getNumberOfTiers()
public PraatTier getTier(int index)
index - of desired tier
public void setTiers(java.util.Vector<PraatTier> tiers)
tiers - public void appendTier(PraatTier tier)
tier - to be appended
public void writeToFile(java.lang.String fileName)
throws java.io.IOException
fileName - of TextGrid file
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||