Package snap.text
Class SpellCheck
java.lang.Object
snap.text.SpellCheck
This class provides generic spell check API to allow support for any spell check technology.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
An inner class to represent a misspelled word. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SpellCheck.Word
getMisspelledWord
(String aString, int anIndex) Returns the first misspelled word in a given string starting at the given index (or null or no misspelled words).getNextMisspelledWord
(String aString, int anIndex) Returns the next misspelled word in given string.static SpellCheck
Returns the shared spell checker.static Shape
getSpellingPath
(TextBlock textBox, int selStart) Returns a path for misspelled word underlining.Returns the suggestions for given word.static void
setSharedClass
(Class<? extends SpellCheck> aClass) Returns the shared spell checker.
-
Constructor Details
-
SpellCheck
public SpellCheck()Constructor.
-
-
Method Details
-
getNextMisspelledWord
Returns the next misspelled word in given string. -
getSuggestionsForWord
Returns the suggestions for given word. -
getMisspelledWord
Returns the first misspelled word in a given string starting at the given index (or null or no misspelled words). -
getSpellingPath
Returns a path for misspelled word underlining.
-