# Uses of Class
jfx.incubator.scene.control.richtext.model.SimpleViewOnlyStyledModel

Packages that use SimpleViewOnlyStyledModel
Package
Description
jfx.incubator.scene.control.richtext.model
Provides common models for `RichTextArea` and `CodeArea` controls.

- ## Uses of SimpleViewOnlyStyledModel in jfx.incubator.scene.control.richtext.model

  Methods in jfx.incubator.scene.control.richtext.model that return SimpleViewOnlyStyledModel
  Modifier and Type
  Method
  Description
  `SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`addImage(InputStream in)`
  Adds a paragraph containing an image.
  `SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`addNodeSegment(Supplier<Node> generator)`
  Adds an inline Node to the last paragraph.
  `SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`addParagraph(Supplier<Region> generator)`
  Adds a paragraph containing a `Region`.
  `SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`addSegment(String text)`
  Appends a text segment to the last paragraph.
  `SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`addSegment(String text, StyleAttributeMap a)`
  Appends a text segment styled with the specified style attributes.
  `SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`addWavyUnderline(int start, int length, Color c)`
  Adds a wavy underline (typically used as a spell checker indicator) to the specified range within the last paragraph.
  `SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`addWithInlineAndStyleNames(String text, String style, String... css)`
  Appends a text segment styled with both the inline style and the stylesheet style names.
  `SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`addWithInlineStyle(String text, String style)`
  Appends a text segment styled with the inline style.
  `SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`addWithStyleNames(String text, String... css)`
  Appends a text segment styled with the stylesheet style names.
  `SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`highlight(int start, int length, Color c)`
  Adds a highlight of the given color to the specified range within the last paragraph.
  `SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`nl()`
  Adds a new paragraph (as if inserting a newline symbol into the text).
  `SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`nl(int count)`
  Adds `n` new paragraphs (as if inserting a newline symbol into the text `n` times).
  `static SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`of(String text)`
  Creates the model from the supplied text string by breaking it down into individual text segments, by splitting on newline characters.
  `SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`setParagraphAttributes(StyleAttributeMap a)`
  Sets the last paragraph's attributes.