final class AssignPointIDTouchFilter extends java.lang.Object implements TouchFilter
Modifier and Type | Field and Description |
---|---|
private IntSet |
ids |
private int[] |
mappedIndices |
private int |
nextID |
private TouchState |
oldState |
PRIORITY_ID, PRIORITY_POST_ID, PRIORITY_PRE_ID
Constructor and Description |
---|
AssignPointIDTouchFilter() |
Modifier and Type | Method and Description |
---|---|
private int |
acquireID()
Acquire a touch point ID
|
boolean |
equals(java.lang.Object o) |
boolean |
filter(TouchState state)
Assign touch point IDs, for protocol A multitouch drivers that do not
assign IDs themselves.
|
boolean |
flush(TouchState state)
Flushes this filter's state.
|
int |
getPriority()
Gets the priority of this touch filter.
|
int |
hashCode() |
private void |
releaseID(int id)
Release a touch point ID
|
java.lang.String |
toString() |
private final TouchState oldState
private int[] mappedIndices
private IntSet ids
private int nextID
private int acquireID()
private void releaseID(int id)
public int getPriority()
TouchFilter
getPriority
in interface TouchFilter
public boolean filter(TouchState state)
filter
in interface TouchFilter
state
- The new state to be filtered or modifiedpublic boolean flush(TouchState state)
TouchFilter
flush
in interface TouchFilter
state
- a TouchState object to be filled in by the filterpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object