Packagecom.adobe.linguistics.spelling.ui
Classpublic class SparkHighlighter
InheritanceSparkHighlighter Inheritance Object
Implements IHighlighter

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10

This class facilitates drawing of squiggly lines below words for RichEditableText class. RichEditableText is a low-level UIComponent for displaying, scrolling, selecting, and editing richly-formatted text. This class is used in the skins of the Spark versions of TextInput and TextArea. SparkHighlighter could therefore be used for drawing squiggly lines in these Spark components.



Public Properties
 PropertyDefined By
  offsetPoint : Point
Get offset point information for scrollable controls.
SparkHighlighter
Public Methods
 MethodDefined By
  
SparkHighlighter(richEditableText:RichEditableText)
The constructor for SparkHighlighter.
SparkHighlighter
  
Clear all squiggly lines in the component.
SparkHighlighter
  
drawSquiggleAt(token:Token):void
Draw squiggly lines below a given token.
SparkHighlighter
Property Detail
offsetPointproperty
offsetPoint:Point

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10

Get offset point information for scrollable controls. This is used by the highlighter to move the squiggly lines as the text scrolls inside the control.


Implementation
    public function get offsetPoint():Point
    public function set offsetPoint(value:Point):void
Constructor Detail
SparkHighlighter()Constructor
public function SparkHighlighter(richEditableText:RichEditableText)

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10

The constructor for SparkHighlighter.

Parameters
richEditableText:RichEditableTextRichEditableText in which to enable highlighting.
Method Detail
clearSquiggles()method
public function clearSquiggles():void

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10

Clear all squiggly lines in the component.

drawSquiggleAt()method 
public function drawSquiggleAt(token:Token):void

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10

Draw squiggly lines below a given token.

Parameters

token:TokenToken information of the word to be highlighted.