public class RMXStringUtils extends java.lang.Object implements RMTextTypes
RMTextTypes.TabType
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
TEXT_CHAR_SPACING, TEXT_COLOR, TEXT_EMBEDDED_SHAPE, TEXT_FONT, TEXT_FORMAT, TEXT_OUTLINE, TEXT_PARAGRAPH, TEXT_SCRIPTING, TEXT_UNDERLINE
Constructor and Description |
---|
RMXStringUtils() |
Modifier and Type | Method and Description |
---|---|
static RMXString |
blend(RMXString aString1,
RMXString aString2,
float fraction)
Returns a blended version of the receiver and the given string (0 is receiver, 1 is given string).
|
static void |
coalesceNewlines(RMXString aString)
Replaces any occurrence of consecutive newlines with a single newline.
|
static RMXString |
getRepresentableString(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.reportmill.text.RMXStringUtils.Range |
nextKeyRangeAfterIndex(RMXString aString,
int anIndex,
com.reportmill.text.RMXStringUtils.Range aRange)
Returns the range of the next occurrence of @delimited@ text.
|
static RMXString |
rpgClone(RMXString aString,
ReportOwner anRptOwner,
java.lang.Object userInfo,
RMShape aShape,
boolean doCopy)
Performs @key@ substitution on an xstring.
|
static void |
scaleFonts(RMXString aString,
float aScale)
Sets a value to that should be multiplied times all font sizes in this string.
|
static RMXString[] |
separate(RMXString aString,
java.lang.String aSeparator)
Returns a List of XString substrings of this XString that are separated by the given separator String.
|
static java.lang.String |
toStringXML(RMXString aString)
Returns an XML style string representation of the attributes and string runs in this XString.
|
public static RMXString[] separate(RMXString aString, java.lang.String aSeparator)
public static void coalesceNewlines(RMXString aString)
public static void scaleFonts(RMXString aString, float aScale)
public static RMXString blend(RMXString aString1, RMXString aString2, float fraction)
public static java.lang.String toStringXML(RMXString aString)
public static RMXString getRepresentableString(RMXString aString)
public static RMXString rpgClone(RMXString aString, ReportOwner anRptOwner, java.lang.Object userInfo, RMShape aShape, boolean doCopy)
public static com.reportmill.text.RMXStringUtils.Range nextKeyRangeAfterIndex(RMXString aString, int anIndex, com.reportmill.text.RMXStringUtils.Range aRange)