|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<EvAbstractItem>
com.e1.mxdublin.evlist.EvList
public class EvList
EvAbstractItem array list collection.
l = EvList()
l.add("0:1:2:3", new EvSender("! @sender bd"));
l.add("1:3", new EvSender("! @sender sn"));
l.addf(4, new EvSender("! @sender ohh"));
l.add("0:1:2:3", new EvSender("! @sender chh"));
l.add("0:3", new EvNote("E-2 1 @sender myvst"));
| Field Summary | |
|---|---|
static int |
defaultLoopPoint
The default EvList length. |
static EvListClipboard |
evlistClipboard
EvList clipboard |
protected int |
loopPoint
The EvList lenght. |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
EvList()
Creates a new EvList with size of this.defaultLoopPoint. |
|
EvList(int looptm)
Creates a new EvList with specified length. |
|
| Method Summary | |
|---|---|
EvAbstractItem |
__getitem__(int idx)
(JYTHON HELPER) Return element with evlist[x]. |
boolean |
add(EvAbstractItem item)
|
void |
add(int[] tmi,
EvAbstractItem item)
Add item based on an array of int (EG: [480, 627]). |
void |
add(int tm,
EvAbstractItem item)
Add Event item in list that will be sorted by time. |
void |
add(String tms,
EvAbstractItem item)
Add item with string time format (EG: "1:2:3:4.1/2"). |
void |
addf(float[] tm,
EvAbstractItem item)
Add item based on an array of float (EG: [1, 1.5]). |
void |
addf(float tm,
EvAbstractItem item)
Add Event item in list that will be sorted by time. |
void |
clear()
Remove all element in list. |
Object |
clone()
This will clone the EvList with a deep copy of its content. |
void |
extend(int from,
EvList list)
Extends the content of another list into this list. |
TrailEventList |
factoryTrail(String name,
DublinProject project)
Creates a new trail based on this event list. |
void |
filter(QueryItem query)
Will only keep items in the list that doesn't match query. |
Collection<EvAbstractItem> |
find(QueryItem query)
|
static EvList |
fromXML(Element e)
Instanciate a EvList from XML representation. |
EvAbstractItem |
getFirst(QueryItem query)
Returns the first item that match query. |
EvAbstractItem |
getLast(QueryItem query)
Returns the last item that match query. |
List<EvAbstractItem> |
getList()
Return the internal list |
int |
getLoopPoint()
Returns the loop point size of this list. |
int |
getModCount()
Returns the number of time that this list has been modified. |
EvListIterator |
iteratorLoop()
Returns the loop iterator for this list. |
void |
reloadProperties(GroupProperties gp)
Will apply defined properties of gp in all item that has the same group-properties with-in the list. |
void |
remove(EvAbstractItem item)
Remove the item from the list. |
void |
remove(QueryItem query)
Removes all elements that match query. |
void |
repeat(int times)
Will repeat list times times. |
void |
setLoopPoint(int looptm)
Set the loop point in list. |
void |
setLoopPointf(float looptm)
|
void |
stretch(float ratio)
Will stretch event time from ratio on all events. |
EvAbstractItem[] |
toArray()
|
String |
toString()
Returns the list representation. |
Element |
toXML()
Returns XML representation of this list. |
| Methods inherited from class java.util.ArrayList |
|---|
addAll, addAll, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Field Detail |
|---|
public static int defaultLoopPoint
protected int loopPoint
public static EvListClipboard evlistClipboard
| Constructor Detail |
|---|
public EvList(int looptm)
looptm - list lengthpublic EvList()
this.defaultLoopPoint.
| Method Detail |
|---|
public boolean add(EvAbstractItem item)
add in interface Collection<EvAbstractItem>add in interface List<EvAbstractItem>add in class ArrayList<EvAbstractItem>
public void add(int tm,
EvAbstractItem item)
add in interface List<EvAbstractItem>add in class ArrayList<EvAbstractItem>tm - time of this eventitem - the EvItem to add
public void add(int[] tmi,
EvAbstractItem item)
tmi - event timesitem - the event to add
public void add(String tms,
EvAbstractItem item)
tms - event times (@see DublinHelper.tm2list(String))item - the event to add
public void addf(float tm,
EvAbstractItem item)
tm - time of this event, in float (1.0 = 480PPQ)item - the EvItem to add
public void addf(float[] tm,
EvAbstractItem item)
tm - event times in float (1.0 = 480PPQ)item - the event to addpublic void clear()
clear in interface Collection<EvAbstractItem>clear in interface List<EvAbstractItem>clear in class ArrayList<EvAbstractItem>public void remove(EvAbstractItem item)
item - the item to removepublic void remove(QueryItem query)
query - the event specification
public TrailEventList factoryTrail(String name,
DublinProject project)
name - the name of the trail to createproject - the project to register this trail
public void setLoopPoint(int looptm)
looptm - the list timepublic void setLoopPointf(float looptm)
public void stretch(float ratio)
ratio - the value to stretch ( tm=2 * ratio=0.25 >> tm=0.50 )public void repeat(int times)
times - the number of times to repeat list.public void filter(QueryItem query)
query - the items to keep
public void extend(int from,
EvList list)
from - first element positionlist - the list to extendpublic List<EvAbstractItem> getList()
public EvAbstractItem getFirst(QueryItem query)
query - the query to use
public EvAbstractItem getLast(QueryItem query)
query - the query to use
public Collection<EvAbstractItem> find(QueryItem query)
public EvListIterator iteratorLoop()
public int getLoopPoint()
public void reloadProperties(GroupProperties gp)
public int getModCount()
public Object clone()
clone in class ArrayList<EvAbstractItem>public EvAbstractItem[] toArray()
toArray in interface Collection<EvAbstractItem>toArray in interface List<EvAbstractItem>toArray in class ArrayList<EvAbstractItem>public String toString()
toString in class AbstractCollection<EvAbstractItem>public static EvList fromXML(Element e)
public Element toXML()
public EvAbstractItem __getitem__(int idx)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||