public class ToolSense
extends java.lang.Object
The object identifies a ToolSense™ physical tool by "Tool Vendor ID" and "Tool Product ID".
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
tool_blob |
protected int |
tool_product_id |
protected int |
tool_vendor_id |
| Constructor and Description |
|---|
ToolSense() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getToolBlob()
The format of Tool blob is defined by each Tool Vendor Id and Tool Product Id
|
int |
getToolProductId()
Return Tool Product ID for a given MotionEvent pointer
|
int |
getToolVendorId()
Return tool vendor ID for a given MotionEvent pointer
|
void |
init(int toolVendorId,
int toolProductId,
byte[] toolBlob) |
boolean |
isValid()
Check the validity of ToolSense object
|
protected int tool_vendor_id
protected int tool_product_id
protected byte[] tool_blob
public void init(int toolVendorId,
int toolProductId,
byte[] toolBlob)
public boolean isValid()
public int getToolVendorId()
Tool Vendor ID of ToolSense
public int getToolProductId()
Tool Product ID of ToolSense
public byte[] getToolBlob()