public class ComponentMap
extends java.lang.Object
Constructor and Description |
---|
ComponentMap() |
Modifier and Type | Method and Description |
---|---|
void |
addBlob(MTComponent component,
int id,
Point2 p)
Adds blob with identifier id and position p to the blobque assiciated to component
|
void |
draw(java.awt.Graphics2D g2)
Call all draw methods from all blobqueues associated to all components
|
void |
removeBlob(int id,
Point2 p)
Find the component having blob with identifier id and removes it from the blobqueue
|
void |
setGestureAnalyzer(GestureAnalyzer ga)
Sets the gesture analyzer associated to the component map
|
void |
updateBlob(int id,
Point2 p)
Finds the component having blob id and updates its blobqueue with p
|
public void setGestureAnalyzer(GestureAnalyzer ga)
ga
- public void addBlob(MTComponent component, int id, Point2 p)
component
- id
- blob identifierp
- blob positionpublic void updateBlob(int id, Point2 p)
id
- blob unique idp
- blob positionpublic void removeBlob(int id, Point2 p)
id
- blob unique idp
- blob positionpublic void draw(java.awt.Graphics2D g2)
g2
-