public class BlobQueue
extends java.lang.Object
Constructor and Description |
---|
BlobQueue() |
Modifier and Type | Method and Description |
---|---|
void |
addCursor(int id,
Point2 p)
Called when a finger touches the multitouch surface
|
boolean |
checkId(int id) |
void |
draw(java.awt.Graphics2D g)
Draws the current fingers in contact with the surface using ellipses
|
java.util.Vector<Tuple2> |
getBlobs() |
int |
getHighestID() |
Point2 |
getLastPositionFromLHighestID() |
Point2 |
getLastPositionFromLowestID() |
Point2 |
getLastPositionFromRemainingBlob() |
int |
getNbFingers() |
java.util.ArrayList<Point2> |
getPointListFromHighestID() |
java.util.ArrayList<Point2> |
getPointListFromLowestID() |
java.util.ArrayList<Point2> |
getPointListFromSecondLowestID() |
void |
removeCursor(int id)
Called when a finger is removed from the multitouch surface
|
void |
updateCursor(int id,
Point2 p)
Called when a finger moves on the multitouch surface
|
public void addCursor(int id, Point2 p)
id
- unique identifier for the fingerp
- current finger positionpublic void updateCursor(int id, Point2 p)
id
- unique finger identifierp
- current finger positionpublic void removeCursor(int id)
id
- unique finger identifierpublic int getNbFingers()
public Point2 getLastPositionFromRemainingBlob()
public Point2 getLastPositionFromLHighestID()
public java.util.ArrayList<Point2> getPointListFromHighestID()
public java.util.ArrayList<Point2> getPointListFromLowestID()
public java.util.ArrayList<Point2> getPointListFromSecondLowestID()
public Point2 getLastPositionFromLowestID()
public int getHighestID()
public java.util.Vector<Tuple2> getBlobs()
public void draw(java.awt.Graphics2D g)
g
- public boolean checkId(int id)
id
- finger unique identifier