APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.jfx.incubator.scene.control.richtext

pack-priv Class VFlowCellContext

extends Object
implements CellContext
Class Inheritance
All Implemented Interfaces
jfx.incubator.scene.control.richtext.skin.CellContext
Imports
javafx.scene.Node, javafx.scene.text.Text, jfx.incubator.scene.control.richtext.model.StyleAttribute, .StyleAttributeMap, jfx.incubator.scene.control.richtext.skin.CellContext

Assist in creating virtualized text cells.

Field Summary

Modifier and TypeField and Description
private StyleAttributeMap
private TextCell
private Node
private final StringBuilder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
pack-priv void
public <T> void
decorateRun(StyleAttribute<T> a, CellContext.RunDecor type, String styleName)

Implements jfx.incubator.scene.control.richtext.skin.CellContext.decorateRun.

Decorates the current segment with the specified attribute by coalescing adjacent runs into a single decoration pass.

public StyleAttributeMap
public Node
getNode()

Implements jfx.incubator.scene.control.richtext.skin.CellContext.getNode.

Returns the node being styled.

pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attrsback to summary
private StyleAttributeMap attrs
cellback to summary
private TextCell cell
nodeback to summary
private Node node
styleback to summary
private final StringBuilder style

Constructor Detail

VFlowCellContextback to summary
public VFlowCellContext()

Method Detail

addStyleback to summary
public void addStyle(String fxStyle)

Implements jfx.incubator.scene.control.richtext.skin.CellContext.addStyle.

Doc from jfx.incubator.scene.control.richtext.skin.CellContext.addStyle.

Adds an inline style.

The inline style must be a valid CSS style string, for example "-fx-font-size:15px;". This string might contain multiple CSS properties.

Annotations
@Override
applyback to summary
pack-priv void apply()
decorateRunback to summary
public <T> void decorateRun(StyleAttribute<T> a, CellContext.RunDecor type, String styleName)

Implements jfx.incubator.scene.control.richtext.skin.CellContext.decorateRun.

Doc from jfx.incubator.scene.control.richtext.skin.CellContext.decorateRun.

Decorates the current segment with the specified attribute by coalescing adjacent runs into a single decoration pass.

This method is used when the visual representation requires uninterrupted segments instead of several adjacent ones, for example in the case of wavy underline, in order to avoid breaks in the wave. This method expects that for any attribute the corresponding type and styleName are the same.

Annotations
@Override
getAttributesback to summary
public StyleAttributeMap getAttributes()

Implements jfx.incubator.scene.control.richtext.skin.CellContext.getAttributes.

Doc from jfx.incubator.scene.control.richtext.skin.CellContext.getAttributes.

Returns the current attributes.

Annotations
@Override
getNodeback to summary
public Node getNode()

Implements jfx.incubator.scene.control.richtext.skin.CellContext.getNode.

Doc from jfx.incubator.scene.control.richtext.skin.CellContext.getNode.

Returns the node being styled.

This might be a TextFlow (for the paragraph cell context) or Text (for the text segment cell context).

Annotations
@Override
resetback to summary
pack-priv void reset(TextCell cell, Node n, StyleAttributeMap a)