class LookaheadTouchFilter extends java.lang.Object implements TouchFilter
| Modifier and Type | Class and Description |
|---|---|
private static class |
LookaheadTouchFilter.FilterState |
| Modifier and Type | Field and Description |
|---|---|
private boolean |
assignIDs |
private LookaheadTouchFilter.FilterState |
filterState |
private TouchState |
previousState |
private TouchState |
tmpState |
PRIORITY_ID, PRIORITY_POST_ID, PRIORITY_PRE_ID| Constructor and Description |
|---|
LookaheadTouchFilter(boolean assignIDs)
Creates a new LookaheadTouchFilter
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
filter(TouchState state)
Filters a touch state
|
boolean |
flush(TouchState state)
Flushes this filter's state.
|
int |
getPriority()
Gets the priority of this touch filter.
|
java.lang.String |
toString() |
private TouchState previousState
private TouchState tmpState
private boolean assignIDs
private LookaheadTouchFilter.FilterState filterState
LookaheadTouchFilter(boolean assignIDs)
assignIDs - Sets whether or not we are asking the touch pipeline to
assign touch point IDspublic boolean filter(TouchState state)
TouchFilterfilter in interface TouchFilterstate - The new state to be filtered or modifiedpublic boolean flush(TouchState state)
TouchFilterflush in interface TouchFilterstate - a TouchState object to be filled in by the filterpublic int getPriority()
TouchFiltergetPriority in interface TouchFilterpublic java.lang.String toString()
toString in class java.lang.Object