Package icyllis.modernui.text.method

# Class SingleLineTransformationMethod

java.lang.Object
icyllis.modernui.text.method.ReplacementTransformationMethod
icyllis.modernui.text.method.SingleLineTransformationMethod

All Implemented Interfaces:
  `TransformationMethod`

public class SingleLineTransformationMethod extends ReplacementTransformationMethod
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 Type
  Method
  Description
  `static SingleLineTransformationMethod`
  `getInstance()`
  `protected char[]`
  `getOriginal()`
  The characters to be replaced are \n and \r.
  `protected char[]`
  `getReplacement()`
  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`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getInstance

    public static SingleLineTransformationMethod getInstance()

  - ### getOriginal

    protected char[] getOriginal()
    The characters to be replaced are \n and \r.
    Specified by:
      `getOriginal` in class `ReplacementTransformationMethod`

  - ### 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 class `ReplacementTransformationMethod`