EasyScriptUncompressedDecoder

Implements EasyScriptDecoder

This class creates the live signature and coordinates that are generated by an uncompressed ScripTouch EasyScript device.

package

Application

Methods

Constructor, creates a new instance of EasyScriptUncompressedDecoder class.

__construct(\com\scriptel\SignatureProtocolsignatureProtocol, intposition, \com\scriptel\EasyScriptEventListener[]listOfCoordinateReceiverListener) : mixed

Arguments

signatureProtocol

\com\scriptel\SignatureProtocol

The signature protocol that is used (STNSignatureProtocol).

position

int

Position in the string.

listOfCoordinateReceiverListener

\com\scriptel\EasyScriptEventListener[]

A list of the CoordinateReceiver listeners.

Response

mixed

This method attempts to take a four character point and decode it using the protocol's value tables.

decodePoint(string[]ePoint) : \com\scriptel\Coordinate
Throws
\com\scriptel\SignatureInvalidException

Thrown in the event there was a problem reading the point.

Arguments

ePoint

string[]

Array of four characters from the signature array to decode.

Response

\com\scriptel\Coordinate

Representing the decoded point in percentage of the screen (0->1).

Gets the current signature protocol.

getSignatureProtocol() : \com\scriptel\SignatureProtocol

Response

\com\scriptel\SignatureProtocol

The current used signature protocol.

This method parses the incoming signature in the batch mode. It converts the signature to single chars to handle it in the streaming mode.

parse(mixedstr) : mixed

Arguments

str

mixed

Response

mixed

This method parses the signature character by character to decode it.

parseSignature(stringchr) : mixed
Throws
\com\scriptel\SignatureInvalidException

Thrown in the event of a problem while parsing the signature.

Arguments

chr

string

A char read from the signature.

Response

mixed

Constants

The maximum number that it is possible to encode using the numbering scheme used by the ScripTouch EasyScript devices.

MAX_NUM

Properties

The protocol by which to decode incoming signature strings.

signatureProtocol : \com\scriptel\SignatureProtocol
var

Type(s)

SignatureProtocol

This is the position of the character in the signature.

position : int
var

Type(s)

int

A list of Coordinate Receiver listeners.

coordinateReceiverListeners : 
var

EasyScriptEventListener[].

This is s string that contains the characters of the incoming signature.

signatureStream : string
var

Type(s)

string

A new stroke.

newStroke : 
var

boolean.

Used to decode keyboard codes.

keyboardDecoder : \com\scriptel\KeyboardDecoder
var

Type(s)

KeyboardDecoder