Package icyllis.modernui.text.method
Class SingleLineTransformationMethod
java.lang.Object
icyllis.modernui.text.method.ReplacementTransformationMethod
icyllis.modernui.text.method.SingleLineTransformationMethod
- All Implemented Interfaces:
TransformationMethod
This transformation method causes any newline characters (\n) to be
displayed as spaces instead of causing line breaks, and causes
carriage return characters (\r) to have no appearance.
-
Method Summary
Modifier and TypeMethodDescriptionprotected char[]
The characters to be replaced are \n and \r.protected char[]
The character \n is replaced with is space; the character \r is replaced with is FEFF (zero width space).Methods inherited from class icyllis.modernui.text.method.ReplacementTransformationMethod
getTransformation, onFocusChanged
-
Method Details
-
getInstance
-
getOriginal
protected char[] getOriginal()The characters to be replaced are \n and \r.- Specified by:
getOriginal
in classReplacementTransformationMethod
-
getReplacement
protected char[] getReplacement()The character \n is replaced with is space; the character \r is replaced with is FEFF (zero width space).- Specified by:
getReplacement
in classReplacementTransformationMethod
-