|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynergynetframework.awt.AWTAppRenderer
public abstract class AWTAppRenderer
Utility base class for building AWT based multi-touch applications. Listens for multi-touch input, and keeps a track of 'blobs'. Blobs are stored in the coordinate space determined by the height and width, set via setSize.
| Constructor Summary | |
|---|---|
AWTAppRenderer()
|
|
| Method Summary | |
|---|---|
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.Map<java.lang.Long,Blob> |
getBlobs()
Get the current blob map. |
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. |
abstract void |
render(java.awt.Graphics2D g2d)
Render. |
void |
setSize(java.awt.Dimension d)
Sets the size of the coordinate space that blobs will be reported in. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AWTAppRenderer()
| Method Detail |
|---|
public void cursorChanged(MultiTouchCursorEvent event)
IMultiTouchEventListener
cursorChanged in interface IMultiTouchEventListenerevent - the eventpublic void cursorClicked(MultiTouchCursorEvent event)
IMultiTouchEventListener
cursorClicked in interface IMultiTouchEventListenerevent - the eventpublic void cursorPressed(MultiTouchCursorEvent event)
IMultiTouchEventListener
cursorPressed in interface IMultiTouchEventListenerevent - the eventpublic void cursorReleased(MultiTouchCursorEvent event)
IMultiTouchEventListener
cursorReleased in interface IMultiTouchEventListenerevent - the eventpublic java.util.Map<java.lang.Long,Blob> getBlobs()
public void objectAdded(MultiTouchObjectEvent event)
IMultiTouchEventListener
objectAdded in interface IMultiTouchEventListenerevent - the eventpublic void objectChanged(MultiTouchObjectEvent event)
IMultiTouchEventListener
objectChanged in interface IMultiTouchEventListenerevent - the eventpublic void objectRemoved(MultiTouchObjectEvent event)
IMultiTouchEventListener
objectRemoved in interface IMultiTouchEventListenerevent - the eventpublic abstract void render(java.awt.Graphics2D g2d)
g2d - the g2dpublic void setSize(java.awt.Dimension d)
d - the new size
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||