Class for handling ink points. Includes a public Array instance for InkPoint storage.
public var array:Array
height:Number
[read-only]
A bounding box-like structure.
Implementation
public function get height():Number
latestStroke:InkTimeline
[read-only]
Uses pressure data to find the last stroke in the collection of strokes.
Implementation
public function get latestStroke():InkTimeline
maxX:Number
[read-only]
Point with the greatest x coordinate.
Implementation
public function get maxX():Number
maxY:Number
[read-only]
Point with the greatest y coordinate.
Implementation
public function get maxY():Number
minX:Number
[read-only]
Point with the least x coordinate.
Implementation
public function get minX():Number
minY:Number
[read-only]
Point with the least y coordinate.
Implementation
public function get minY():Number
ratioWH:Number
[read-only]
The width:height ratio.
Implementation
public function get ratioWH():Number
public var segmentClassifications:Array
public var segmented:Boolean = false
public var segmentPartitions:Array
public var segments:Array
public var signature:Array
public var splitPartitions:Array
width:Number
[read-only]
A bounding box-like structure.
Implementation
public function get width():Number
public function InkTimeline(inputArray:Array = null)
Constructor. The input Array is controlled to allow only Array or InkTimeline elements.
Parameters
| inputArray:Array (default = null ) — The Array of InkPoints or Array of Arrays of InkPoints.
|
public function clone(original:InkTimeline):InkTimeline
Makes a copy of the InkTimeline instance.
Parameters
Returns
public function intersectsWith(_otherInk:InkTimeline, leniency:Number = 0):Boolean
Determines whether or not two InkTimeline's bounding boxes intersect.
Parameters
| _otherInk:InkTimeline — The InkTimeline to check.
|
|
| leniency:Number (default = 0 ) — Extends the bounding box to be lenient.
|
Returns
| Boolean — The result of the check.
|
public function isDotAbove(_otherInk:InkTimeline, leniency:Number = 0):Boolean
Determines if the latest stroke is a 'dot'-like structure above the previous stroke.
Parameters
| _otherInk:InkTimeline — The InkTimeline to check against.
|
|
| leniency:Number (default = 0 ) — Extendes the bounding box to be lenient.
|
Returns
| Boolean — The result of the check.
|
public function joinWith(_moreInk:InkTimeline):InkTimeline
Joins two InkTimelines. Useful if the two intersect or one is a dot.
Parameters
| _moreInk:InkTimeline — The InkTimeline that will be combined.
|
Returns
public function normalize():void
Removes duplicate directional values.
public function segment(_splitPoints:Array):void
Segments the InkTimeline into Arrays based on pivot points.
Parameters
| _splitPoints:Array — The pivot points.
|
public static const SEGMENT_FOUR:int = 4
public static const SEGMENT_ONE:int = 1
public static const SEGMENT_POINT_ABOVE:int = 5
public static const SEGMENT_STRAIGHT:int = 0
public static const SEGMENT_THREE:int = 3
public static const SEGMENT_TWO:int = 2
Sun Aug 20 2006, 11:39 AM GMT-04:00