Top Description Fields Methods
com.sun.glass.ui.monocle

pack-priv Interface TouchFilter

Known Direct Implementers
com.sun.glass.ui.monocle.AssignPointIDTouchFilter, com.sun.glass.ui.monocle.LookaheadTouchFilter, com.sun.glass.ui.monocle.NearbyPointsTouchFilter, com.sun.glass.ui.monocle.SmallMoveTouchFilter

A TouchFilter processes and modifies TouchStates before sending touch events

Field Summary

Modifier and TypeField and Description
public static final int
PRIORITY_ID

The priority value of the filter that applies IDs to points

public static final int
PRIORITY_POST_ID

The priority value of a filter that is applied after IDs are assigned to points

public static final int
PRIORITY_PRE_ID

The priority value of a filter that is applied before IDs are assigned to points

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

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.
filter
(TouchState
The new state to be filtered or modified
state
)

Filters a touch state

public boolean

Returns:

true if the filter put data into the state
flush
(TouchState
a TouchState object to be filled in by the filter
state
)

Flushes this filter's state.

public int
getPriority()

Gets the priority of this touch filter.

Field Detail

PRIORITY_IDback to summary
public static final int PRIORITY_ID

The priority value of the filter that applies IDs to points

PRIORITY_POST_IDback to summary
public static final int PRIORITY_POST_ID

The priority value of a filter that is applied after IDs are assigned to points

PRIORITY_PRE_IDback to summary
public static final int PRIORITY_PRE_ID

The priority value of a filter that is applied before IDs are assigned to points

Method Detail

filterback to summary
public boolean filter(TouchState state)

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.

flushback to summary
public boolean flush(TouchState state)

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

getPriorityback to summary
public int 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.