|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.e1.mxdublin.evlist.QueryItem
public class QueryItem
To be used to check if an item is within range or with the same definition. For example, if you want to remove all items that starts at bar 2 and finishes at bar 5 (non inclusive; item at position 5 will not be selected) use this:
l = new EvList() ... do something ... l.remove(new QueryItem(2, 5));
| Field Summary | |
|---|---|
static int |
DEFAULT_END
|
static int |
DEFAULT_START
|
protected float |
end_tm
List range |
protected EvAbstractItem |
itemComp
The object to use with isLike() |
protected float |
start_tm
List range |
| Constructor Summary | |
|---|---|
QueryItem()
|
|
QueryItem(EvAbstractItem item)
Creates a query by using item.isLike() with list |
|
QueryItem(float start,
float stop)
Creates a query within range start/stop |
|
QueryItem(GroupProperties gp)
Create a query that will return objects that have the specified group-properties. |
|
QueryItem(GroupProperties[] gp)
|
|
QueryItem(int start,
int stop)
Creates a query within range start/stop |
|
| Method Summary | |
|---|---|
protected boolean |
do_match(EvAbstractItem item)
The method to override if you have a more complexe query to do. |
QueryItem |
invert()
Invert the result when match() will be used. |
boolean |
match(EvAbstractItem item)
Check if the item match current query. |
void |
resetRange()
Resets query bound to every objects in list. |
QueryItem |
setGroupProperties(GroupProperties gp)
This will filter the items that has the same group-properties. |
QueryItem |
setGroupProperties(GroupProperties[] gp)
This will filter the items that has the same group-properties within array. |
QueryItem |
setItem(EvAbstractItem item)
Sets the item that will be used to compare object with isLike() |
QueryItem |
setRange(int start,
int stop)
Sets event query range. |
QueryItem |
setRangef(float start,
float stop)
Sets event query range in quarter note. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_START
public static final int DEFAULT_END
protected float start_tm
protected float end_tm
protected EvAbstractItem itemComp
| Constructor Detail |
|---|
public QueryItem()
public QueryItem(float start,
float stop)
start - starting rangestop - stopping range
public QueryItem(int start,
int stop)
start - starting rangestop - stopping rangepublic QueryItem(EvAbstractItem item)
item - the item to comparepublic QueryItem(GroupProperties gp)
gp - will flag this item if it has the same group-propertiespublic QueryItem(GroupProperties[] gp)
| Method Detail |
|---|
public QueryItem setRange(int start,
int stop)
start - starting rangestop - stopping range
public QueryItem setRangef(float start,
float stop)
start - starting rangestop - stopping range
public void resetRange()
public QueryItem setItem(EvAbstractItem item)
item - the item to compare
public QueryItem setGroupProperties(GroupProperties gp)
gp - the group-properties to check
public QueryItem setGroupProperties(GroupProperties[] gp)
gp - the list of group properties
public QueryItem invert()
protected boolean do_match(EvAbstractItem item)
item - the item to match
public final boolean match(EvAbstractItem item)
item - The EvAbstractItem to validate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||