Package com.inductiveautomation.rm.text
Class RMXStringUtils
java.lang.Object
com.inductiveautomation.rm.text.RMXStringUtils
- All Implemented Interfaces:
- RMTypes,- RMTextTypes
This class provides a method to perform @key@ substitution on an xstring.
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.inductiveautomation.rm.text.RMTextTypesRMTextTypes.TabTypeNested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
- 
Field SummaryFields inherited from interface com.inductiveautomation.rm.text.RMTextTypesTEXT_CHAR_SPACING, TEXT_COLOR, TEXT_EMBEDDED_SHAPE, TEXT_FONT, TEXT_FORMAT, TEXT_OUTLINE, TEXT_PARAGRAPH, TEXT_SCRIPTING, TEXT_UNDERLINE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic RMXStringReturns a blended version of the receiver and the given string (0 is receiver, 1 is given string).static voidcoalesceNewlines(RMXString aString) Replaces any occurrence of consecutive newlines with a single newline.static RMXStringgetRepresentableString(RMXString aString) Returns a version of this string that substitutes alternate fonts for any characters that cannot be displayed in their associated fonts (simply returns the receiver if all characters are valid).static com.inductiveautomation.rm.text.RMXStringUtils.RangenextKeyRangeAfterIndex(RMXString aString, int anIndex, com.inductiveautomation.rm.text.RMXStringUtils.Range aRange) Returns the range of the next occurrence of @delimited@ text.static RMXStringrpgClone(RMXString aString, ReportOwner anRptOwner, Object userInfo, RMShape aShape, boolean doCopy) Performs @key@ substitution on an xstring.static voidscaleFonts(RMXString aString, float aScale) Sets a value to that should be multiplied times all font sizes in this string.static RMXString[]Returns a List of XString substrings of this XString that are separated by the given separator String.static StringtoStringXML(RMXString aString) Returns an XML style string representation of the attributes and string runs in this XString.
- 
Constructor Details- 
RMXStringUtilspublic RMXStringUtils()
 
- 
- 
Method Details- 
separateReturns a List of XString substrings of this XString that are separated by the given separator String.
- 
coalesceNewlinesReplaces any occurrence of consecutive newlines with a single newline.
- 
scaleFontsSets a value to that should be multiplied times all font sizes in this string.
- 
blendReturns a blended version of the receiver and the given string (0 is receiver, 1 is given string). The current implementation actually only blends text color.
- 
toStringXMLReturns an XML style string representation of the attributes and string runs in this XString.
- 
getRepresentableStringReturns a version of this string that substitutes alternate fonts for any characters that cannot be displayed in their associated fonts (simply returns the receiver if all characters are valid).
- 
rpgClonepublic static RMXString rpgClone(RMXString aString, ReportOwner anRptOwner, Object userInfo, RMShape aShape, boolean doCopy) Performs @key@ substitution on an xstring.
- 
nextKeyRangeAfterIndexpublic static com.inductiveautomation.rm.text.RMXStringUtils.Range nextKeyRangeAfterIndex(RMXString aString, int anIndex, com.inductiveautomation.rm.text.RMXStringUtils.Range aRange) Returns the range of the next occurrence of @delimited@ text.
 
-