TextFlows in a VBox,
links become styled, clickable Text runs (they wrap mid-link like in a browser — no
javafx.controls dependency), <mark>/background runs get real background shapes.
Style classes for theming: html-view (root), html-paragraph, html-pre, html-text,
html-link, html-mark, html-heading/html-h1…h6, html-list, html-list-marker,
html-blockquote, html-table, html-hr, html-image, plus all CSS classes carried
over from the HTML (csl-entry, error, …).
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final double | |
| private final HtmlRenderOptions |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private static double | |
| private Text | |
| private double | |
| public static Region | Returns: aVBox with style class html-view and the built-in stylesheet attachedthe blocks to render, typically from blocks, HtmlRenderOptions HtmlToNode#parse(String, String)rendering options options)Renders the given blocks. |
| private Node | |
| private Node | |
| private TextFlow | renderFlow(List<Inline> inlines, String baseClass, List<String> cssClasses, double scale, int minWeight)
Renders inline content into a |
| private @Nullable Node | |
| private Node | |
| private Node | |
| private static double |
| baseFamily | back to summary |
|---|---|
| private final String baseFamily | |
| baseSize | back to summary |
|---|---|
| private final double baseSize | |
| options | back to summary |
|---|---|
| private final HtmlRenderOptions options | |
| FxRenderer | back to summary |
|---|---|
| private FxRenderer(HtmlRenderOptions options) | |
| appendBlocks | back to summary |
|---|---|
| private void appendBlocks(VBox parent, List<Block> blocks) | |
| bottomMarginEm | back to summary |
|---|---|
| private static double bottomMarginEm(Block block) | |
| createText | back to summary |
|---|---|
| private Text createText(String content, InlineStyle style, double sizeFactor) | |
| leftIndentPx | back to summary |
|---|---|
| private double leftIndentPx(Block block) | |
| render | back to summary |
|---|---|
| public static Region render(List<Block> blocks, HtmlRenderOptions options) Renders the given blocks. Must be called on the JavaFX application thread when the result is (or will be) part of a live scene.
| |
| renderBlock | back to summary |
|---|---|
| private Node renderBlock(Block block) | |
| renderDefinitionList | back to summary |
|---|---|
| private Node renderDefinitionList(List<Block. | |
| renderFlow | back to summary |
|---|---|
| private TextFlow renderFlow(List<Inline> inlines, String baseClass, List<String> cssClasses, double scale, int minWeight) Renders inline content into a | |
| renderImage | back to summary |
|---|---|
| private @Nullable Node renderImage(Inline. | |
| renderList | back to summary |
|---|---|
| private Node renderList(Block. | |
| renderTable | back to summary |
|---|---|
| private Node renderTable(List<Block. | |
| topMarginEm | back to summary |
|---|---|
| private static double topMarginEm(Block block) | |