public class PraatInterval extends Object
| Constructor and Description |
|---|
PraatInterval(double duration)
constructor for underspecified interval from duration, with empty label; start and end times are filled in later, when
interval is one of many
|
PraatInterval(double xmin,
double xmax)
constructor from start and end times, with empty label
|
PraatInterval(double xmin,
double xmax,
String text)
constructor from start and end times and label
|
PraatInterval(double duration,
String text)
constructor for underspecified interval from duration and label; start and end times are filled in later, when interval is
one of many
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDuration()
getter for duration of interval
|
String |
getText()
getter for label String of interval; should not be null
|
double |
getXmax()
getter for end time of interval
|
double |
getXmin()
getter for start time of interval
|
boolean |
isComplete()
determine if interval is fully specified
|
void |
setDuration(double duration)
set duration of interval
|
void |
setText(String text)
set label String of interval
|
void |
setXmax(double xmax)
set end time of interval
|
void |
setXmin(double xmin)
set start time of interval
|
String |
toString()
string representation of interval, used for TextGrid output
|
void |
updateDuration()
recalculate and set duration based on current start and end times
|
public PraatInterval(double xmin,
double xmax)
xmin - start time of intervalxmax - end time of intervalpublic PraatInterval(double xmin,
double xmax,
String text)
xmin - start time of intervalxmax - end time of intervaltext - label of intervalpublic PraatInterval(double duration)
duration - of intervalpublic PraatInterval(double duration,
String text)
duration - of intervaltext - label of intervalpublic double getXmin()
public double getXmax()
public String getText()
public double getDuration()
public void setXmin(double xmin)
xmin - new start timepublic void setXmax(double xmax)
xmax - new end timepublic void setText(String text)
text - new labelpublic void setDuration(double duration)
throws IllegalArgumentException
duration - durationIllegalArgumentException - if duration is negativepublic void updateDuration()
public boolean isComplete()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.