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 IMultiTouchEventProducer
filter
- public void cursorChanged(MultiTouchCursorEvent event)
IMultiTouchEventListener
cursorChanged
in interface IMultiTouchEventListener
public void cursorClicked(MultiTouchCursorEvent event)
IMultiTouchEventListener
cursorClicked
in interface IMultiTouchEventListener
public void cursorPressed(MultiTouchCursorEvent event)
IMultiTouchEventListener
cursorPressed
in interface IMultiTouchEventListener
public void cursorReleased(MultiTouchCursorEvent event)
IMultiTouchEventListener
cursorReleased
in interface IMultiTouchEventListener
public java.util.List<java.lang.Class<? extends IMultiTouchInputFilter>> getActiveFilterClasses()
public IMultiTouchInputFilter getLastFilter()
IMultiTouchEventProducer
getLastFilter
in interface IMultiTouchEventProducer
public boolean isFilterActive(java.lang.Class<? extends IMultiTouchInputFilter> filter)
IMultiTouchEventProducer
isFilterActive
in interface IMultiTouchEventProducer
filter
- the filterpublic boolean isMultiTouchInputEnabled()
public void objectAdded(MultiTouchObjectEvent event)
IMultiTouchEventListener
objectAdded
in interface IMultiTouchEventListener
public void objectChanged(MultiTouchObjectEvent event)
IMultiTouchEventListener
objectChanged
in interface IMultiTouchEventListener
public void objectRemoved(MultiTouchObjectEvent event)
IMultiTouchEventListener
objectRemoved
in interface IMultiTouchEventListener
public void registerMultiTouchEventListener(IMultiTouchEventListener listener)
IMultiTouchEventProducer
registerMultiTouchEventListener
in interface IMultiTouchEventProducer
listener
- the listenerpublic void registerMultiTouchEventListener(IMultiTouchEventListener listener, int index)
IMultiTouchEventProducer
registerMultiTouchEventListener
in interface IMultiTouchEventProducer
listener
- the listenerindex
- the indexpublic void registerMultiTouchExceptionListener(IDispatchedMultiTouchEventExceptionListener listener)
IMultiTouchEventProducer
registerMultiTouchExceptionListener
in interface IMultiTouchEventProducer
listener
- 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)
IMultiTouchEventProducer
unregisterMultiTouchEventListener
in interface IMultiTouchEventProducer
listener
- the listener