| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | SimpleViewOnlyStyledModel.
Encapsulates a paragraph |
| Modifier and Type | Field and Description |
|---|---|
| private final ArrayList |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SimpleViewOnlyStyledModel | Returns: this model instancethe input stream providing the image. in)Adds a paragraph containing an image. |
| public SimpleViewOnlyStyledModel | Returns: this model instancethe supplier of the embedded Node generator)Adds an inline Node to the last paragraph. |
| public SimpleViewOnlyStyledModel | Returns: this model instancethe supplier of the paragraph content generator)Adds a paragraph containing a |
| public SimpleViewOnlyStyledModel | Returns: this model instancethe text to append, must not contain newline symbols, cannot be null text)Appends a text segment to the last paragraph. |
| public SimpleViewOnlyStyledModel | Returns: this model instancethe text to append, must not contain control symbols other than
TAB. text, StyleAttributeMap the style attributes a)Appends a text segment styled with the specified style attributes. |
| public SimpleViewOnlyStyledModel | Returns: this model instancethe start offset start, int the length of the highlight length, Color the highlight color c)Adds a wavy underline (typically used as a spell checker indicator) to the specified range within the last paragraph. |
| public SimpleViewOnlyStyledModel | Returns: this model instancethe start offset start, int the length of the highlight length, String... the highlight style name(s) css)Adds a wavy underline (typically used as a spell checker indicator) to the specified range within the last paragraph, with the specified style name(s). |
| public SimpleViewOnlyStyledModel | Returns: this model instancethe text to append, must not contain text, String \n, cannot be nullthe inline style (example style, String... "-fx-fill:red;")the stylesheet style names css)Appends a text segment styled with both the inline style and the stylesheet style names. |
| public SimpleViewOnlyStyledModel | Returns: this model instancethe text to append, must not contain text, String \n, cannot be nullthe inline style (example style)"-fx-fill:red;"), or nullAppends a text segment styled with the inline style. |
| public SimpleViewOnlyStyledModel | Returns: this model instancethe text to append, must not contain text, String... \n, cannot be nullthe stylesheet style names css)Appends a text segment styled with the stylesheet style names. |
| public RichParagraph | getParagraph(int index)
Implements abstract jfx. Returns a |
| public String | getPlainText(int index)
Implements abstract jfx. Returns the plain text string for the specified paragraph. |
| public StyleAttributeMap | getStyleAttributeMap(StyleResolver r, TextPos pos)
Implements abstract jfx. Returns the |
| public SimpleViewOnlyStyledModel | |
| public SimpleViewOnlyStyledModel | |
| private SimpleViewOnlyStyledModel. | |
| public SimpleViewOnlyStyledModel | Returns: this model instanceAdds a new paragraph (as if inserting a newline symbol into the text). |
| public SimpleViewOnlyStyledModel | Returns: this model instancethe number of paragraphs to append count)Adds |
| public static SimpleViewOnlyStyledModel | |
| public SimpleViewOnlyStyledModel | Returns: this model instancethe paragraph attributes a)Sets the last paragraph's attributes. |
| public int | size()
Implements abstract jfx. Returns the number of paragraphs in the model. |
| paragraphs | back to summary |
|---|---|
| private final ArrayList<SimpleViewOnlyStyledModel. | |
| SimpleViewOnlyStyledModel | back to summary |
|---|---|
| public SimpleViewOnlyStyledModel() The constructor. | |
| addImage | back to summary |
|---|---|
| public SimpleViewOnlyStyledModel addImage(InputStream in) Adds a paragraph containing an image. The image will be reduced in size as necessary to fit into the available
area if
| |
| addNodeSegment | back to summary |
|---|---|
| public SimpleViewOnlyStyledModel addNodeSegment(Supplier<Node> generator) Adds an inline Node to the last paragraph.
The supplied generator must not cache or keep reference to the created For example, a bidirectional binding between an inline control and some property in the model would synchronize the model with all the views that use it.
| |
| addParagraph | back to summary |
|---|---|
| public SimpleViewOnlyStyledModel addParagraph(Supplier<Region> generator) Adds a paragraph containing a
The supplied generator must not cache or keep reference to the created For example, a bidirectional binding between an inline control and some property in the model would synchronize the model with all the views that use it.
| |
| addSegment | back to summary |
|---|---|
| public SimpleViewOnlyStyledModel addSegment(String text) Appends a text segment to the last paragraph.
The caller must ensure that the
This convenience method is equivalent to calling
| |
| addSegment | back to summary |
|---|---|
| public SimpleViewOnlyStyledModel addSegment(String text, StyleAttributeMap a) Appends a text segment styled with the specified style attributes.
| |
| addWavyUnderline | back to summary |
|---|---|
| public 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.
| |
| addWavyUnderline | back to summary |
|---|---|
| public SimpleViewOnlyStyledModel addWavyUnderline(int start, int length, String... css) Adds a wavy underline (typically used as a spell checker indicator) to the specified range within the last paragraph, with the specified style name(s).
| |
| addWithInlineAndStyleNames | back to summary |
|---|---|
| public SimpleViewOnlyStyledModel addWithInlineAndStyleNames(String text, String style, String... css) Appends a text segment styled with both the inline style and the stylesheet style names.
The
| |
| addWithInlineStyle | back to summary |
|---|---|
| public SimpleViewOnlyStyledModel addWithInlineStyle(String text, String style) Appends a text segment styled with the inline style.
The
| |
| addWithStyleNames | back to summary |
|---|---|
| public SimpleViewOnlyStyledModel addWithStyleNames(String text, String... css) Appends a text segment styled with the stylesheet style names.
The
| |
| getParagraph | back to summary |
|---|---|
| public RichParagraph getParagraph(int index) Implements abstract jfx. Doc from jfx. Returns a This method makes no guarantees that the same paragraph instance will be returned for the same model index.
| |
| getPlainText | back to summary |
|---|---|
| public String getPlainText(int index) Implements abstract jfx. Doc from jfx. Returns the plain text string for the specified paragraph. The returned text string cannot be null
and must not contain any control characters other than TAB.
The callers must ensure that the value of
| |
| getStyleAttributeMap | back to summary |
|---|---|
| public StyleAttributeMap getStyleAttributeMap(StyleResolver r, TextPos pos) Implements abstract jfx. Doc from jfx. Returns the
| |
| highlight | back to summary |
|---|---|
| public SimpleViewOnlyStyledModel highlight(int start, int length, Color c) Adds a highlight of the given color to the specified range within the last paragraph.
| |
| highlight | back to summary |
|---|---|
| public SimpleViewOnlyStyledModel highlight(int start, int length, String... css) Adds a highlight of the given color to the specified range within the last paragraph, with the specified style name(s).
| |
| lastParagraph | back to summary |
|---|---|
| private SimpleViewOnlyStyledModel. | |
| nl | back to summary |
|---|---|
| public SimpleViewOnlyStyledModel nl() Adds a new paragraph (as if inserting a newline symbol into the text).
This convenience method invokes
| |
| nl | back to summary |
|---|---|
| public SimpleViewOnlyStyledModel nl(int count) Adds
| |
| of | back to summary |
|---|---|
| public static SimpleViewOnlyStyledModel of(String text) throws IOException Creates the model from the supplied text string by breaking it down into individual text segments, by splitting on newline characters.
| |
| setParagraphAttributes | back to summary |
|---|---|
| public SimpleViewOnlyStyledModel setParagraphAttributes(StyleAttributeMap a) Sets the last paragraph's attributes.
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract jfx. Doc from jfx. Returns the number of paragraphs in the model.
| |
| Modifier and Type | Field and Description |
|---|---|
| private ArrayList | |
| private StyleAttributeMap | |
| private ArrayList |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | addHighlight(int
the start offset start, int the end offset length, Color the background color color)Adds a color background highlight. |
| pack-priv void | |
| pack-priv void | addInlineNode(Supplier<Node>
the generator that provides the actual generator)NodeAdds an inline node. |
| pack-priv void | |
| pack-priv void | addSegment(String
the non-null text string text, StyleAttributeMap the styled attributes attrs)Adds a styled text segment. |
| pack-priv void | addSegment(String
the source non-null string text, int the start offset of the input string start, int the end offset of the input string end, StyleAttributeMap the styled attributes attrs)Adds a styled text segment. |
| pack-priv void | addSquiggly(int
the start offset start, int the end offset length, Color the background color color)Adds a squiggly line (as seen in a spell checker) with the given color. |
| pack-priv void | |
| pack-priv void | |
| public Supplier | |
| pack-priv String | |
| private List | |
| pack-priv StyleAttributeMap | |
| private List | |
| public static SimpleViewOnlyStyledModel. | |
| private List | |
| pack-priv void | |
| private int | |
| public RichParagraph |
| highlights | back to summary |
|---|---|
| private ArrayList<Consumer<TextCell>> highlights | |
| paragraphAttributes | back to summary |
|---|---|
| private StyleAttributeMap paragraphAttributes | |
| segments | back to summary |
|---|---|
| private ArrayList<StyledSegment> segments | |
| Paragraph | back to summary |
|---|---|
| public Paragraph() | |
| addHighlight | back to summary |
|---|---|
| pack-priv void addHighlight(int start, int length, Color color) Adds a color background highlight. Use translucent colors to enable multiple highlights in the same region of text.
| |
| addHighlight | back to summary |
|---|---|
| pack-priv void addHighlight(int start, int length, String[] css) | |
| addInlineNode | back to summary |
|---|---|
| pack-priv void addInlineNode(Supplier<Node> generator) Adds an inline node. The supplied generator must not cache or keep reference to the created Node, but the created Node can keep a reference to the model or some property therein. For example, a bidirectional binding between an inline control and some property in the model would synchronize the model with all the views that use it. | |
| addSegment | back to summary |
|---|---|
| pack-priv void addSegment(String text) Adds a text segment with no styling (i.e. using default style).
| |
| addSegment | back to summary |
|---|---|
| pack-priv void addSegment(String text, StyleAttributeMap attrs) Adds a styled text segment.
| |
| addSegment | back to summary |
|---|---|
| pack-priv void addSegment(String text, int start, int end, StyleAttributeMap attrs) Adds a styled text segment.
| |
| addSquiggly | back to summary |
|---|---|
| pack-priv void addSquiggly(int start, int length, Color color) Adds a squiggly line (as seen in a spell checker) with the given color.
| |
| addSquiggly | back to summary |
|---|---|
| pack-priv void addSquiggly(int start, int length, String[] css) | |
| export | back to summary |
|---|---|
| pack-priv void export(int start, int end, StyledOutput out) throws IOException | |
| getParagraphRegion | back to summary |
|---|---|
| public Supplier | |
| getPlainText | back to summary |
|---|---|
| pack-priv String getPlainText() | |
| getSegments | back to summary |
|---|---|
| private List | |
| getStyleAttrs | back to summary |
|---|---|
| pack-priv StyleAttributeMap getStyleAttrs(StyleResolver resolver, int offset) | |
| highlights | back to summary |
|---|---|
| private List | |
| of | back to summary |
|---|---|
| public static SimpleViewOnlyStyledModel. | |
| segments | back to summary |
|---|---|
| private List | |
| setParagraphAttributes | back to summary |
|---|---|
| pack-priv void setParagraphAttributes(StyleAttributeMap a) Sets the paragraph attributes.
| |
| size | back to summary |
|---|---|
| private int size() | |
| toRichParagraph | back to summary |
|---|---|
| public RichParagraph toRichParagraph() | |