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 StyleAttributeMapRichTextArea.getActiveStyleAttributeMap()ReturnsStyleAttributeMapwhich 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 TextPosRichTextArea.appendText(String text, StyleAttributeMap attrs) Appends the styled text to the end of the document.voidRichTextArea.applyStyle(TextPos start, TextPos end, StyleAttributeMap attrs) Applies the specified style to the selected range.final TextPosRichTextArea.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 voidRichTextArea.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 StyleAttributeMapStyleAttributeMap.EMPTYEmpty attribute set.Methods in jfx.incubator.scene.control.richtext.model that return StyleAttributeMapModifier and TypeMethodDescriptionStyleAttributeMap.Builder.build()Creates an immutable instance ofStyleAttributeMapwith 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 StyleAttributeMapStyledTextModel.getStyleAttributeMap(StyleResolver resolver, TextPos pos) Returns theStyleAttributeMapof the character at the specified position'scharIndex.static <V> StyleAttributeMapStyleAttributeMap.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 voidBasicTextModel.applyStyle(int index, int start, int end, StyleAttributeMap a, boolean merge) protected voidRichTextModel.applyStyle(int index, int start, int end, StyleAttributeMap attrs, boolean merge) protected abstract voidStyledTextModel.applyStyle(int index, int start, int end, StyleAttributeMap a, boolean merge) Applies style to the specified text range within a single paragraph.final voidStyledTextModel.applyStyle(TextPos start, TextPos end, StyleAttributeMap attrs, boolean mergeAttributes) Applies the style attributes to the specified range in the document.protected final voidStyledTextModelViewOnlyBase.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 StyledInputDataFormatHandler.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) intBasicTextModel.Content.insertTextSegment(int index, int offset, String text, StyleAttributeMap attrs) This method is called to insert a single text segment at the given position.intBasicTextModel.InMemoryContent.insertTextSegment(int index, int offset, String text, StyleAttributeMap attrs) protected intBasicTextModel.insertTextSegment(int index, int offset, String text, StyleAttributeMap attrs) protected intRichTextModel.insertTextSegment(int index, int offset, String text, StyleAttributeMap attrs) protected abstract intStyledTextModel.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 intStyledTextModelViewOnlyBase.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 StyledInputStyledInput.of(String text, StyleAttributeMap attrs) Creates a plain text styled input with the specified style.static StyledSegmentStyledSegment.of(String text, StyleAttributeMap attrs) Creates a StyleSegment from a non-null plain text and style attributes.static StyledSegmentStyledSegment.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 voidBasicTextModel.setParagraphStyle(int index, StyleAttributeMap a) protected voidRichTextModel.setParagraphStyle(int index, StyleAttributeMap attrs) protected abstract voidStyledTextModel.setParagraphStyle(int index, StyleAttributeMap paragraphAttrs) Replaces the paragraph styles in the specified paragraph.protected final voidStyledTextModelViewOnlyBase.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 TypeMethodDescriptionvoidRichTextAreaSkin.applyStyles(CellContext context, StyleAttributeMap attrs, boolean forParagraph) Applies styles based on supplied attribute set to either the whole paragraph or the text segment.