Top Inners Fields Constructors Methods
com.sun.glass.ui.monocle

pack-priv Class LookaheadTouchFilter

extends Object
implements TouchFilter
Class Inheritance
All Implemented Interfaces
com.sun.glass.ui.monocle.TouchFilter

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum

Field Summary

Modifier and TypeField and Description
private boolean
private LookaheadTouchFilter.FilterState
private TouchState
private TouchState

Constructor Summary

AccessConstructor and Description
pack-priv
LookaheadTouchFilter(boolean
Sets whether or not we are asking the touch pipeline to assign touch point IDs
assignIDs
)

Creates a new LookaheadTouchFilter

Method Summary

Modifier and TypeMethod and Description
public boolean
filter(TouchState
The new state to be filtered or modified
state
)

Implements com.sun.glass.ui.monocle.TouchFilter.filter.

Filters a touch state

public boolean
flush(TouchState
a TouchState object to be filled in by the filter
state
)

Implements com.sun.glass.ui.monocle.TouchFilter.flush.

Flushes this filter's state.

public int
getPriority()

Implements com.sun.glass.ui.monocle.TouchFilter.getPriority.

Gets the priority of this touch filter.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

assignIDsback to summary
private boolean assignIDs
filterStateback to summary
private LookaheadTouchFilter.FilterState filterState
previousStateback to summary
private TouchState previousState
tmpStateback to summary
private TouchState tmpState

Constructor Detail

LookaheadTouchFilterback to summary
pack-priv LookaheadTouchFilter(boolean assignIDs)

Creates a new LookaheadTouchFilter

Parameters
assignIDs:boolean

Sets whether or not we are asking the touch pipeline to assign touch point IDs

Method Detail

filterback to summary
public boolean filter(TouchState state)

Implements com.sun.glass.ui.monocle.TouchFilter.filter.

Doc from com.sun.glass.ui.monocle.TouchFilter.filter.

Filters a touch state

Parameters
state:TouchState

The new state to be filtered or modified

Returns:boolean

true if the state is consumed, in which case no further processing will be done on this touch state and no events will be sent.

Annotations
@Override
flushback to summary
public boolean flush(TouchState state)

Implements com.sun.glass.ui.monocle.TouchFilter.flush.

Doc from com.sun.glass.ui.monocle.TouchFilter.flush.

Flushes this filter's state. If this filter wants to send any additional events it should fill in the provided state object.

Parameters
state:TouchState

a TouchState object to be filled in by the filter

Returns:boolean

true if the filter put data into the state

Annotations
@Override
getPriorityback to summary
public int getPriority()

Implements com.sun.glass.ui.monocle.TouchFilter.getPriority.

Doc from com.sun.glass.ui.monocle.TouchFilter.getPriority.

Gets the priority of this touch filter. Touch filters are applied in order, sorting first by their priority and then by the order in which they were requested. Higher priority numbers are applied first.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
com.sun.glass.ui.monocle back to summary

private final Enum LookaheadTouchFilter.FilterState

extends Enum<LookaheadTouchFilter.FilterState>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final LookaheadTouchFilter.FilterState
CLEAN

No events processed yet

public static final LookaheadTouchFilter.FilterState
PENDING_MODIFIABLE

previousState contains an event that we are allowed to change before sending.

public static final LookaheadTouchFilter.FilterState
PENDING_UNMODIFIABLE

previousState contains an event that must be sent as is.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static LookaheadTouchFilter.FilterState
public static LookaheadTouchFilter.FilterState[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CLEANback to summary
public static final LookaheadTouchFilter.FilterState CLEAN

No events processed yet

PENDING_MODIFIABLEback to summary
public static final LookaheadTouchFilter.FilterState PENDING_MODIFIABLE

previousState contains an event that we are allowed to change before sending. An event can be modified if it is substantially different neither from the event that preceded it nor from the event that follows it.

PENDING_UNMODIFIABLEback to summary
public static final LookaheadTouchFilter.FilterState PENDING_UNMODIFIABLE

previousState contains an event that must be sent as is. This will happen when an event is the first to be processed on this pulse, or "Substantially different" means that two events differ in the number of touch points or in the IDs assigned to those points.

Constructor Detail

FilterStateback to summary
private FilterState()

Method Detail

valueOfback to summary
public static LookaheadTouchFilter.FilterState valueOf(String name)
valuesback to summary
public static LookaheadTouchFilter.FilterState[] values()