Class TextUtils
java.lang.Object
com.inductiveautomation.snap.text.TextUtils
Text Utilities.
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignYNested classes/interfaces inherited from interface com.inductiveautomation.snap.text.TextTypesTextTypes.TabType
- 
Field SummaryFields inherited from interface com.inductiveautomation.snap.text.TextTypesTEXT_CHAR_SPACING, TEXT_COLOR, TEXT_FONT, TEXT_FORMAT, TEXT_LINK, TEXT_OUTLINE, TEXT_SCRIPTING, TEXT_UNDERLINE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringgetAttributeKey(Object anAttr) Returns the most likely key for a given attribute.static MapgetAttributes(Object... theAttrs) Returns an attribute map for given attributes.static intgetUnderlineStyle(Map attrs) Returns the underline style of this run.static intindexAfterNewline(CharSequence aSequence, int aStart) Returns the index just beyond next newline (or carriage-return/newline) in given char sequence starting at given char index.static intindexOfNewline(CharSequence aSequence, int aStart) Returns the index of the next newline (or carriage-return/newline) in given char sequence starting at given char index.static booleanisAfterLineEnd(CharSequence aSequence, int anIndex) Returns whether the index in the given char sequence is at just after a line end.static booleanisLineEnd(CharSequence aSequence, int anIndex) Returns whether the index in the given char sequence is at a line end.static booleanisNewlineChar(CharSequence aSequence, int anIndex) Returns whether a char is a newline char.static booleanisUnderlined(Map attrs) Returns whether this run is underlined.static intlastIndexAfterNewline(CharSequence aSequence, int aStart) Returns the index just beyond previous newline (or carriage-return/newline) in given char sequence starting at given char index.static intlastIndexOfNewline(CharSequence aSequence, int aStart) Returns the index of the previous newline (or carriage-return/newline) in given char sequence starting at given char index.
- 
Constructor Details- 
TextUtilspublic TextUtils()
 
- 
- 
Method Details- 
indexOfNewlineReturns the index of the next newline (or carriage-return/newline) in given char sequence starting at given char index.
- 
indexAfterNewlineReturns the index just beyond next newline (or carriage-return/newline) in given char sequence starting at given char index.
- 
lastIndexOfNewlineReturns the index of the previous newline (or carriage-return/newline) in given char sequence starting at given char index.
- 
lastIndexAfterNewlineReturns the index just beyond previous newline (or carriage-return/newline) in given char sequence starting at given char index.
- 
isLineEndReturns whether the index in the given char sequence is at a line end.
- 
isAfterLineEndReturns whether the index in the given char sequence is at just after a line end.
- 
isNewlineCharReturns whether a char is a newline char.
- 
isUnderlinedReturns whether this run is underlined.
- 
getUnderlineStyleReturns the underline style of this run.
- 
getAttributesReturns an attribute map for given attributes.
- 
getAttributeKeyReturns the most likely key for a given attribute.
 
-