|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.softpro.signdocmobile.foundations.TabletTraceCollection
public class TabletTraceCollection
TabletTraceCollection represents collection of pen strokes that represent the signature
TabletTraceCollection the class used to collect all the pen traces during a single signature capture.
| Nested Class Summary | |
|---|---|
static class |
TabletTraceCollection.BinaryFormat
|
class |
TabletTraceCollection.TabletSpec
TabletSpec contains information about the captured device |
| Field Summary | |
|---|---|
static float |
SC_SIGNATURE_MAX_PRESSURE
|
| Constructor Summary | |
|---|---|
TabletTraceCollection()
|
|
TabletTraceCollection(TabletTraceCollection aSrc)
|
|
| Method Summary | |
|---|---|
void |
addTrace(TabletTrace trace)
|
void |
clear()
|
static byte[] |
createBiometricData(TabletTraceCollection aTabletTraceCollection,
TabletTraceCollection.BinaryFormat format,
boolean raw)
Helper method to create a binary blob used to store the biometric data. |
TabletTraceCollection.TabletSpec |
getTabletSpecs()
Get the TabletSpec for the TraceCollection |
java.util.List<TabletTrace> |
getTraces()
Get a list of the TabletTrace |
boolean |
isEmpty()
Returns of if the trace collection has at least one trace with one point |
boolean |
isEqual(TabletTraceCollection b)
Check if TabletTraceCollection are equal |
static TabletTraceCollection |
normalize(TabletTraceCollection aTabletTraceCollection,
float screenDpi)
|
static TabletTraceCollection |
normalize(TabletTraceCollection aTabletTraceCollection,
float screenDpi,
float targetDpi)
Deprecated. |
static android.graphics.Bitmap |
render(TabletTraceCollection aTabletTraceCollection,
PenSetting aPen,
int dpi)
Deprecated. |
static android.graphics.Bitmap |
render(TabletTraceCollection aTabletTraceCollection,
PenSetting aPen,
int dpi,
int backgroundColor)
Helper method to render a tablet trace collection to a bitmap |
static boolean |
renderInBitmap(android.graphics.Bitmap bitmap,
TabletTraceCollection aTabletTraceCollection,
PenSetting aPen)
Helper method to render a TabletTraceCollection to a pre-existing bitmap. |
static boolean |
renderInBitmap(android.graphics.Bitmap bitmap,
TabletTraceCollection aTabletTraceCollection,
PenSetting aPen,
android.graphics.Rect rect)
Helper method to render a TabletTraceCollection to a pre-existing bitmap. |
java.lang.String |
toString()
|
java.lang.String |
toString(int numlines)
|
void |
writeBinaryBlob(java.io.ByteArrayOutputStream bs,
TabletTraceCollection.BinaryFormat format)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static float SC_SIGNATURE_MAX_PRESSURE
| Constructor Detail |
|---|
public TabletTraceCollection()
public TabletTraceCollection(TabletTraceCollection aSrc)
| Method Detail |
|---|
public void addTrace(TabletTrace trace)
public void clear()
public void writeBinaryBlob(java.io.ByteArrayOutputStream bs,
TabletTraceCollection.BinaryFormat format)
throws java.io.IOException
java.io.IOExceptionpublic java.util.List<TabletTrace> getTraces()
public boolean isEmpty()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(int numlines)
public TabletTraceCollection.TabletSpec getTabletSpecs()
public boolean isEqual(TabletTraceCollection b)
b - TabletTraceCollection to compare to
@Deprecated
public static TabletTraceCollection normalize(TabletTraceCollection aTabletTraceCollection,
float screenDpi,
float targetDpi)
aTabletTraceCollection - input TabletTraceCollectionscreenDpi - screen dpitargetDpi - dpi to convert the tablet trace collection
public static TabletTraceCollection normalize(TabletTraceCollection aTabletTraceCollection,
float screenDpi)
@Deprecated
public static android.graphics.Bitmap render(TabletTraceCollection aTabletTraceCollection,
PenSetting aPen,
int dpi)
aTabletTraceCollection - input TabletTraceCollectionaPen - input pendpi - dpi for output bitmap
public static android.graphics.Bitmap render(TabletTraceCollection aTabletTraceCollection,
PenSetting aPen,
int dpi,
int backgroundColor)
aTabletTraceCollection - input TabletTraceCollectionaPen - input pendpi - dpi for output bitmapbackgroundColor - background color of output bitmap
public static boolean renderInBitmap(android.graphics.Bitmap bitmap,
TabletTraceCollection aTabletTraceCollection,
PenSetting aPen)
bitmap - input bitmap to render signature intoaTabletTraceCollection - input TabletTraceCollectionaPen - input pen
public static boolean renderInBitmap(android.graphics.Bitmap bitmap,
TabletTraceCollection aTabletTraceCollection,
PenSetting aPen,
android.graphics.Rect rect)
bitmap - input bitmap to render signature intoaTabletTraceCollection - input TabletTraceCollectionaPen - input penrect - bounding rect
public static byte[] createBiometricData(TabletTraceCollection aTabletTraceCollection,
TabletTraceCollection.BinaryFormat format,
boolean raw)
throws java.io.IOException
aTabletTraceCollection - input TabletTraceCollectionformat - Ignored raw is not usedraw - return only the signature data without the the container
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||