public class MultiTouchInputComponent extends java.lang.Object implements IMultiTouchEventListener, IMultiTouchEventProducer
| Constructor and Description |
|---|
MultiTouchInputComponent(IMultiTouchInputSource source)
Instantiates a new multi touch input component.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMultiTouchInputFilter(IMultiTouchInputFilter filter)
Add a multi-touch input filter.
|
void |
cursorChanged(MultiTouchCursorEvent event)
Cursor is on the table, and moves, or rotates, or changes in some way.
|
void |
cursorClicked(MultiTouchCursorEvent event)
Cursor clicked.
|
void |
cursorPressed(MultiTouchCursorEvent event)
Cursor press arriving on the table.
|
void |
cursorReleased(MultiTouchCursorEvent event)
Cursor left the table.
|
java.util.List<java.lang.Class<? extends IMultiTouchInputFilter>> |
getActiveFilterClasses()
Gets the active filter classes.
|
IMultiTouchInputFilter |
getLastFilter()
Gets the last filter.
|
boolean |
isFilterActive(java.lang.Class<? extends IMultiTouchInputFilter> filter)
Checks if is filter active.
|
boolean |
isMultiTouchInputEnabled()
Checks if is multi touch input enabled.
|
void |
objectAdded(MultiTouchObjectEvent event)
Object/fiducial is added to the table.
|
void |
objectChanged(MultiTouchObjectEvent event)
Object/fiducial is changed - position or rotation.
|
void |
objectRemoved(MultiTouchObjectEvent event)
Object/fiducial is removed from the table.
|
void |
registerMultiTouchEventListener(IMultiTouchEventListener listener)
Register multi touch event listener.
|
void |
registerMultiTouchEventListener(IMultiTouchEventListener listener,
int index)
Register multi touch event listener.
|
void |
registerMultiTouchExceptionListener(IDispatchedMultiTouchEventExceptionListener listener)
Register multi touch exception listener.
|
void |
setMultiTouchInputEnabled(boolean isMultiTouchInputEnabled)
Sets the multi touch input enabled.
|
void |
setSource(IMultiTouchInputSource source)
Sets the source.
|
void |
unregisterMultiTouchEventListener(IMultiTouchEventListener listener)
Unregister multi touch event listener.
|
public MultiTouchInputComponent(IMultiTouchInputSource source)
source - the sourcepublic void addMultiTouchInputFilter(IMultiTouchInputFilter filter)
addMultiTouchInputFilter in interface IMultiTouchEventProducerfilter - public void cursorChanged(MultiTouchCursorEvent event)
IMultiTouchEventListenercursorChanged in interface IMultiTouchEventListenerpublic void cursorClicked(MultiTouchCursorEvent event)
IMultiTouchEventListenercursorClicked in interface IMultiTouchEventListenerpublic void cursorPressed(MultiTouchCursorEvent event)
IMultiTouchEventListenercursorPressed in interface IMultiTouchEventListenerpublic void cursorReleased(MultiTouchCursorEvent event)
IMultiTouchEventListenercursorReleased in interface IMultiTouchEventListenerpublic java.util.List<java.lang.Class<? extends IMultiTouchInputFilter>> getActiveFilterClasses()
public IMultiTouchInputFilter getLastFilter()
IMultiTouchEventProducergetLastFilter in interface IMultiTouchEventProducerpublic boolean isFilterActive(java.lang.Class<? extends IMultiTouchInputFilter> filter)
IMultiTouchEventProducerisFilterActive in interface IMultiTouchEventProducerfilter - the filterpublic boolean isMultiTouchInputEnabled()
public void objectAdded(MultiTouchObjectEvent event)
IMultiTouchEventListenerobjectAdded in interface IMultiTouchEventListenerpublic void objectChanged(MultiTouchObjectEvent event)
IMultiTouchEventListenerobjectChanged in interface IMultiTouchEventListenerpublic void objectRemoved(MultiTouchObjectEvent event)
IMultiTouchEventListenerobjectRemoved in interface IMultiTouchEventListenerpublic void registerMultiTouchEventListener(IMultiTouchEventListener listener)
IMultiTouchEventProducerregisterMultiTouchEventListener in interface IMultiTouchEventProducerlistener - the listenerpublic void registerMultiTouchEventListener(IMultiTouchEventListener listener, int index)
IMultiTouchEventProducerregisterMultiTouchEventListener in interface IMultiTouchEventProducerlistener - the listenerindex - the indexpublic void registerMultiTouchExceptionListener(IDispatchedMultiTouchEventExceptionListener listener)
IMultiTouchEventProducerregisterMultiTouchExceptionListener in interface IMultiTouchEventProducerlistener - the listenerpublic void setMultiTouchInputEnabled(boolean isMultiTouchInputEnabled)
isMultiTouchInputEnabled - the new multi touch input enabledpublic void setSource(IMultiTouchInputSource source)
source - the new sourcepublic void unregisterMultiTouchEventListener(IMultiTouchEventListener listener)
IMultiTouchEventProducerunregisterMultiTouchEventListener in interface IMultiTouchEventProducerlistener - the listener