|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.sciss.io.Region
public class Region
A struct class: region in an audio file. (copied from FScape).
AudioFileDescr.KEY_REGIONS,
Serialized Form| Field Summary | |
|---|---|
java.lang.String |
name
A region's name |
Span |
span
A region's time span in sample frames |
| Constructor Summary | |
|---|---|
Region(Region orig)
Constructs a new immutable region identical to a given region. |
|
Region(Span span,
java.lang.String name)
Constructs a new immutable region |
|
| Method Summary | |
|---|---|
static int |
add(java.util.List regions,
Region region,
boolean byBegin)
Adds region chronologically to a pre-sorted list. |
java.lang.Object |
clone()
Returns a new region which is equal to this one. |
static int |
find(java.util.List regions,
java.lang.String name,
int startIndex)
Gets the index for specific region in a list. |
static java.util.List |
sort(java.util.List regions,
boolean byBegin)
Sorts regions chronologically |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Span span
public final java.lang.String name
| Constructor Detail |
|---|
public Region(Span span,
java.lang.String name)
span - time span in sample framesname - region's namepublic Region(Region orig)
orig - the region to copy| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
CloneNotSupportedException
is never thrown.
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
public static java.util.List sort(java.util.List regions,
boolean byBegin)
regions - a vector whose elements are
instanceof Region.byBegin - true to sort by region begin points;
false to sort by region end points
public static int add(java.util.List regions,
Region region,
boolean byBegin)
regions - a vector whose elements are
instanceof Region and which are chronologically
sorted according to the byBegin flag.region - the region to insert such that
its predecessor has a time span's start (byBegin==true)
or stop (byBegin==false) less or equal this region's
time span start or stop
and the regions's successor has a time span's start or stop
greater than this regions's time span start or stop.byBegin - true to sort by region begin points;
false to sort by region end points
public static int find(java.util.List regions,
java.lang.String name,
int startIndex)
regions - a vector whose elements are
instanceof Region.name - region name to findstartIndex - where to begin
startIndex) of a region whose name equals
the given name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||