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

Packages that use StyleAttributeMap
Package
Description
jfx.incubator.scene.control.richtext
Provides two controls for displaying and editing large, virtualized, rich text documents: `RichTextArea` and `CodeArea`.
jfx.incubator.scene.control.richtext.model
Provides common models for `RichTextArea` and `CodeArea` controls.
jfx.incubator.scene.control.richtext.skin
Contains RichTextArea skin and related classes.

- ## Uses of StyleAttributeMap in jfx.incubator.scene.control.richtext

  Methods in jfx.incubator.scene.control.richtext that return StyleAttributeMap
  Modifier and Type
  Method
  Description
  `final StyleAttributeMap`
  RichTextArea.`getActiveStyleAttributeMap()`
  Returns `StyleAttributeMap` which contains character and paragraph attributes.
  `StyleAttributeMap`
  StyleResolver.`resolveStyles(StyleAttributeMap attrs)`
  Resolves CSS styles (when present) to the individual attributes declared in `StyleAttributeMap`.
  Methods in jfx.incubator.scene.control.richtext with parameters of type StyleAttributeMap
  Modifier and Type
  Method
  Description
  `final TextPos`
  RichTextArea.`appendText(String text, StyleAttributeMap attrs)`
  Appends the styled text to the end of the document.
  `void`
  RichTextArea.`applyStyle(TextPos start, TextPos end, StyleAttributeMap attrs)`
  Applies the specified style to the selected range.
  `final TextPos`
  RichTextArea.`insertText(TextPos pos, String text, StyleAttributeMap attrs)`
  Inserts the styled text at the specified position.
  `StyleAttributeMap`
  StyleResolver.`resolveStyles(StyleAttributeMap attrs)`
  Resolves CSS styles (when present) to the individual attributes declared in `StyleAttributeMap`.
  `final void`
  RichTextArea.`setStyle(TextPos start, TextPos end, StyleAttributeMap attrs)`
  Sets the specified style to the selected range.

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

  Fields in jfx.incubator.scene.control.richtext.model declared as StyleAttributeMap
  Modifier and Type
  Field
  Description
  `static final StyleAttributeMap`
  StyleAttributeMap.`EMPTY`
  Empty attribute set.
  Methods in jfx.incubator.scene.control.richtext.model that return StyleAttributeMap
  Modifier and Type
  Method
  Description
  `StyleAttributeMap`
  StyleAttributeMap.Builder.`build()`
  Creates an immutable instance of `StyleAttributeMap` with the attributes set by this Builder.
  `StyleAttributeMap`
  StyleAttributeMap.`combine(StyleAttributeMap attrs)`
  Creates a new StyleAttributeMap instance by first copying attributes from this instance, then adding (and/or overwriting) the attributes from the specified instance.
  `StyleAttributeMap`
  RichParagraph.`getParagraphAttributes()`
  Returns the paragraph attributes.
  `StyleAttributeMap`
  BasicTextModel.`getStyleAttributeMap(StyleResolver resolver, TextPos pos)`
  `StyleAttributeMap`
  RichTextModel.`getStyleAttributeMap(StyleResolver resolver, TextPos pos)`
  `StyleAttributeMap`
  SimpleViewOnlyStyledModel.`getStyleAttributeMap(StyleResolver r, TextPos pos)`
  `StyleAttributeMap`
  StyledSegment.`getStyleAttributeMap(StyleResolver resolver)`
  This method returns StyleAttributeMap (or null) for this segment.
  `abstract StyleAttributeMap`
  StyledTextModel.`getStyleAttributeMap(StyleResolver resolver, TextPos pos)`
  Returns the `StyleAttributeMap` of the character at the specified position's `charIndex`.
  `static <V> StyleAttributeMap`
  StyleAttributeMap.`of(StyleAttribute<V> attribute, V value)`
  Convenience method creates the instance with a single attribute.
  Methods in jfx.incubator.scene.control.richtext.model with parameters of type StyleAttributeMap
  Modifier and Type
  Method
  Description
  `RichParagraph.Builder`
  RichParagraph.Builder.`addSegment(String text, int start, int end, StyleAttributeMap attrs)`
  Adds a styled text segment.
  `RichParagraph.Builder`
  RichParagraph.Builder.`addSegment(String text, StyleAttributeMap attrs)`
  Adds a styled text segment.
  `SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`addSegment(String text, StyleAttributeMap a)`
  Appends a text segment styled with the specified style attributes.
  `protected final void`
  BasicTextModel.`applyStyle(int index, int start, int end, StyleAttributeMap a, boolean merge)`
  `protected void`
  RichTextModel.`applyStyle(int index, int start, int end, StyleAttributeMap attrs, boolean merge)`
  `protected abstract void`
  StyledTextModel.`applyStyle(int index, int start, int end, StyleAttributeMap a, boolean merge)`
  Applies style to the specified text range within a single paragraph.
  `final void`
  StyledTextModel.`applyStyle(TextPos start, TextPos end, StyleAttributeMap attrs, boolean mergeAttributes)`
  Applies the style attributes to the specified range in the document.
  `protected final void`
  StyledTextModelViewOnlyBase.`applyStyle(int ix, int start, int end, StyleAttributeMap a, boolean merge)`
  `StyleAttributeMap`
  StyleAttributeMap.`combine(StyleAttributeMap attrs)`
  Creates a new StyleAttributeMap instance by first copying attributes from this instance, then adding (and/or overwriting) the attributes from the specified instance.
  `abstract StyledInput`
  DataFormatHandler.`createStyledInput(String input, StyleAttributeMap attr)`
  Creates a StyledInput for the given input string.
  `StyledInput`
  HtmlExportFormatHandler.`createStyledInput(String input, StyleAttributeMap attr)`
  `StyledInput`
  PlainTextFormatHandler.`createStyledInput(String text, StyleAttributeMap attr)`
  `StyledInput`
  RichTextFormatHandler.`createStyledInput(String input, StyleAttributeMap attr)`
  `StyledInput`
  RtfFormatHandler.`createStyledInput(String text, StyleAttributeMap attr)`
  `int`
  BasicTextModel.Content.`insertTextSegment(int index, int offset, String text, StyleAttributeMap attrs)`
  This method is called to insert a single text segment at the given position.
  `int`
  BasicTextModel.InMemoryContent.`insertTextSegment(int index, int offset, String text, StyleAttributeMap attrs)`
  `protected int`
  BasicTextModel.`insertTextSegment(int index, int offset, String text, StyleAttributeMap attrs)`
  `protected int`
  RichTextModel.`insertTextSegment(int index, int offset, String text, StyleAttributeMap attrs)`
  `protected abstract int`
  StyledTextModel.`insertTextSegment(int index, int offset, String text, StyleAttributeMap attrs)`
  This method is called to insert a single styled text segment at the given position.
  `protected int`
  StyledTextModelViewOnlyBase.`insertTextSegment(int index, int offset, String text, StyleAttributeMap attrs)`
  `StyleAttributeMap.Builder`
  StyleAttributeMap.Builder.`merge(StyleAttributeMap attrs)`
  Merges the specified attributes with the attributes in this instance.
  `static StyledInput`
  StyledInput.`of(String text, StyleAttributeMap attrs)`
  Creates a plain text styled input with the specified style.
  `static StyledSegment`
  StyledSegment.`of(String text, StyleAttributeMap attrs)`
  Creates a StyleSegment from a non-null plain text and style attributes.
  `static StyledSegment`
  StyledSegment.`ofParagraphAttributes(StyleAttributeMap attrs)`
  Creates a StyledSegment which contains paragraph attributes only.
  `RichParagraph.Builder`
  RichParagraph.Builder.`setParagraphAttributes(StyleAttributeMap a)`
  Sets the paragraph attributes.
  `SimpleViewOnlyStyledModel`
  SimpleViewOnlyStyledModel.`setParagraphAttributes(StyleAttributeMap a)`
  Sets the last paragraph's attributes.
  `protected final void`
  BasicTextModel.`setParagraphStyle(int index, StyleAttributeMap a)`
  `protected void`
  RichTextModel.`setParagraphStyle(int index, StyleAttributeMap attrs)`
  `protected abstract void`
  StyledTextModel.`setParagraphStyle(int index, StyleAttributeMap paragraphAttrs)`
  Replaces the paragraph styles in the specified paragraph.
  `protected final void`
  StyledTextModelViewOnlyBase.`setParagraphStyle(int ix, StyleAttributeMap a)`

- ## Uses of StyleAttributeMap in jfx.incubator.scene.control.richtext.skin

  Methods in jfx.incubator.scene.control.richtext.skin that return StyleAttributeMap
  Modifier and Type
  Method
  Description
  `StyleAttributeMap`
  CellContext.`getAttributes()`
  Returns the current attributes.
  Methods in jfx.incubator.scene.control.richtext.skin with parameters of type StyleAttributeMap
  Modifier and Type
  Method
  Description
  `void`
  RichTextAreaSkin.`applyStyles(CellContext context, StyleAttributeMap attrs, boolean forParagraph)`
  Applies styles based on supplied attribute set to either the whole paragraph or the text segment.