Uses of Class
jfx.incubator.scene.control.richtext.model.StyleAttributeMap
Packages that use StyleAttributeMap
Package
Description
Provides two controls for displaying and editing large, virtualized, rich text documents:
RichTextArea
and
CodeArea
.Provides common models for
RichTextArea
and
CodeArea
controls.Contains RichTextArea skin and related classes.
-
Uses of StyleAttributeMap in jfx.incubator.scene.control.richtext
Methods in jfx.incubator.scene.control.richtext that return StyleAttributeMapModifier and TypeMethodDescriptionfinal StyleAttributeMap
RichTextArea.getActiveStyleAttributeMap()
ReturnsStyleAttributeMap
which contains character and paragraph attributes.StyleResolver.resolveStyles
(StyleAttributeMap attrs) Resolves CSS styles (when present) to the individual attributes declared inStyleAttributeMap
.Methods in jfx.incubator.scene.control.richtext with parameters of type StyleAttributeMapModifier and TypeMethodDescriptionfinal 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.StyleResolver.resolveStyles
(StyleAttributeMap attrs) Resolves CSS styles (when present) to the individual attributes declared inStyleAttributeMap
.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 StyleAttributeMapModifier and TypeFieldDescriptionstatic final StyleAttributeMap
StyleAttributeMap.EMPTY
Empty attribute set.Methods in jfx.incubator.scene.control.richtext.model that return StyleAttributeMapModifier and TypeMethodDescriptionStyleAttributeMap.Builder.build()
Creates an immutable instance ofStyleAttributeMap
with the attributes set by this Builder.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.RichParagraph.getParagraphAttributes()
Returns the paragraph attributes.BasicTextModel.getStyleAttributeMap
(StyleResolver resolver, TextPos pos) RichTextModel.getStyleAttributeMap
(StyleResolver resolver, TextPos pos) SimpleViewOnlyStyledModel.getStyleAttributeMap
(StyleResolver r, TextPos pos) StyledSegment.getStyleAttributeMap
(StyleResolver resolver) This method returns StyleAttributeMap (or null) for this segment.abstract StyleAttributeMap
StyledTextModel.getStyleAttributeMap
(StyleResolver resolver, TextPos pos) Returns theStyleAttributeMap
of the character at the specified position'scharIndex
.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 StyleAttributeMapModifier and TypeMethodDescriptionRichParagraph.Builder.addSegment
(String text, int start, int end, StyleAttributeMap attrs) Adds a styled text segment.RichParagraph.Builder.addSegment
(String text, StyleAttributeMap attrs) Adds a styled text segment.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.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.HtmlExportFormatHandler.createStyledInput
(String input, StyleAttributeMap attr) PlainTextFormatHandler.createStyledInput
(String text, StyleAttributeMap attr) RichTextFormatHandler.createStyledInput
(String input, StyleAttributeMap attr) 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.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.setParagraphAttributes
(StyleAttributeMap a) Sets the paragraph attributes.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 StyleAttributeMapMethods in jfx.incubator.scene.control.richtext.skin with parameters of type StyleAttributeMapModifier and TypeMethodDescriptionvoid
RichTextAreaSkin.applyStyles
(CellContext context, StyleAttributeMap attrs, boolean forParagraph) Applies styles based on supplied attribute set to either the whole paragraph or the text segment.