APIdia Launch Partner
Top Description Methods
jfx.incubator.scene.control.richtext

public Interface StyleResolver

Known Direct Implementers
com.sun.jfx.incubator.scene.control.richtext.CachingStyleResolver, com.sun.jfx.incubator.scene.control.richtext.VFlow
Imports
javafx.scene.Node, javafx.scene.image.WritableImage, jfx.incubator.scene.control.richtext.model.StyleAttributeMap

Enables conversion of CSS styles to StyleAttributes.

Whenever the StyledTextModel contains logical class names instead of actual attributes, a separate CSS style resolution step is required. The resulting attributes might depend on the view that originated an operation such as exporting or coping.

This interface is a part of API layer between the model and the view, and only comes to play when the model refers to CSS styles. Applications should not normally use this interface.

Since
24

Method Summary

Modifier and TypeMethod and Description
public StyleAttributeMap

Returns:

the resolved style attributes
resolveStyles
(StyleAttributeMap
the style attributes
attrs
)

Resolves CSS styles (when present) to the individual attributes declared in StyleAttributeMap.

public WritableImage

Returns:

snapshot the generated WritableImage
snapshot
(Node
the Node to make a snapshot of
node
)

Creates a snapshot of the specified Node to be exported or copied as an image.

Method Detail

resolveStylesback to summary
public StyleAttributeMap resolveStyles(StyleAttributeMap attrs)

Resolves CSS styles (when present) to the individual attributes declared in StyleAttributeMap.

Parameters
attrs:StyleAttributeMap

the style attributes

Returns:StyleAttributeMap

the resolved style attributes

snapshotback to summary
public WritableImage snapshot(Node node)

Creates a snapshot of the specified Node to be exported or copied as an image.

Parameters
node:Node

the Node to make a snapshot of

Returns:WritableImage

snapshot the generated WritableImage