Implementation: org.sigtec.ink.Note

iGesture uses the org.sigtec.ink.Note class to represent gestures captured from a 2D input device. A Note consists of Traces defined by time stamped Points . Beside the coordinates and the timestamp a point can contain additional information such as the force, rotation, pitch and yaw. The schema of the XML note representation is shown in Listing.

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

	<xs:element name="note" type="NoteType" />

	<xs:complexType name="NoteType">
		<xs:sequence minOccurs="1" maxOccurs="unbounded">
			<xs:element name="trace" type="TraceType" />
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TraceType">
		<xs:sequence minOccurs="1" maxOccurs="unbounded">
			<xs:element name="point" type="PointType" />
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="PointType">
		<xs:sequence>
			<xs:element name="x" type="xs:double"></xs:element>
			<xs:element name="y" type="xs:double"></xs:element>
			<xs:element name="timestamp" type="xs:long"></xs:element>
			<xs:element name="force" type="xs:int"></xs:element>
			<xs:element name="yaw" type="xs:double"></xs:element>
			<xs:element name="pitch" type="xs:double"></xs:element>
			<xs:element name="rotation" type="xs:double"></xs:element>
		</xs:sequence>
	</xs:complexType>
</xs:schema>