StyledOutput which generates HTML output.
| Modifier and Type | Class and Description |
|---|---|
| private static record | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final StyleResolver | |
| private static final StyleAttribute | |
| private final HashMap | |
| private final Writer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| public void | consume(StyledSegment seg)
Implements jfx. Consumes the next styled segment. |
| private static String | |
| private static HtmlStyledOutput. | Returns: the new key or null if this attribute must be skipped.Special handing is required since STRIKE_THROUGH and UNDERLINE are mapped to the same text-decoration CSS property. |
| private static String | |
| private static String | |
| private String | |
| public StyledOutput | |
| public void | flush()
Implements jfx. Flushes this output stream. |
| private static int | |
| private static char | |
| public void | |
| private void | |
| private void | |
| public void |
| inlineStyles | back to summary |
|---|---|
| private final boolean inlineStyles | |
| resolver | back to summary |
|---|---|
| private final StyleResolver resolver | |
| SS_AND_UNDERLINE | back to summary |
|---|---|
| private static final StyleAttribute<HtmlStyledOutput. | |
| styles | back to summary |
|---|---|
| private final HashMap<HtmlStyledOutput. | |
| wr | back to summary |
|---|---|
| private final Writer wr | |
| HtmlStyledOutput | back to summary |
|---|---|
| public HtmlStyledOutput(StyleResolver resolver, Writer wr, boolean inlineStyles) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| consume | back to summary |
|---|---|
| public void consume(StyledSegment seg) throws IOException Implements jfx. Doc from jfx. Consumes the next styled segment.
| |
| createCss | back to summary |
|---|---|
| private static String createCss(StyleAttribute<T> a, Object v) | |
| createKey | back to summary |
|---|---|
| private static HtmlStyledOutput. Special handing is required since STRIKE_THROUGH and UNDERLINE are mapped to the same text-decoration CSS property.
| |
| encode | back to summary |
|---|---|
| private static String encode(String text) | |
| encodeFontFamily | back to summary |
|---|---|
| private static String encodeFontFamily(String name) | |
| extractStyles | back to summary |
|---|---|
| private String extractStyles(StyleAttributeMap attrs) | |
| firstPassBuilder | back to summary |
|---|---|
| public StyledOutput firstPassBuilder() | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements jfx. Doc from jfx. Flushes this output stream.
| |
| indexOfSpecialChar | back to summary |
|---|---|
| private static int indexOfSpecialChar(String text) | |
| nibbleChar | back to summary |
|---|---|
| private static char nibbleChar(int x) | |
| writeEpilogue | back to summary |
|---|---|
| public void writeEpilogue() throws IOException | |
| writeInlineNode | back to summary |
|---|---|
| private void writeInlineNode(Node n) throws IOException | |
| writeParagraph | back to summary |
|---|---|
| private void writeParagraph(Region n) throws IOException | |
| writePrologue | back to summary |
|---|---|
| public void writePrologue() throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private final StyleAttribute | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public StyleAttribute | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public Object |
| attr | back to summary |
|---|---|
| private final StyleAttribute<T> attr Record Component accessed by attr(). | |
| value | back to summary |
|---|---|
| private final Object value Record Component accessed by value(). | |
| Key | back to summary |
|---|---|
| private Key(StyleAttribute<T> attr, Object value) | |
| attr | back to summary |
|---|---|
| public StyleAttribute Record Component getter of attr. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| value | back to summary |
|---|---|
| public Object value() Record Component getter of value. | |
| css | back to summary |
|---|---|
| public final String css | |
| name | back to summary |
|---|---|
| public final String name | |
| Val | back to summary |
|---|---|
| public Val(String name, String css) | |