defaults() and refine via with… methods:
HtmlRenderOptions options = HtmlRenderOptions.defaults() .withLinkHandler(url -> openInBrowser(url)) .withBaseUri(libraryFileDirectory.toUri().toString());
| Modifier and Type | Field and Description |
|---|---|
| private final @Nullable String | |
| private final double | |
| private final @Nullable String | |
| private final Consumer | |
| private final boolean | |
| private final String | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public @Nullable String | |
| public double | |
| public @Nullable String | |
| public static HtmlRenderOptions | Returns: the default optionsDefault options: system font and size, links ignored, |
| public Consumer | |
| public boolean | |
| public String | |
| public boolean | |
| public String | resolvedBaseFontFamily()
Returns: the effective base font family: the configured one, or |
| public double | resolvedBaseFontSize()
Returns: the effective base font size: the configured one, or |
| public HtmlRenderOptions | withBaseFontFamily(@Nullable String newBaseFontFamily)
Font family for regular text; unset means |
| public HtmlRenderOptions | withBaseFontSize(double newBaseFontSize)
Base font size in points/pixels; unset means |
| public HtmlRenderOptions | withBaseUri(String
the base URI; use newBaseUri)withoutBaseUri() to express absenceBase URI against which relative |
| public HtmlRenderOptions | withLinkHandler(Consumer<String> newLinkHandler)
Invoked with the (resolved) |
| public HtmlRenderOptions | |
| public HtmlRenderOptions | |
| public HtmlRenderOptions | |
| public HtmlRenderOptions | withRenderImages(boolean newRenderImages)
Disable to skip |
| baseFontFamily | back to summary |
|---|---|
| private final @Nullable String baseFontFamily | |
| baseFontSize | back to summary |
|---|---|
| private final double baseFontSize | |
| baseUri | back to summary |
|---|---|
| private final @Nullable String baseUri | |
| linkHandler | back to summary |
|---|---|
| private final Consumer<String> linkHandler | |
| loadRemoteImages | back to summary |
|---|---|
| private final boolean loadRemoteImages | |
| monospaceFontFamily | back to summary |
|---|---|
| private final String monospaceFontFamily | |
| renderImages | back to summary |
|---|---|
| private final boolean renderImages | |
| HtmlRenderOptions | back to summary |
|---|---|
| private HtmlRenderOptions(double baseFontSize, @Nullable String baseFontFamily, String monospaceFontFamily, Consumer<String> linkHandler, @Nullable String baseUri, boolean renderImages, boolean loadRemoteImages) | |
| baseFontFamily | back to summary |
|---|---|
| public @Nullable String baseFontFamily() | |
| baseFontSize | back to summary |
|---|---|
public double baseFontSize()
| |
| baseUri | back to summary |
|---|---|
| public @Nullable String baseUri() | |
| defaults | back to summary |
|---|---|
| public static HtmlRenderOptions defaults() Default options: system font and size, links ignored,
| |
| linkHandler | back to summary |
|---|---|
| public Consumer | |
| loadRemoteImages | back to summary |
|---|---|
public boolean loadRemoteImages()
| |
| monospaceFontFamily | back to summary |
|---|---|
public String monospaceFontFamily()
| |
| renderImages | back to summary |
|---|---|
public boolean renderImages()
| |
| resolvedBaseFontFamily | back to summary |
|---|---|
public String resolvedBaseFontFamily()
| |
| resolvedBaseFontSize | back to summary |
|---|---|
public double resolvedBaseFontSize()
| |
| withBaseFontFamily | back to summary |
|---|---|
| public HtmlRenderOptions withBaseFontFamily(@Nullable String newBaseFontFamily) Font family for regular text; unset means | |
| withBaseFontSize | back to summary |
|---|---|
| public HtmlRenderOptions withBaseFontSize(double newBaseFontSize) Base font size in points/pixels; unset means | |
| withBaseUri | back to summary |
|---|---|
| public HtmlRenderOptions withBaseUri(String newBaseUri) Base URI against which relative
| |
| withLinkHandler | back to summary |
|---|---|
| public HtmlRenderOptions withLinkHandler(Consumer<String> newLinkHandler) Invoked with the (resolved) | |
| withLoadRemoteImages | back to summary |
|---|---|
| public HtmlRenderOptions withLoadRemoteImages(boolean newLoadRemoteImages) Allow | |
| withMonospaceFontFamily | back to summary |
|---|---|
| public HtmlRenderOptions withMonospaceFontFamily(String newMonospaceFontFamily) Font family for | |
| withoutBaseUri | back to summary |
|---|---|
| public HtmlRenderOptions withoutBaseUri() Leaves relative | |
| withRenderImages | back to summary |
|---|---|
| public HtmlRenderOptions withRenderImages(boolean newRenderImages) Disable to skip | |